mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Todo items:
Add ALTER SEQUENCE to modify min/max/increment/cache/cycle values Also updated create sequence docs to mention NO MINVALUE, & NO MAXVALUE. New Files: doc/src/sgml/ref/alter_sequence.sgml src/test/regress/expected/sequence.out src/test/regress/sql/sequence.sql ALTER SEQUENCE is NOT transactional. It behaves similarly to setval(). It matches the proposed SQL200N spec, as well as Oracle in most ways -- Oracle lacks RESTART WITH for some strange reason. -- Rod Taylor <rbt@rbt.ca>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.233 2003/03/11 19:40:23 tgl Exp $
|
||||
* $Id: parsenodes.h,v 1.234 2003/03/20 07:02:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1043,7 +1043,7 @@ typedef struct DropGroupStmt
|
||||
} DropGroupStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Create SEQUENCE Statement
|
||||
* {Create|Alter} SEQUENCE Statement
|
||||
* ----------------------
|
||||
*/
|
||||
|
||||
@@ -1054,6 +1054,13 @@ typedef struct CreateSeqStmt
|
||||
List *options;
|
||||
} CreateSeqStmt;
|
||||
|
||||
typedef struct AlterSeqStmt
|
||||
{
|
||||
NodeTag type;
|
||||
RangeVar *sequence; /* the sequence to alter */
|
||||
List *options;
|
||||
} AlterSeqStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Create {Aggregate|Operator|Type} Statement
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user