postgresql/src/backend/catalog
Thomas Munro a1d17a8947 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:48:57 +13:00
..
.gitignore Remove separate files for the initial contents of pg_(sh)description 2020-01-19 13:54:58 +02:00
aclchk.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:24 -07:00
catalog.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:24 -07:00
Catalog.pm Clarify coding in Catalog::AddDefaultValues. 2020-02-15 15:13:44 -05:00
dependency.c Clean out column-level pg_init_privs entries when dropping tables. 2024-06-14 16:20:35 -04:00
genbki.pl Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -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:57 -07:00
indexing.c Assert that we don't insert nulls into attnotnull catalog columns. 2020-07-21 12:38:08 -04:00
information_schema.sql Repair performance regression in information_schema.triggers view. 2020-04-24 12:02:36 -04:00
Makefile Split out CreateCast into src/backend/catalog/pg_cast.c 2020-03-10 11:28:23 -03:00
namespace.c Recalculate search_path after ALTER ROLE. 2023-08-07 15:12:09 -07:00
objectaccess.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
objectaddress.c In REASSIGN OWNED of a database, lock the tuple as mandated. 2024-12-28 07:16:27 -08:00
partition.c Plug memory leak in index_get_partition 2020-11-06 22:52:15 -03:00
pg_aggregate.c Fix misleading error message about inconsistent moving-aggregate types. 2020-09-06 12:55:28 -04:00
pg_cast.c Update copyright year 2020-09-11 12:55:19 -03:00
pg_collation.c In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
pg_constraint.c Fix self-referencing foreign keys with partitioned tables 2022-10-07 19:37:48 +02:00
pg_conversion.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_db_role_setting.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_depend.c In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
pg_enum.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_inherits.c Disallow converting an inheritance child table to a view. 2021-02-06 15:17:01 -05:00
pg_largeobject.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_namespace.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_operator.c In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04: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 double publish of child table's data. 2021-12-09 09:00:35 +05:30
pg_range.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_shdepend.c Avoid leaking memory during large-scale REASSIGN OWNED BY operations. 2021-12-01 13:44:47 -05:00
pg_subscription.c Correctly mark pg_subscription_rel.srsublsn as nullable. 2020-07-20 14:55:56 -04:00
pg_type.c In extensions, don't replace objects not belonging to the extension. 2022-08-08 11:12:31 -04:00
sql_feature_packages.txt Cleanup in SQL features files 2020-03-28 08:46:18 +01:00
sql_features.txt Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
storage.c Restore smgrtruncate() prototype in back-branches. 2025-01-08 10:48:57 +13:00
system_views.sql Resolve gratuitous tabs in SQL file 2020-07-17 15:08:43 +02:00
toasting.c Fix data loss at inplace update after heap_update(). 2024-09-24 15:25:24 -07:00