We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8a1468a commit6851baeCopy full SHA for 6851bae
src/backend/parser/gram.y
@@ -11,7 +11,7 @@
11
*
12
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.524 2006/01/22 20:03:16 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.525 2006/01/31 22:40:03 tgl Exp $
15
16
* HISTORY
17
* AUTHORDATEMAJOR EVENT
@@ -3672,7 +3672,7 @@ func_return:
3672
;
3673
3674
/*
3675
- * We would like to make thesecond production here be ColId attrs etc,
+ * We would like to make the%TYPE productions here be ColId attrs etc,
3676
* but that causes reduce/reduce conflicts. type_name is next best choice.
3677
*/
3678
func_type:Typename{$$ =$1; }
@@ -3683,6 +3683,14 @@ func_type:Typename{ $$ = $1; }
3683
$$->pct_type =true;
3684
$$->typmod = -1;
3685
}
3686
+| SETOF type_name attrs'%' TYPE_P
3687
+{
3688
+$$ = makeNode(TypeName);
3689
+$$->names = lcons(makeString($2),$3);
3690
+$$->pct_type =true;
3691
+$$->typmod = -1;
3692
+$$->setof =TRUE;
3693
+}
3694
3695
3696