forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3fe773b
committed
Track detached partitions more accurately in partdescs
Ind6b8d29 I (Álvaro) was sloppy about recording whether apartition descripor does or does not include detached partitions, whenthe snapshot checking does not see the pg_inherits row marked detached.In that case no partition was omitted, yet in the relcache entry we weresaving the partdesc as omitting partitions. Flip that (so we save it asa partdesc not omitting partitions, which indeed it doesn't), whichhopefully makes the code easier to reason about.Author: Amit Langote <amitlangote09@gmail.com>Discussion:https://postgr.es/m/CA+HiwqE7GxGU4VdzwZzfiz+Ont5SsopoFkgtrZGEdPqWRL+biA@mail.gmail.com1 parentc38cadc commit3fe773b
2 files changed
+17
-9
lines changedLines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
100 | 99 |
| |
101 | 100 |
| |
102 | 101 |
| |
103 | 102 |
| |
| 103 | + | |
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| 166 | + | |
166 | 167 |
| |
167 | 168 |
| |
168 | 169 |
| |
| |||
310 | 311 |
| |
311 | 312 |
| |
312 | 313 |
| |
313 |
| - | |
314 |
| - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
315 | 322 |
| |
316 |
| - | |
| 323 | + | |
| 324 | + | |
317 | 325 |
| |
318 | 326 |
| |
319 | 327 |
| |
| |||
343 | 351 |
| |
344 | 352 |
| |
345 | 353 |
| |
346 |
| - | |
347 |
| - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
348 | 357 |
| |
| 358 | + | |
349 | 359 |
| |
350 | 360 |
| |
351 | 361 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 141 | + | |
144 | 142 |
| |
145 | 143 |
| |
146 | 144 |
| |
|
0 commit comments
Comments
(0)