pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add try_index_open(), conditional variant of index_open()
4+ messages / 1 participants
[nested] [flat]

* pgsql: Add try_index_open(), conditional variant of index_open()
@ 2024-01-18 06:05  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2024-01-18 06:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b685b41cf0a3d7523ed4781be23497da0e9507b4

Modified Files
--------------
src/backend/access/index/indexam.c | 49 +++++++++++++++++++++++++++++++++-----
src/include/access/genam.h         |  1 +
2 files changed, 44 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Add try_index_open(), conditional variant of index_open()
@ 2024-01-18 06:05  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2024-01-18 06:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7ce65c6f7209fcbc73605c914c37c4b2a6406213

Modified Files
--------------
src/backend/access/index/indexam.c | 49 +++++++++++++++++++++++++++++++++-----
src/include/access/genam.h         |  1 +
2 files changed, 44 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Add try_index_open(), conditional variant of index_open()
@ 2024-01-18 06:05  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2024-01-18 06:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8013850c853db67ee753e5b730231cfad846b806

Modified Files
--------------
src/backend/access/index/indexam.c | 49 +++++++++++++++++++++++++++++++++-----
src/include/access/genam.h         |  1 +
2 files changed, 44 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Add try_index_open(), conditional variant of index_open()
@ 2024-01-18 06:05  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2024-01-18 06:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1cf2dba84b189ef08df7b029ca5f99d85b6ce7aa

Modified Files
--------------
src/backend/access/index/indexam.c | 49 +++++++++++++++++++++++++++++++++-----
src/include/access/genam.h         |  1 +
2 files changed, 44 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2024-01-18 06:05 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-01-18 06:05 pgsql: Add try_index_open(), conditional variant of index_open() Michael Paquier <michael@paquier.xyz>
2024-01-18 06:05 pgsql: Add try_index_open(), conditional variant of index_open() Michael Paquier <michael@paquier.xyz>
2024-01-18 06:05 pgsql: Add try_index_open(), conditional variant of index_open() Michael Paquier <michael@paquier.xyz>
2024-01-18 06:05 pgsql: Add try_index_open(), conditional variant of index_open() Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox