forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd6b8d29
committed
Allow a partdesc-omitting-partitions to be cached
Makes partition descriptor acquisition faster during the transientperiod in which a partition is in the process of being detached.This also adds the restriction that only one partition can be inpending-detach state for a partitioned table.While at it, return find_inheritance_children() API to what it wasbefore71f4c8c, and create a separatefind_inheritance_children_extended() that returns detailed info aboutdetached partitions.(This incidentally fixes a bug in8aba932 whereby a memory contextholding a transient partdesc is reparented to a NULL PortalContext,leading to permanent leak of that memory. The fix is to no longer relyon reparenting contexts to PortalContext. Reported by Amit Langote.)Per gripe from Amit LangoteDiscussion:https://postgr.es/m/CA+HiwqFgpP1LxJZOBYGt9rpvTjXXkg5qG2+Xch2Z1Q7KrqZR1A@mail.gmail.com1 parentc93f8f3 commitd6b8d29
File tree
10 files changed
+329
-73
lines changed- doc/src/sgml/ref
- src
- backend
- catalog
- commands
- partitioning
- utils/cache
- include
- catalog
- utils
- test/isolation
- expected
- specs
10 files changed
+329
-73
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
986 | 986 |
| |
987 | 987 |
| |
988 | 988 |
| |
| 989 | + | |
| 990 | + | |
989 | 991 |
| |
990 | 992 |
| |
991 | 993 |
| |
|
Lines changed: 47 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
55 | 71 |
| |
56 | 72 |
| |
57 | 73 |
| |
| |||
60 | 76 |
| |
61 | 77 |
| |
62 | 78 |
| |
63 |
| - | |
| 79 | + | |
| 80 | + | |
64 | 81 |
| |
65 | 82 |
| |
66 |
| - | |
67 |
| - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
68 | 86 |
| |
69 | 87 |
| |
70 | 88 |
| |
| |||
132 | 150 |
| |
133 | 151 |
| |
134 | 152 |
| |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
135 | 177 |
| |
| 178 | + | |
136 | 179 |
| |
137 | 180 |
| |
138 | 181 |
| |
| |||
247 | 290 |
| |
248 | 291 |
| |
249 | 292 |
| |
250 |
| - | |
251 |
| - | |
| 293 | + | |
252 | 294 |
| |
253 | 295 |
| |
254 | 296 |
| |
|
Lines changed: 39 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3492 | 3492 |
| |
3493 | 3493 |
| |
3494 | 3494 |
| |
3495 |
| - | |
| 3495 | + | |
3496 | 3496 |
| |
3497 | 3497 |
| |
3498 | 3498 |
| |
| |||
3691 | 3691 |
| |
3692 | 3692 |
| |
3693 | 3693 |
| |
3694 |
| - | |
| 3694 | + | |
3695 | 3695 |
| |
3696 | 3696 |
| |
3697 | 3697 |
| |
| |||
6565 | 6565 |
| |
6566 | 6566 |
| |
6567 | 6567 |
| |
6568 |
| - | |
| 6568 | + | |
6569 | 6569 |
| |
6570 | 6570 |
| |
6571 | 6571 |
| |
| |||
6811 | 6811 |
| |
6812 | 6812 |
| |
6813 | 6813 |
| |
6814 |
| - | |
| 6814 | + | |
6815 | 6815 |
| |
6816 | 6816 |
| |
6817 | 6817 |
| |
| |||
7674 | 7674 |
| |
7675 | 7675 |
| |
7676 | 7676 |
| |
7677 |
| - | |
| 7677 | + | |
7678 | 7678 |
| |
7679 | 7679 |
| |
7680 | 7680 |
| |
| |||
8282 | 8282 |
| |
8283 | 8283 |
| |
8284 | 8284 |
| |
8285 |
| - | |
| 8285 | + | |
8286 | 8286 |
| |
8287 | 8287 |
| |
8288 | 8288 |
| |
| |||
8770 | 8770 |
| |
8771 | 8771 |
| |
8772 | 8772 |
| |
8773 |
| - | |
| 8773 | + | |
8774 | 8774 |
| |
8775 | 8775 |
| |
8776 | 8776 |
| |
| |||
11303 | 11303 |
| |
11304 | 11304 |
| |
11305 | 11305 |
| |
11306 |
| - | |
11307 |
| - | |
| 11306 | + | |
11308 | 11307 |
| |
11309 | 11308 |
| |
11310 | 11309 |
| |
| |||
11688 | 11687 |
| |
11689 | 11688 |
| |
11690 | 11689 |
| |
11691 |
| - | |
11692 |
| - | |
| 11690 | + | |
11693 | 11691 |
| |
11694 | 11692 |
| |
11695 | 11693 |
| |
| |||
14601 | 14599 |
| |
14602 | 14600 |
| |
14603 | 14601 |
| |
14604 |
| - | |
| 14602 | + | |
| 14603 | + | |
14605 | 14604 |
| |
14606 | 14605 |
| |
14607 | 14606 |
| |
| |||
14617 | 14616 |
| |
14618 | 14617 |
| |
14619 | 14618 |
| |
14620 |
| - | |
| 14619 | + | |
| 14620 | + | |
14621 | 14621 |
| |
14622 | 14622 |
| |
14623 | 14623 |
| |
14624 |
| - | |
| 14624 | + | |
14625 | 14625 |
| |
14626 |
| - | |
14627 |
| - | |
| 14626 | + | |
| 14627 | + | |
14628 | 14628 |
| |
14629 | 14629 |
| |
14630 | 14630 |
| |
14631 | 14631 |
| |
14632 |
| - | |
| 14632 | + | |
14633 | 14633 |
| |
14634 |
| - | |
14635 |
| - | |
14636 |
| - | |
14637 |
| - | |
| 14634 | + | |
| 14635 | + | |
| 14636 | + | |
| 14637 | + | |
| 14638 | + | |
| 14639 | + | |
| 14640 | + | |
| 14641 | + | |
| 14642 | + | |
| 14643 | + | |
| 14644 | + | |
| 14645 | + | |
| 14646 | + | |
14638 | 14647 |
| |
14639 |
| - | |
14640 |
| - | |
| 14648 | + | |
| 14649 | + | |
14641 | 14650 |
| |
14642 |
| - | |
14643 |
| - | |
14644 |
| - | |
14645 |
| - | |
| 14651 | + | |
| 14652 | + | |
| 14653 | + | |
| 14654 | + | |
| 14655 | + | |
| 14656 | + | |
| 14657 | + | |
14646 | 14658 |
| |
14647 | 14659 |
| |
14648 | 14660 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 | 1143 |
| |
1144 |
| - | |
1145 |
| - | |
| 1144 | + | |
1146 | 1145 |
| |
1147 | 1146 |
| |
1148 | 1147 |
| |
|
0 commit comments
Comments
(0)