diff options
| author | Alvaro Herrera | 2024-08-19 20:09:10 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2024-08-19 20:09:10 +0000 |
| commit | 52f3de874bbeaf16b3ae2efb505c1117be8355cc (patch) | |
| tree | eee572634071ce0419bdd427423128b89e4fa8eb /src/backend/optimizer/path/joinpath.c | |
| parent | 0d06a7eac4b23cc7b8fd4568d8623a6023646f63 (diff) | |
Avoid failure to open dropped detached partition
When a partition is detached and immediately dropped, a prepared
statement could try to compute a new partition descriptor that includes
it. This leads to this kind of error:
ERROR: could not open relation with OID 457639
Avoid this by skipping the partition in expand_partitioned_rtentry if it
doesn't exist.
Noted by me while investigating bug #18559. Kuntal Gosh helped to
identify the exact failure.
Backpatch to 14, where DETACH CONCURRENTLY was introduced.
Author: Álvaro Herrera <[email protected]>
Reviewed-by: Kuntal Ghosh <[email protected]>
Reviewed-by: Junwang Zhao <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/optimizer/path/joinpath.c')
0 files changed, 0 insertions, 0 deletions
