From: Tom Lane <tgl@sss.pgh.pa.us>
To: Claus Guttesen <kometen@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: change max_value in sequence
Date: Fri, 05 Sep 2008 11:39:10 -0400
Message-ID: <24842.1220629150@sss.pgh.pa.us> (raw)
In-Reply-To: <b41c75520809050558o541ac369w2a50fa47a2be2e99@mail.gmail.com>
References: <b41c75520809050558o541ac369w2a50fa47a2be2e99@mail.gmail.com>
"Claus Guttesen" <kometen@gmail.com> writes:
> I have a table with a serial field defined with an older version of
> postgresql (ver. 7). Back then max_value was 2147483647:
> How can I increase it? By updating the max_value-field?
I think you're looking for ALTER SEQUENCE.
Note that if the column it's feeding into is int4, you'd also need to
alter the column type ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kometen@gmail.com
Subject: Re: change max_value in sequence
In-Reply-To: <24842.1220629150@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox