Skip to content

Commit 6c1125c

Browse files
homperakorotkov
authored andcommitted
Serialize reftype for RTE_RELATION
Fixes "rules" regress test for running with orioledb
1 parent 3c90b15 commit 6c1125c

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
@@ -507,6 +507,7 @@ _outRangeTblEntry(StringInfo str, const RangeTblEntry *node)
507507
WRITE_OID_FIELD(relid);
508508
WRITE_BOOL_FIELD(inh);
509509
WRITE_CHAR_FIELD(relkind);
510+
WRITE_INT_FIELD(reftype);
510511
WRITE_INT_FIELD(rellockmode);
511512
WRITE_UINT_FIELD(perminfoindex);
512513
WRITE_NODE_FIELD(tablesample);

src/backend/nodes/readfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ _readRangeTblEntry(void)
358358
READ_OID_FIELD(relid);
359359
READ_BOOL_FIELD(inh);
360360
READ_CHAR_FIELD(relkind);
361+
READ_INT_FIELD(reftype);
361362
READ_INT_FIELD(rellockmode);
362363
READ_UINT_FIELD(perminfoindex);
363364
READ_NODE_FIELD(tablesample);

0 commit comments

Comments
 (0)