pgsql: Add try_index_open(), conditional variant of index_open()

2024-01-17 Thread Michael Paquier
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

pgsql: Add try_index_open(), conditional variant of index_open()

2024-01-17 Thread Michael Paquier
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

pgsql: Add try_index_open(), conditional variant of index_open()

2024-01-17 Thread Michael Paquier
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

pgsql: Add try_index_open(), conditional variant of index_open()

2024-01-17 Thread Michael Paquier
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