forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit39808e8
committed
Fix catalog insertion order for ATTACH PARTITION
Commit2fbdf1b changed the order in which we inserted catalog rowswhen creating partitions, so that we could remove an unsightly hackrequired for untimely relcache invalidations. However, that commit onlychanged the ordering for CREATE TABLE PARTITION OF, and left ALTER TABLEATTACH PARTITION unchanged, so the latter can be affected when cataloginvalidations occur, for instance when the partition key involves an SQLfunction.Reported-by: Rajkumar RaghuwanshiAuthor: Amit LangoteReviewed-by: Michaël PaquierDiscussion:https://postgr.es/m/CAKcux6=nTz9KSfTr_6Z2mpzLJ_09JN-rK6=dWic6gGyTSWueyQ@mail.gmail.com1 parentad08006 commit39808e8
File tree
3 files changed
+34
-3
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+34
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14247 | 14247 |
| |
14248 | 14248 |
| |
14249 | 14249 |
| |
14250 |
| - | |
14251 |
| - | |
14252 |
| - | |
14253 | 14250 |
| |
14254 | 14251 |
| |
14255 | 14252 |
| |
| |||
14258 | 14255 |
| |
14259 | 14256 |
| |
14260 | 14257 |
| |
| 14258 | + | |
| 14259 | + | |
| 14260 | + | |
14261 | 14261 |
| |
14262 | 14262 |
| |
14263 | 14263 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3960 | 3960 |
| |
3961 | 3961 |
| |
3962 | 3962 |
| |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + |
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2618 | 2618 |
| |
2619 | 2619 |
| |
2620 | 2620 |
| |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + |
0 commit comments
Comments
(0)