From 02ecb1ebbff7a8eba7cbb6299b747bdd30166729 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 11 Jul 2025 21:46:26 +0300 Subject: [PATCH] Update pgxn/neon/pagestore_client.h Co-authored-by: Heikki Linnakangas --- pgxn/neon/pagestore_client.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pgxn/neon/pagestore_client.h b/pgxn/neon/pagestore_client.h index 043378ce95..4cebdced4c 100644 --- a/pgxn/neon/pagestore_client.h +++ b/pgxn/neon/pagestore_client.h @@ -307,9 +307,22 @@ extern void forget_cached_relsize(NRelFileInfo rinfo, ForkNumber forknum); */ typedef enum { + /* The persistence is not known */ RELKIND_UNKNOWN, + + /* The relation is a permanent relation that is WAL-logged normally */ RELKIND_PERMANENT, + + /* The relation is an unlogged table/index, stored only on local disk */ RELKIND_UNLOGGED, + + /* + * The relation is a permanent (index) relation, but it is being built by an in-progress + * transaction. It currently only lives on local disk and hasn't been WAL-logged yet. + * It will turn into a permanent relation later when the index build completes. + * This is currently used for GiST, SP-GiST and GIN indexes, as well as the pgvector + * extension. + */ RELKIND_UNLOGGED_BUILD /* buildig index for permanent relation */ } RelKind;