File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.110 2008/11/20 14:04:45 petere Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.111 2008/11/21 11:47:55 petere Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -59,7 +59,7 @@ and <replaceable class="parameter">with_query</replaceable> is:
59
59
60
60
<replaceable class="parameter">with_query_name</replaceable> [ ( <replaceable class="parameter">column_name</replaceable> [, ...] ) ] AS ( <replaceable class="parameter">select</replaceable> )
61
61
62
- TABLE <replaceable class="parameter">table_name</replaceable> | <replaceable class="parameter">with_query_name</replaceable>
62
+ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] | <replaceable class="parameter">with_query_name</replaceable>
63
63
</synopsis>
64
64
65
65
</refsynopsisdiv>
Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.638 2008/11/20 14:04:46 petere Exp $
14
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.639 2008/11/21 11:47:55 petere Exp $
15
15
*
16
16
* HISTORY
17
17
* AUTHOR DATE MAJOR EVENT
@@ -6431,9 +6431,9 @@ simple_select:
6431
6431
$$ = (Node *)n;
6432
6432
}
6433
6433
| values_clause { $$ = $1 ; }
6434
- | TABLE qualified_name
6434
+ | TABLE relation_expr
6435
6435
{
6436
- /* same as SELECT * FROM qualified_name */
6436
+ /* same as SELECT * FROM relation_expr */
6437
6437
ColumnRef *cr = makeNode(ColumnRef);
6438
6438
ResTarget *rt = makeNode(ResTarget);
6439
6439
SelectStmt *n = makeNode(SelectStmt);
@@ -6446,9 +6446,6 @@ simple_select:
6446
6446
rt->val = (Node *)cr;
6447
6447
rt->location = -1 ;
6448
6448
6449
- $2 ->inhOpt = INH_DEFAULT;
6450
- $2 ->alias = NULL ;
6451
-
6452
6449
n->targetList = list_make1(rt);
6453
6450
n->fromClause = list_make1($2 );
6454
6451
$$ = (Node *)n;
You can’t perform that action at this time.
0 commit comments