Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ec9e44ab
Commit
ec9e44ab
authored
Feb 21, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add handling for new RangeTblEntry column name.
parent
856da1e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
9 deletions
+24
-9
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+11
-4
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+13
-5
No files found.
src/backend/nodes/outfuncs.c
View file @
ec9e44ab
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.3
1 1998/02/21 16:58:24
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.3
2 1998/02/21 18:17:55
momjian Exp $
*
*
* NOTES
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
* Every (plan) node in POSTGRES has an associated "out" routine which
...
@@ -1057,14 +1057,21 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
...
@@ -1057,14 +1057,21 @@ _outRangeTblEntry(StringInfo str, RangeTblEntry *node)
appendStringInfo
(
str
,
" :relname "
);
appendStringInfo
(
str
,
" :relname "
);
appendStringInfo
(
str
,
node
->
relname
);
appendStringInfo
(
str
,
node
->
relname
);
appendStringInfo
(
str
,
" :inh "
);
appendStringInfo
(
str
,
node
->
inh
?
"true"
:
"false"
);
appendStringInfo
(
str
,
" :refname "
);
appendStringInfo
(
str
,
" :refname "
);
appendStringInfo
(
str
,
node
->
refname
);
appendStringInfo
(
str
,
node
->
refname
);
sprintf
(
buf
,
" :relid %u "
,
node
->
relid
);
sprintf
(
buf
,
" :relid %u "
,
node
->
relid
);
appendStringInfo
(
str
,
buf
);
appendStringInfo
(
str
,
buf
);
appendStringInfo
(
str
,
" :inh "
);
appendStringInfo
(
str
,
node
->
inh
?
"true"
:
"false"
);
appendStringInfo
(
str
,
" :inFromCl "
);
appendStringInfo
(
str
,
node
->
inFromCl
?
"true"
:
"false"
);
appendStringInfo
(
str
,
" :skipAcl "
);
appendStringInfo
(
str
,
node
->
skipAcl
?
"true"
:
"false"
);
}
}
/*
/*
...
...
src/backend/nodes/readfuncs.c
View file @
ec9e44ab
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2
6 1998/02/21 16:58:26
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2
7 1998/02/21 18:17:58
momjian Exp $
*
*
* NOTES
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
* Most of the read functions for plan nodes are tested. (In fact, they
...
@@ -1370,10 +1370,6 @@ _readRangeTblEntry()
...
@@ -1370,10 +1370,6 @@ _readRangeTblEntry()
StrNCpy
(
local_node
->
relname
,
token
,
length
+
1
);
StrNCpy
(
local_node
->
relname
,
token
,
length
+
1
);
}
}
token
=
lsptok
(
NULL
,
&
length
);
/* eat :inh */
token
=
lsptok
(
NULL
,
&
length
);
/* get :inh */
local_node
->
inh
=
(
token
[
0
]
==
't'
)
?
true
:
false
;
token
=
lsptok
(
NULL
,
&
length
);
/* eat :refname */
token
=
lsptok
(
NULL
,
&
length
);
/* eat :refname */
token
=
lsptok
(
NULL
,
&
length
);
/* get :refname */
token
=
lsptok
(
NULL
,
&
length
);
/* get :refname */
if
(
length
==
0
)
if
(
length
==
0
)
...
@@ -1388,6 +1384,18 @@ _readRangeTblEntry()
...
@@ -1388,6 +1384,18 @@ _readRangeTblEntry()
token
=
lsptok
(
NULL
,
&
length
);
/* get :relid */
token
=
lsptok
(
NULL
,
&
length
);
/* get :relid */
local_node
->
relid
=
strtoul
(
token
,
NULL
,
10
);
local_node
->
relid
=
strtoul
(
token
,
NULL
,
10
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :inh */
token
=
lsptok
(
NULL
,
&
length
);
/* get :inh */
local_node
->
inh
=
(
token
[
0
]
==
't'
)
?
true
:
false
;
token
=
lsptok
(
NULL
,
&
length
);
/* eat :inFromCl */
token
=
lsptok
(
NULL
,
&
length
);
/* get :inFromCl */
local_node
->
inFromCl
=
(
token
[
0
]
==
't'
)
?
true
:
false
;
token
=
lsptok
(
NULL
,
&
length
);
/* eat :skipAcl */
token
=
lsptok
(
NULL
,
&
length
);
/* get :skipAcl */
local_node
->
skipAcl
=
(
token
[
0
]
==
't'
)
?
true
:
false
;
return
(
local_node
);
return
(
local_node
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment