1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Add TEMPORARY sequences and have SERIAL on a temp table have a temporary

sequence.
This commit is contained in:
Bruce Momjian
2001-06-23 00:07:34 +00:00
parent 280b5f4be6
commit a0c12d5e90
6 changed files with 29 additions and 12 deletions

View File

@@ -1289,9 +1289,9 @@ CreateAsElement: ColId { $$ = $1; }
*
*****************************************************************************/
CreateSeqStmt: CREATE SEQUENCE relation_name OptSeqList
CreateSeqStmt: CREATE OptTemp SEQUENCE relation_name OptSeqList
{
$$ = cat_str(3, make_str("create sequence"), $3, $4);
$$ = cat_str(4, make_str("create sequence"), $2, $4, $5);
}
;