postgresql/src/bin
Tom Lane 3424c1075e Fix pg_dump --clean with partitioned indexes.
We'd try to drop the partitions of a partitioned index separately,
which is disallowed by the backend, leading to an error during
restore.  While the error is harmless, it causes problems if you
try to use --single-transaction mode.

Fortunately, there seems no need to do a DROP at all, since the
partition will go away silently when we drop either the parent index
or the partition's table.  So just make the DROP conditional on not
being a partition.

Reported-by: jian he <jian.universality@gmail.com>
Author: jian he <jian.universality@gmail.com>
Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CACJufxF0QSdkjFKF4di-JGWN6CSdQYEAhGPmQJJCdkSZtd=oLg@mail.gmail.com
Backpatch-through: 13
2025-04-16 13:31:44 -04:00
..
initdb Translation updates 2025-02-17 17:51:30 +01:00
pg_amcheck pg_amcheck: Fix inconsistency in memory freeing 2025-02-27 14:05:55 +09:00
pg_archivecleanup Translation updates 2025-02-17 17:51:30 +01:00
pg_basebackup Translation updates 2025-02-17 17:51:30 +01:00
pg_checksums Translation updates 2025-02-17 17:51:30 +01:00
pg_combinebackup pg_combinebackup: Fix incorrect code documentation 2025-04-15 15:27:08 +02:00
pg_config Translation updates 2025-02-17 17:51:30 +01:00
pg_controldata Translation updates 2025-02-17 17:51:30 +01:00
pg_ctl Translation updates 2025-02-17 17:51:30 +01:00
pg_dump Fix pg_dump --clean with partitioned indexes. 2025-04-16 13:31:44 -04:00
pg_resetwal Translation updates 2025-02-17 17:51:30 +01:00
pg_rewind Translation updates 2025-02-17 17:51:30 +01:00
pg_test_fsync Translation updates 2025-02-17 17:51:30 +01:00
pg_test_timing Translation updates 2025-02-17 17:51:30 +01:00
pg_upgrade Fix unintentional 'NULL' string literal in pg_upgrade. 2025-04-06 09:13:43 -07:00
pg_verifybackup Translation updates 2025-02-17 17:51:30 +01:00
pg_waldump Translation updates 2025-02-17 17:51:30 +01:00
pg_walsummary Translation updates 2025-02-10 15:00:55 +01:00
pgbench Fix pgbench performance issue induced by commit af35fe501. 2025-02-07 13:41:42 -05:00
pgevent meson: Build pgevent as shared_module rather than shared_library 2024-11-26 18:09:14 +01:00
psql Translation updates 2025-02-17 17:51:30 +01:00
scripts reindexdb: Fix the index-level REINDEX with multiple jobs 2025-03-16 13:29:20 +02:00
Makefile Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00
meson.build Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00