- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7144cd5
committed
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 duringrestore. While the error is harmless, it causes problems if youtry to use --single-transaction mode.Fortunately, there seems no need to do a DROP at all, since thepartition will go away silently when we drop either the parent indexor the partition's table. So just make the DROP conditional on notbeing 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.comBackpatch-through: 131 parent97d6716 commit7144cd5
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16381 | 16381 |
| |
16382 | 16382 |
| |
16383 | 16383 |
| |
16384 |
| - | |
| 16384 | + | |
| 16385 | + | |
| 16386 | + | |
| 16387 | + | |
| 16388 | + | |
| 16389 | + | |
| 16390 | + | |
| 16391 | + | |
| 16392 | + | |
| 16393 | + | |
| 16394 | + | |
16385 | 16395 |
| |
16386 | 16396 |
| |
16387 | 16397 |
| |
| |||
16436 | 16446 |
| |
16437 | 16447 |
| |
16438 | 16448 |
| |
16439 |
| - | |
16440 |
| - | |
16441 |
| - | |
16442 |
| - | |
16443 |
| - | |
| 16449 | + | |
| 16450 | + | |
| 16451 | + | |
| 16452 | + | |
| 16453 | + | |
| 16454 | + | |
| 16455 | + | |
| 16456 | + | |
| 16457 | + | |
16444 | 16458 |
| |
16445 | 16459 |
| |
16446 | 16460 |
| |
|
0 commit comments
Comments
(0)