Skip to content

Commit

Permalink
Fix error with PG17 palloc0fast compilation
Browse files Browse the repository at this point in the history
In PG17 palloc0fast is removed and palloc0 is instead
  • Loading branch information
uhayat committed Sep 25, 2024
1 parent 3247728 commit 6674a52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/nodes/ag_nodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ ExtensibleNode *_new_ag_node(Size size, ag_node_tag tag)
{
ExtensibleNode *n;

#if PG_VERSION_NUM >= 170000
n = (ExtensibleNode *)palloc0(size);
#else
n = (ExtensibleNode *)palloc0fast(size);
#endif
n->type = T_ExtensibleNode;
n->extnodename = node_names[tag];

Expand Down

0 comments on commit 6674a52

Please sign in to comment.