mirror of
https://github.com/postgres/postgres.git
synced 2025-12-02 23:42:46 +03:00
Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a
sequence to be reset to its original starting value. This requires adding the original start value to the set of parameters (columns) of a sequence object, which is a user-visible change with potential compatibility implications; it also forces initdb. Also add hopefully-SQL-compatible RESTART/CONTINUE IDENTITY options to TRUNCATE TABLE. RESTART IDENTITY executes ALTER SEQUENCE RESTART for all sequences "owned by" any of the truncated relations. CONTINUE IDENTITY is a no-op option. Zoltan Boszormenyi
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.195 2008/03/27 03:57:33 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.196 2008/05/16 23:36:05 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -101,6 +101,7 @@ static const ScanKeyword ScanKeywords[] = {
|
||||
{"constraint", CONSTRAINT, RESERVED_KEYWORD},
|
||||
{"constraints", CONSTRAINTS, UNRESERVED_KEYWORD},
|
||||
{"content", CONTENT_P, UNRESERVED_KEYWORD},
|
||||
{"continue", CONTINUE_P, UNRESERVED_KEYWORD},
|
||||
{"conversion", CONVERSION_P, UNRESERVED_KEYWORD},
|
||||
{"copy", COPY, UNRESERVED_KEYWORD},
|
||||
{"cost", COST, UNRESERVED_KEYWORD},
|
||||
@@ -181,6 +182,7 @@ static const ScanKeyword ScanKeywords[] = {
|
||||
{"header", HEADER_P, UNRESERVED_KEYWORD},
|
||||
{"hold", HOLD, UNRESERVED_KEYWORD},
|
||||
{"hour", HOUR_P, UNRESERVED_KEYWORD},
|
||||
{"identity", IDENTITY_P, UNRESERVED_KEYWORD},
|
||||
{"if", IF_P, UNRESERVED_KEYWORD},
|
||||
{"ilike", ILIKE, TYPE_FUNC_NAME_KEYWORD},
|
||||
{"immediate", IMMEDIATE, UNRESERVED_KEYWORD},
|
||||
|
||||
Reference in New Issue
Block a user