You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Amit Kapila
d9f01a287a
Fix a deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION.
...
A deadlock can occur when the DDL command and the apply worker acquire
catalog locks in different orders while dropping replication origins.
The issue is rare in PG16 and higher branches because, in most cases, the
tablesync worker performs the origin drop in those branches, and its
locking sequence does not conflict with DDL operations.
This patch ensures consistent lock acquisition to prevent such deadlocks.
As per buildfarm.
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Author: Ajin Cherian <itsajin@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Backpatch-through: 14, where it was introduced
Discussion: https://postgr.es/m/bab95e12-6cc5-4ebb-80a8-3e41956aa297@gmail.com
6 months ago
..
access
doc: Inform about aminsertcleanup optional NULLness
6 months ago
archive
Update copyright for 2025
1 year ago
backup
Update copyright for 2025
1 year ago
bootstrap
pg_noreturn to replace pg_attribute_noreturn()
10 months ago
catalog
Fix a deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION.
6 months ago
commands
Fix concurrent update trigger issues with MERGE in a CTE.
6 months ago
common
Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays
9 months ago
datatype
Avoid using timezone Asia/Manila in regression tests.
1 year ago
executor
Sync typedefs.list with the buildfarm.
7 months ago
fe_utils
Remove inappropriate inclusions of c.h and postgres_fe.h.
9 months ago
foreign
Update copyright for 2025
1 year ago
jit
Don't use double-quotes in #include's of system headers, redux.
9 months ago
lib
Use PRI?64 instead of "ll?" in format strings (continued).
10 months ago
libpq
Use 'void *' for arbitrary buffers, 'uint8 *' for byte arrays
9 months ago
mb
With GB18030, prevent SIGSEGV from reading past end of allocation.
9 months ago
nodes
Update comment for IndexInfo.ii_NullsNotDistinct
7 months ago
optimizer
Fix some new issues with planning of PlaceHolderVars.
7 months ago
parser
Revert support for improved tracking of nested queries
7 months ago
partitioning
Fix incorrect #endif comment
11 months ago
pch
Update copyright for 2025
1 year ago
port
Fix build breakage on Solaris-alikes with late-model GCC.
6 months ago
portability
Update copyright for 2025
1 year ago
postmaster
Add missing PGDLLIMPORT markings
9 months ago
regex
Update copyright for 2025
1 year ago
replication
Change unit of idle_replication_slot_timeout to seconds.
6 months ago
rewrite
Refactor ChangeVarNodesExtended() using the custom callback
9 months ago
snowball
Update to latest Snowball sources.
11 months ago
statistics
Stats: use schemaname/relname instead of regclass.
10 months ago
storage
aio: Fix assertion, clarify README
6 months ago
tcop
Sync typedefs.list with the buildfarm.
7 months ago
tsearch
Update copyright for 2025
1 year ago
utils
Fix performance regression with flush of pending fixed-numbered stats
6 months ago
.gitignore
Use <stdint.h> and <inttypes.h> for c.h integers.
1 year ago
Makefile
Use <stdint.h> and <inttypes.h> for c.h integers.
1 year ago
c.h
Revert "Use workaround of __builtin_setjmp only on MINGW on MSVCRT"
10 months ago
fmgr.h
Avoid mixing designated and non-designated field initializers.
10 months ago
funcapi.h
Update copyright for 2025
1 year ago
getopt_long.h
IWYU widely useful pragmas
1 year ago
meson.build
Update copyright for 2025
1 year ago
miscadmin.h
Revert function to get memory context stats for processes
8 months ago
pg_config.h.in
aio: Combine io_uring memory mappings, if supported
7 months ago
pg_config_manual.h
Avoid invalidating all RelationSyncCache entries on publication rename.
10 months ago
pg_getopt.h
IWYU widely useful pragmas
1 year ago
pg_trace.h
IWYU widely useful pragmas
1 year ago
pgstat.h
pgstat: Allow checksum errors to be reported in critical sections
10 months ago
pgtar.h
Update copyright for 2025
1 year ago
pgtime.h
Seek zone abbreviations in the IANA data before timezone_abbreviations.
1 year ago
port.h
Add timingsafe_bcmp(), for constant-time memory comparison
10 months ago
postgres.h
IWYU widely useful pragmas
1 year ago
postgres_ext.h
libpq: Deprecate pg_int64.
10 months ago
postgres_fe.h
IWYU widely useful pragmas
1 year ago
varatt.h
Update copyright for 2025
1 year ago
windowapi.h
Update copyright for 2025
1 year ago