postgresql/src/backend/catalog
Thomas Munro c957d7444f Restore smgrtruncate() prototype in back-branches.
It's possible that external code is calling smgrtruncate().  Any
external callers might like to consider the recent changes to
RelationTruncate(), but commit 38c579b0 should not have changed the
function prototype in the back-branches, per ABI stability policy.

Restore smgrtruncate()'s traditional argument list in the back-branches,
but make it a wrapper for a new function smgrtruncate2().  The three
callers in core can use smgrtruncate2() directly.  In master (18-to-be),
smgrtruncate2() is effectively renamed to smgrtruncate(), so this wart
is cleaned up.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKG%2BThae6x6%2BjmQiuALQBT2Ae1ChjMh1%3DkMvJ8y_SBJZrvA%40mail.gmail.com
2025-01-08 10:46:45 +13:00
..
.gitignore Build in some knowledge about foreign-key relationships in the catalogs. 2021-02-02 17:11:55 -05:00
aclchk.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:22 -07:00
catalog.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:22 -07:00
Catalog.pm Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
dependency.c Clean out column-level pg_init_privs entries when dropping tables. 2024-06-14 16:20:35 -04:00
fix-CVE-2024-4317.sql Fix privilege checks in pg_stats_ext and pg_stats_ext_exprs. 2024-05-06 09:00:07 -05:00
genbki.pl Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
heap.c Reset relhassubclass upon attaching table as a partition 2024-07-24 12:38:18 +02:00
index.c Suppress new "may be used uninitialized" warning. 2024-11-02 19:42:56 -07:00
indexing.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
information_schema.sql Update information_schema for SQL:2023 2023-04-05 09:57:44 +02:00
Makefile Fix privilege checks in pg_stats_ext and pg_stats_ext_exprs. 2024-05-06 09:00:07 -05:00
meson.build Fix privilege checks in pg_stats_ext and pg_stats_ext_exprs. 2024-05-06 09:00:07 -05:00
namespace.c Recalculate search_path after ALTER ROLE. 2023-08-09 13:09:01 -07:00
objectaccess.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
objectaddress.c In REASSIGN OWNED of a database, lock the tuple as mandated. 2024-12-28 07:16:26 -08:00
partition.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_aggregate.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_attrdef.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_cast.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_class.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_collation.c Allow tailoring of ICU locales with custom rules 2023-03-08 16:56:37 +01:00
pg_constraint.c Revert "Catalog NOT NULL constraints" and fallout 2023-04-12 19:29:21 +02:00
pg_conversion.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_db_role_setting.c Revert "Add USER SET parameter values for pg_db_role_setting" 2023-05-17 20:28:57 +03:00
pg_depend.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_enum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_inherits.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_largeobject.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_namespace.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_operator.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
pg_parameter_acl.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_proc.c Fix confusion about the return rowtype of SQL-language procedures. 2024-03-12 18:16:10 -04:00
pg_publication.c Fix various typos and incorrect/outdated name references 2023-04-19 13:50:33 +12:00
pg_range.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_shdepend.c Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
pg_subscription.c Add a run_as_owner option to subscriptions. 2023-04-04 12:03:03 -04:00
pg_type.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
sql_feature_packages.txt Update SQL features 2023-05-02 10:59:21 +02:00
sql_features.txt Fix mistake in SQL features list 2024-02-23 14:40:25 +01:00
storage.c Restore smgrtruncate() prototype in back-branches. 2025-01-08 10:46:45 +13:00
system_functions.sql Add back SQLValueFunction for SQL keywords 2023-05-17 10:19:17 +09:00
system_views.sql Fix privilege checks in pg_stats_ext and pg_stats_ext_exprs. 2024-05-06 09:00:07 -05:00
toasting.c Fix data loss at inplace update after heap_update(). 2024-09-24 15:25:22 -07:00