postgresql/src/backend/catalog
Robert Haas d18c913b78 Rethink the delay-checkpoint-end mechanism in the back-branches.
The back-patch of commit bbace5697d had
the unfortunate effect of changing the layout of PGPROC in the
back-branches, which could break extensions. This happened because it
changed the delayChkpt from type bool to type int. So, change it back,
and add a new bool delayChkptEnd field instead. The new field should
fall within what used to be padding space within the struct, and so
hopefully won't cause any extensions to break.

Per report from Markus Wanner and discussion with Tom Lane and others.

Patch originally by me, somewhat revised by Markus Wanner per a
suggestion from Michael Paquier. A very similar patch was developed
by Kyotaro Horiguchi, but I failed to see the email in which that was
posted before writing one of my own.

Discussion: http://postgr.es/m/CA+Tgmoao-kUD9c5nG5sub3F7tbo39+cdr8jKaOVEs_1aBWcJ3Q@mail.gmail.com
Discussion: http://postgr.es/m/20220406.164521.17171257901083417.horikyota.ntt@gmail.com
2022-04-14 11:10:11 -04:00
..
.gitignore Remove separate files for the initial contents of pg_(sh)description 2020-01-19 13:54:58 +02:00
aclchk.c Fix ALTER DEFAULT PRIVILEGES with duplicated objects 2021-01-20 11:39:14 +09:00
catalog.c Invent "trusted" extensions, and remove the pg_pltemplate catalog. 2020-01-29 18:42:43 -05:00
Catalog.pm Clarify coding in Catalog::AddDefaultValues. 2020-02-15 15:13:44 -05:00
dependency.c Avoid crash in rare case of concurrent DROP 2021-11-05 12:29:34 -03:00
genbki.pl Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00
heap.c Don't set a fast default for anything but a plain table 2021-06-18 07:44:58 -04:00
index.c Flush table's relcache during ALTER TABLE ADD PRIMARY KEY USING INDEX. 2022-01-22 13:32:40 -05: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 Fix temporary object cleanup failing due to toast access without snapshot. 2022-02-21 08:59:30 -08:00
objectaccess.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
objectaddress.c Fix lookup error in extended stats ownership check 2021-08-31 18:38:11 +02: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 Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_constraint.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05: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 Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -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 Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
pg_proc.c Fix list-munging bug that broke SQL function result coercions. 2020-10-19 14:33: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 Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -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 Rethink the delay-checkpoint-end mechanism in the back-branches. 2022-04-14 11:10:11 -04:00
system_views.sql Resolve gratuitous tabs in SQL file 2020-07-17 15:08:43 +02:00
toasting.c Fix toast rewrites in logical decoding. 2021-08-25 09:23:27 +05:30