Skip to content

Commit

Permalink
Fix ExecStoreHeapTuple for pg11
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Sep 25, 2023
1 parent fed5a9c commit cd0e4a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/extern_defined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ PG_BIN=$(pg_config --bindir)/postgres
nm -D $PG_BIN | grep " T " | awk '{print $3}' | sed -e 's/@.*$//p'
# global bss symbol in postgres
nm -D $PG_BIN | grep " B " | awk '{print $3}' | sed -e 's/@.*$//p'
# postgres Initialized data (bbs), global symbols
nm -D $PG_BIN | grep " D " | awk '{print $3}' | sed -e 's/@.*$//p'
# postgres weak symbols
nm -D $PG_BIN | grep " w " | awk '{print $2}' | sed -e 's/@.*$//p'

Expand Down
6 changes: 5 additions & 1 deletion src/hnsw/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ static int GetArrayLengthFromExpression(Expr *expression, Relation heap, HeapTup
// Build the expression state for your expression
exprstate = ExecPrepareExpr(expression, estate);

ExecStoreHeapTuple(tuple, slot, true);
#if PG_VERSION_NUM >= 120000
ExecStoreHeapTuple(tuple, slot, false);
#else
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
#endif
// Set up the tuple for the expression evaluation
econtext->ecxt_scantuple = slot;

Expand Down

0 comments on commit cd0e4a8

Please sign in to comment.