From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Adjust min/max values when changing sequence type |
Date: | 2017-04-04 16:51:36 |
Message-ID: | E1cvRg8-0000XG-8P@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Adjust min/max values when changing sequence type
When changing the type of a sequence, adjust the min/max values of the
sequence if it looks like the previous values were the default values.
Previously, it would leave the old values in place, requiring manual
adjustments even in the usual/default cases.
Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Reviewed-by: Vitaly Burovoy <vitaly(dot)burovoy(at)gmail(dot)com>
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/60a0b2ec8943451186dfa22907f88334d97cb2e0
Modified Files
--------------
doc/src/sgml/ref/alter_sequence.sgml | 13 ++++++----
src/backend/commands/sequence.c | 43 ++++++++++++++++++++++++++--------
src/test/regress/expected/sequence.out | 40 +++++++++++++++++++++++++++----
src/test/regress/sql/sequence.sql | 22 ++++++++++++++---
4 files changed, 96 insertions(+), 22 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2017-04-04 19:58:12 | pgsql: Speedup 2PC recovery by skipping two phase state files in normal |
Previous Message | Stephen Frost | 2017-04-04 13:59:01 | Re: [COMMITTERS] pgsql: Add COMMENT and SECURITY LABEL support for publications and subs |