- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit148cc01
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 parent4604928 commit148cc01
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17075 | 17075 |
| |
17076 | 17076 |
| |
17077 | 17077 |
| |
17078 |
| - | |
| 17078 | + | |
| 17079 | + | |
| 17080 | + | |
| 17081 | + | |
| 17082 | + | |
| 17083 | + | |
| 17084 | + | |
| 17085 | + | |
| 17086 | + | |
| 17087 | + | |
| 17088 | + | |
17079 | 17089 |
| |
17080 | 17090 |
| |
17081 | 17091 |
| |
| |||
17129 | 17139 |
| |
17130 | 17140 |
| |
17131 | 17141 |
| |
17132 |
| - | |
17133 |
| - | |
17134 |
| - | |
17135 |
| - | |
17136 |
| - | |
| 17142 | + | |
| 17143 | + | |
| 17144 | + | |
| 17145 | + | |
| 17146 | + | |
| 17147 | + | |
| 17148 | + | |
| 17149 | + | |
| 17150 | + | |
17137 | 17151 |
| |
17138 | 17152 |
| |
17139 | 17153 |
| |
|
0 commit comments
Comments
(0)