- Notifications
You must be signed in to change notification settings - Fork5k
Commit1fc3403
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 parent40b9c27 commit1fc3403
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17953 | 17953 |
| |
17954 | 17954 |
| |
17955 | 17955 |
| |
17956 |
| - | |
| 17956 | + | |
| 17957 | + | |
| 17958 | + | |
| 17959 | + | |
| 17960 | + | |
| 17961 | + | |
| 17962 | + | |
| 17963 | + | |
| 17964 | + | |
| 17965 | + | |
| 17966 | + | |
17957 | 17967 |
| |
17958 | 17968 |
| |
17959 | 17969 |
| |
| |||
18006 | 18016 |
| |
18007 | 18017 |
| |
18008 | 18018 |
| |
18009 |
| - | |
18010 |
| - | |
18011 |
| - | |
18012 |
| - | |
18013 |
| - | |
| 18019 | + | |
| 18020 | + | |
| 18021 | + | |
| 18022 | + | |
| 18023 | + | |
| 18024 | + | |
| 18025 | + | |
| 18026 | + | |
| 18027 | + | |
18014 | 18028 |
| |
18015 | 18029 |
| |
18016 | 18030 |
| |
|
0 commit comments
Comments
(0)