aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-18 15:04:24 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-18 15:04:24 +0900
commit8013850c853db67ee753e5b730231cfad846b806 (patch)
treed13e1d17ca6124047e2747fde946b5172166ef97 /src/backend/tcop/postgres.c
parent2f35c14cfb3dadede883a7d8f458e5a15f13a97b (diff)
downloadpostgresql-8013850c853db67ee753e5b730231cfad846b806.tar.gz
postgresql-8013850c853db67ee753e5b730231cfad846b806.zip
Add try_index_open(), conditional variant of index_open()
try_index_open() is able to open an index if its relkind fits, except that it would return NULL instead of generated an error if the relation does not exist. This new routine will be used by an upcoming patch to make REINDEX on partitioned relations more robust when an index in a partition tree is dropped. Extracted from a larger patch by the same author. Author: Fei Changhong Discussion: https://postgr.es/m/tencent_6A52106095ACDE55333E3AD33F304C0C3909@qq.com Backpatch-through: 14
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions