Skip to content

Commit a30e917

Browse files
homperakorotkov
authored andcommitted
Serialize reftype for RTE_RELATION
Fixes "rules" regress test for running with orioledb
1 parent 05eca95 commit a30e917

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ _outRangeTblEntry(StringInfo str, const RangeTblEntry *node)
504504
case RTE_RELATION:
505505
WRITE_OID_FIELD(relid);
506506
WRITE_CHAR_FIELD(relkind);
507+
WRITE_INT_FIELD(reftype);
507508
WRITE_INT_FIELD(rellockmode);
508509
WRITE_NODE_FIELD(tablesample);
509510
WRITE_UINT_FIELD(perminfoindex);

src/backend/nodes/readfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ _readRangeTblEntry(void)
494494
case RTE_RELATION:
495495
READ_OID_FIELD(relid);
496496
READ_CHAR_FIELD(relkind);
497+
READ_INT_FIELD(reftype);
497498
READ_INT_FIELD(rellockmode);
498499
READ_NODE_FIELD(tablesample);
499500
READ_UINT_FIELD(perminfoindex);

0 commit comments

Comments
 (0)