- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit3424c10
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 parent3c39c00 commit3424c10
1 file changed
+20
-6
lines changedLines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16933 | 16933 |
| |
16934 | 16934 |
| |
16935 | 16935 |
| |
16936 |
| - | |
| 16936 | + | |
| 16937 | + | |
| 16938 | + | |
| 16939 | + | |
| 16940 | + | |
| 16941 | + | |
| 16942 | + | |
| 16943 | + | |
| 16944 | + | |
| 16945 | + | |
| 16946 | + | |
16937 | 16947 |
| |
16938 | 16948 |
| |
16939 | 16949 |
| |
| |||
16986 | 16996 |
| |
16987 | 16997 |
| |
16988 | 16998 |
| |
16989 |
| - | |
16990 |
| - | |
16991 |
| - | |
16992 |
| - | |
16993 |
| - | |
| 16999 | + | |
| 17000 | + | |
| 17001 | + | |
| 17002 | + | |
| 17003 | + | |
| 17004 | + | |
| 17005 | + | |
| 17006 | + | |
| 17007 | + | |
16994 | 17008 |
| |
16995 | 17009 |
| |
16996 | 17010 |
| |
|
0 commit comments
Comments
(0)