From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Column with recycled sequence value
Date: Thu, 13 Jan 2005 15:31:54 -0600
Message-ID: <1105651913.24795.102.camel@state.g2switchworks.com> (raw)
In-Reply-To: <20050113211903.GA41687@winnie.fuhr.org>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB1654B@neptun.sonorys.at>
<1105649326.24795.99.camel@state.g2switchworks.com>
<20050113211903.GA41687@winnie.fuhr.org>
On Thu, 2005-01-13 at 15:19, Michael Fuhr wrote:
> On Thu, Jan 13, 2005 at 02:48:47PM -0600, Scott Marlowe wrote:
> > On Thu, 2005-01-13 at 11:08, KÖPFERL Robert wrote:
>
> > > suppose I have a let's say heavy used table. There's a column containing
> > > UNIQUE in4
> > > values. The data type musn't exceed 32-Bit. Since however the table is heavy
> > > used 2^32 will be reached soon and then? There are far less than 4G-records
> > > saved thus these values may be reused. How can this be accomplished?
> > >
> > > I already defined a sequence but then?
> >
> > Redefine it as a bigserial?
>
> That would violate the 32-bit requirement since bigserial would
> make the field a bigint (64 bits). Or am I missing something?
I wasn't sure if that was a limitation he was facing due to business
rules or if he was referring to the limit in postgresql.
Any method that tries to reuse sequence numbers is a bad idea (TM) and
to be avoided, so my point in asking was if the user didn't know about
bigserial / bigint.
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-sql@postgresql.org
Cc: smarlowe@g2switchworks.com, mike@fuhr.org, robert.koepferl@sonorys.at
Subject: Re: Column with recycled sequence value
In-Reply-To: <1105651913.24795.102.camel@state.g2switchworks.com>
* 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