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
5758d5ea
Commit
5758d5ea
authored
Nov 21, 2008
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use relation_expr for TABLE command, requested by Tom.
parent
3d7ac0d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
doc/src/sgml/ref/select.sgml
doc/src/sgml/ref/select.sgml
+2
-2
src/backend/parser/gram.y
src/backend/parser/gram.y
+3
-6
No files found.
doc/src/sgml/ref/select.sgml
View file @
5758d5ea
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.11
0 2008/11/20 14:04:4
5 petere Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.11
1 2008/11/21 11:47:5
5 petere Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -59,7 +59,7 @@ and <replaceable class="parameter">with_query</replaceable> is:
...
@@ -59,7 +59,7 @@ and <replaceable class="parameter">with_query</replaceable> is:
<replaceable class="parameter">with_query_name</replaceable> [ ( <replaceable class="parameter">column_name</replaceable> [, ...] ) ] AS ( <replaceable class="parameter">select</replaceable> )
<replaceable class="parameter">with_query_name</replaceable> [ ( <replaceable class="parameter">column_name</replaceable> [, ...] ) ] AS ( <replaceable class="parameter">select</replaceable> )
TABLE
<replaceable class="parameter">table_name</replaceable>
| <replaceable class="parameter">with_query_name</replaceable>
TABLE
[ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
| <replaceable class="parameter">with_query_name</replaceable>
</synopsis>
</synopsis>
</refsynopsisdiv>
</refsynopsisdiv>
...
...
src/backend/parser/gram.y
View file @
5758d5ea
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.63
8 2008/11/20 14:04:46
petere Exp $
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.63
9 2008/11/21 11:47:55
petere Exp $
*
*
* HISTORY
* HISTORY
* AUTHOR DATE MAJOR EVENT
* AUTHOR DATE MAJOR EVENT
...
@@ -6431,9 +6431,9 @@ simple_select:
...
@@ -6431,9 +6431,9 @@ simple_select:
$$ = (Node *)n;
$$ = (Node *)n;
}
}
| values_clause { $$ = $1; }
| values_clause { $$ = $1; }
| TABLE
qualified_name
| TABLE
relation_expr
{
{
/* same as SELECT * FROM
qualified_name
*/
/* same as SELECT * FROM
relation_expr
*/
ColumnRef *cr = makeNode(ColumnRef);
ColumnRef *cr = makeNode(ColumnRef);
ResTarget *rt = makeNode(ResTarget);
ResTarget *rt = makeNode(ResTarget);
SelectStmt *n = makeNode(SelectStmt);
SelectStmt *n = makeNode(SelectStmt);
...
@@ -6446,9 +6446,6 @@ simple_select:
...
@@ -6446,9 +6446,6 @@ simple_select:
rt->val = (Node *)cr;
rt->val = (Node *)cr;
rt->location = -1;
rt->location = -1;
$2->inhOpt = INH_DEFAULT;
$2->alias = NULL;
n->targetList = list_make1(rt);
n->targetList = list_make1(rt);
n->fromClause = list_make1($2);
n->fromClause = list_make1($2);
$$ = (Node *)n;
$$ = (Node *)n;
...
...
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