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
e9dc636e
Commit
e9dc636e
authored
Jan 07, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of outnodes.
parent
c01a56da
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
25 deletions
+27
-25
src/backend/lib/stringinfo.c
src/backend/lib/stringinfo.c
+2
-2
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+4
-4
src/backend/nodes/print.c
src/backend/nodes/print.c
+2
-2
src/backend/nodes/read.c
src/backend/nodes/read.c
+12
-10
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteDefine.c
+3
-3
src/man/explain.l
src/man/explain.l
+4
-4
No files found.
src/backend/lib/stringinfo.c
View file @
e9dc636e
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.
7 1998/01/06 18:52:0
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/lib/stringinfo.c,v 1.
8 1998/01/07 15:32:1
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -78,7 +78,7 @@ appendStringInfo(StringInfo str, char *buffer)
Assert
(
str
!=
NULL
);
if
(
buffer
==
NULL
)
buffer
=
"
\"\"
"
;
buffer
=
"
<>
"
;
/*
* do we have enough space to append the new string? (don't forget to
...
...
src/backend/nodes/outfuncs.c
View file @
e9dc636e
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.
19 1998/01/07 05:54:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.
20 1998/01/07 15:32:25
momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -282,7 +282,7 @@ _outPlanInfo(StringInfo str, Plan *node)
sprintf
(
buf
,
" :width %d "
,
node
->
plan_width
);
appendStringInfo
(
str
,
buf
);
appendStringInfo
(
str
,
" :state "
);
appendStringInfo
(
str
,
node
->
state
?
"not-NULL"
:
"
\"\"
"
);
appendStringInfo
(
str
,
node
->
state
?
"not-NULL"
:
"
<>
"
);
appendStringInfo
(
str
,
" :qptargetlist "
);
_outNode
(
str
,
node
->
targetlist
);
appendStringInfo
(
str
,
" :qpqual "
);
...
...
@@ -727,7 +727,7 @@ _outConst(StringInfo str, Const *node)
appendStringInfo
(
str
,
" :constvalue "
);
if
(
node
->
constisnull
)
{
appendStringInfo
(
str
,
"
\"\"
"
);
appendStringInfo
(
str
,
"
<>
"
);
}
else
{
...
...
@@ -1538,7 +1538,7 @@ _outNode(StringInfo str, void *obj)
{
if
(
obj
==
NULL
)
{
appendStringInfo
(
str
,
"
\"\"
"
);
appendStringInfo
(
str
,
"
<>
"
);
return
;
}
...
...
src/backend/nodes/print.c
View file @
e9dc636e
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.1
2 1997/12/18 12:53:56
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.1
3 1998/01/07 15:32:29
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -164,7 +164,7 @@ print_expr(Node *expr, List *rtable)
{
if
(
expr
==
NULL
)
{
printf
(
"
nil
"
);
printf
(
"
<>
"
);
return
;
}
...
...
src/backend/nodes/read.c
View file @
e9dc636e
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.
8 1998/01/07 08:07:58
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/read.c,v 1.
9 1998/01/07 15:32:31
momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -94,9 +94,8 @@ nodeTokenType(char *token, int length)
retval
=
(
*
token
!=
'.'
)
?
T_Integer
:
T_Float
;
}
/* make "" == NULL, not T_String. Is this a problem? 1998/1/7 bjm */
else
if
(
isalpha
(
*
token
)
||
*
token
==
'_'
||
(
token
[
0
]
==
'
\"'
&&
token
[
1
]
==
'\"
'
))
(
token
[
0
]
==
'
<'
&&
token
[
1
]
==
'>
'
))
retval
=
ATOM_TOKEN
;
else
if
(
*
token
==
'('
)
retval
=
LEFT_PAREN
;
...
...
@@ -145,15 +144,18 @@ lsptok(char *string, int *length)
return
(
NULL
);
*
length
=
1
;
if
(
*
local_str
==
'
\
"'
)
if
(
*
local_str
==
'"'
)
{
for
(
local_str
++
;
*
local_str
!=
'
\
"'
;
(
*
length
)
++
,
local_str
++
)
for
(
local_str
++
;
*
local_str
!=
'"'
;
(
*
length
)
++
,
local_str
++
)
;
if
(
*
length
==
1
)
*
length
=
0
;
/* if "", return zero length */
else
(
*
length
)
++
;
local_str
++
;
}
/* NULL */
else
if
(
local_str
[
0
]
==
'<'
&&
local_str
[
1
]
==
'>'
)
{
*
length
=
0
;
local_str
+=
2
;
}
else
if
(
*
local_str
==
')'
||
*
local_str
==
'('
||
*
local_str
==
'}'
||
*
local_str
==
'{'
)
...
...
@@ -231,7 +233,7 @@ nodeRead(bool read_car_only)
case
AT_SYMBOL
:
break
;
case
ATOM_TOKEN
:
if
(
!
strncmp
(
token
,
"
\"\"
"
,
2
))
if
(
!
strncmp
(
token
,
"
<>
"
,
2
))
{
this_value
=
NULL
;
...
...
src/backend/rewrite/rewriteDefine.c
View file @
e9dc636e
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.1
1 1998/01/07 08:08:08
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.1
2 1998/01/07 15:32:37
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -115,7 +115,7 @@ InsertRule(char *rulname,
is_instead
=
"t"
;
if
(
evqual
==
NULL
)
evqual
=
"
\"\"
"
;
evqual
=
"
<>
"
;
if
(
IsDefinedRewriteRule
(
rulname
))
elog
(
ABORT
,
"Attempt to insert rule '%s' failed: already exists"
,
...
...
@@ -245,7 +245,7 @@ DefineQueryRewrite(RuleStmt *stmt)
eslot_string
,
event_qualP
,
true
,
"
\"\"
"
);
"
<>
"
);
prs2_addToRelation
(
ev_relid
,
ruleId
,
event_type
,
event_attno
,
TRUE
,
event_qual
,
NIL
);
...
...
src/man/explain.l
View file @
e9dc636e
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/explain.l,v 1.
5 1997/06/12 23:45:54 thomas
Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/explain.l,v 1.
6 1998/01/07 15:32:47 momjian
Exp $
.TH EXPLAIN SQL 06/12/97 PostgreSQL PostgreSQL
.SH NAME
explain \(em explains statement execution details
...
...
@@ -29,16 +29,16 @@ EXPLAIN
tgl=> explain verbose select sum(a) from test;
NOTICE:QUERY PLAN:
{AGG :cost 0 :size 0 :width 0 :state
nil
:qptargetlist
{AGG :cost 0 :size 0 :width 0 :state
""
:qptargetlist
({TLE :resdom {RESDOM :resno 1 :restype 700 :reslen 4 :resname "sum"
:reskey 0 :reskeyop 0 :resjunk 0}
:expr {AGGREG :aggname "sum" :basetype 700 :aggtype 700 :aggno 0
:target {VAR :varno 1 :varattno 1 :vartype 700 :varnoold 1 :varoattno 1}}})
:qpqual
nil :lefttree {SEQSCAN :cost 0 :size 0 :width 4 :state nil
:qpqual
"" :lefttree {SEQSCAN :cost 0 :size 0 :width 4 :state ""
:qptargetlist ({TLE :resdom {RESDOM :resno 1 :restype 700 :reslen 4
:resname "null" :reskey 0 :reskeyop 0 :resjunk 0}
:expr {VAR :varno 1 :varattno 1 :vartype 700 :varnoold 1 :varoattno 1}})
:qpqual
nil :lefttree nil :righttree nil :scanrelid 1} :righttree nil
:numagg 1 }
:qpqual
"" :lefttree "" :righttree "" :scanrelid 1} :righttree ""
:numagg 1 }
Aggregate (cost=0.00 size=0 width=0)
-> Seq Scan on test (cost=0.00 size=0 width=4)
...
...
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