Skip to content

Commit 87b8f37

Browse files
author
Konstantin Knizhnik
committed
Add comments
1 parent b2c759e commit 87b8f37

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pgxn/neon/pagestore_client.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ extern void set_cached_relsize(NRelFileInfo rinfo, ForkNumber forknum, BlockNumb
282282
extern void update_cached_relsize(NRelFileInfo rinfo, ForkNumber forknum, BlockNumber size);
283283
extern void forget_cached_relsize(NRelFileInfo rinfo, ForkNumber forknum);
284284

285+
/*
286+
* Flags for relkind entry. It is bitmask, but not all combinations of this flags is possible.
287+
* RAW is set when information about persistent is not known.
288+
* When it is known, then UNLOGGED flags is set for unlogged relations.'
289+
* Finally UNLOGGED_BUILD is set for unlogged build (building of GIST/SPGIST/GIN... indexes).
290+
* Relation itself can be logged or unlogged.
291+
*/
285292
enum RelKindEntryFlags
286293
{
287294
RELKIND_UNLOGGED = 1, /* relation is temp or unlogged */

pgxn/neon/relkind_cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ static RelKindEntry*
112112
get_entry(NRelFileInfo rinfo, bool* found)
113113
{
114114
RelKindEntry* entry;
115+
115116
/*
116117
* This should actually never happen! Below we check if hash is full and delete least recently user item in this case.
117118
* But for further safety we also perform check here.

0 commit comments

Comments
 (0)