mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Fix a couple of unlogged tables goofs.
"SELECT ... INTO UNLOGGED tabname" works, but wasn't documented; CREATE UNLOGGED SEQUENCE and CREATE UNLOGGED VIEW failed an assertion, instead of throwing a sensible error. Latter issue reported by Itagaki Takahiro; patch review by Tom Lane.
This commit is contained in:
@ -119,6 +119,12 @@ DefineSequence(CreateSeqStmt *seq)
|
||||
int i;
|
||||
NameData name;
|
||||
|
||||
/* Unlogged sequences are not implemented -- not clear if useful. */
|
||||
if (seq->sequence->relpersistence == RELPERSISTENCE_UNLOGGED)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("unlogged sequences are not supported")));
|
||||
|
||||
/* Check and set all option values */
|
||||
init_params(seq->options, true, &new, &owned_by);
|
||||
|
||||
|
Reference in New Issue
Block a user