- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6a3e578
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 parentc7597a1 commit6a3e578
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17015 | 17015 |
| |
17016 | 17016 |
| |
17017 | 17017 |
| |
17018 |
| - | |
| 17018 | + | |
| 17019 | + | |
| 17020 | + | |
| 17021 | + | |
| 17022 | + | |
| 17023 | + | |
| 17024 | + | |
| 17025 | + | |
| 17026 | + | |
| 17027 | + | |
| 17028 | + | |
17019 | 17029 |
| |
17020 | 17030 |
| |
17021 | 17031 |
| |
| |||
17069 | 17079 |
| |
17070 | 17080 |
| |
17071 | 17081 |
| |
17072 |
| - | |
17073 |
| - | |
17074 |
| - | |
17075 |
| - | |
17076 |
| - | |
| 17082 | + | |
| 17083 | + | |
| 17084 | + | |
| 17085 | + | |
| 17086 | + | |
| 17087 | + | |
| 17088 | + | |
| 17089 | + | |
| 17090 | + | |
17077 | 17091 |
| |
17078 | 17092 |
| |
17079 | 17093 |
| |
|
0 commit comments
Comments
(0)