Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec9e44a

Browse files
committed
Add handling for new RangeTblEntry column name.
1 parent856da1e commitec9e44a

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

‎src/backend/nodes/outfuncs.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.31 1998/02/2116:58:24 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.32 1998/02/2118:17:55 momjian Exp $
1111
*
1212
* NOTES
1313
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -1057,14 +1057,21 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
10571057
appendStringInfo(str," :relname ");
10581058
appendStringInfo(str,node->relname);
10591059

1060-
appendStringInfo(str," :inh ");
1061-
appendStringInfo(str,node->inh ?"true" :"false");
1062-
10631060
appendStringInfo(str," :refname ");
10641061
appendStringInfo(str,node->refname);
10651062

10661063
sprintf(buf," :relid %u ",node->relid);
10671064
appendStringInfo(str,buf);
1065+
1066+
appendStringInfo(str," :inh ");
1067+
appendStringInfo(str,node->inh ?"true" :"false");
1068+
1069+
appendStringInfo(str," :inFromCl ");
1070+
appendStringInfo(str,node->inFromCl ?"true" :"false");
1071+
1072+
appendStringInfo(str," :skipAcl ");
1073+
appendStringInfo(str,node->skipAcl ?"true" :"false");
1074+
10681075
}
10691076

10701077
/*

‎src/backend/nodes/readfuncs.c

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.26 1998/02/2116:58:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.27 1998/02/2118:17:58 momjian Exp $
1111
*
1212
* NOTES
1313
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -1370,10 +1370,6 @@ _readRangeTblEntry()
13701370
StrNCpy(local_node->relname,token,length+1);
13711371
}
13721372

1373-
token=lsptok(NULL,&length);/* eat :inh */
1374-
token=lsptok(NULL,&length);/* get :inh */
1375-
local_node->inh= (token[0]=='t') ? true : false;
1376-
13771373
token=lsptok(NULL,&length);/* eat :refname */
13781374
token=lsptok(NULL,&length);/* get :refname */
13791375
if (length==0)
@@ -1388,6 +1384,18 @@ _readRangeTblEntry()
13881384
token=lsptok(NULL,&length);/* get :relid */
13891385
local_node->relid=strtoul(token,NULL,10);
13901386

1387+
token=lsptok(NULL,&length);/* eat :inh */
1388+
token=lsptok(NULL,&length);/* get :inh */
1389+
local_node->inh= (token[0]=='t') ? true : false;
1390+
1391+
token=lsptok(NULL,&length);/* eat :inFromCl */
1392+
token=lsptok(NULL,&length);/* get :inFromCl */
1393+
local_node->inFromCl= (token[0]=='t') ? true : false;
1394+
1395+
token=lsptok(NULL,&length);/* eat :skipAcl */
1396+
token=lsptok(NULL,&length);/* get :skipAcl */
1397+
local_node->skipAcl= (token[0]=='t') ? true : false;
1398+
13911399
return (local_node);
13921400
}
13931401

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp