Commit 079797e
committed
Purge potentially created bounds cache entries if build_pathman_relation_info failed.
Otherwise they might contain obsolete data, e.g.
- create range partitioned table T with a couple of partitions
- make pathman forget about it
- create another table P inherited from previously partitioned one, but with no
pathman constraints
- attempt to add_to_pathman_config T as range partitioned table
it will fail as P has no constraint, but might register other partitions in
bounds cache
- now add_to_pathman_config T as hash partitioned table will fail in attempt
to use this cache (part_idx not initialized)1 parent e251d2a commit 079797e
1 file changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
499 | 525 | | |
500 | 526 | | |
501 | 527 | | |
| |||
0 commit comments