aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-08-19 16:09:10 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-08-19 16:09:10 -0400
commit11f1218ce81ef3ce98389754456ca9365fa10dbe (patch)
tree4f3deb60050ad7bbfe214b25fcba05d8c375d060 /src/backend/utils/adt/ruleutils.c
parentde8770b47f1f763378d9d130d69e3a7b8a54684a (diff)
downloadpostgresql-11f1218ce81ef3ce98389754456ca9365fa10dbe.tar.gz
postgresql-11f1218ce81ef3ce98389754456ca9365fa10dbe.zip
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 <alvherre@alvh.no-ip.org> Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com> Reviewed-by: Junwang Zhao <zhjwpku@gmail.com> Discussion: https://postgr.es/m/202408122233.bo4adt3vh5bi@alvherre.pgsql
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions