From: Rolf Johansson <rojo@nocrew.org>
To: pgsql-sql@postgresql.org
Subject: new serial type
Date: 13 Jan 2001 11:42:56 +0100
Message-ID: <7j3denn367.fsf@junk.nocrew.org> (raw)
Is there some function to change the serial type to, instead of reading
a next-value, read the maxium value in a column and then add x? If, for
some reason, the sequence is not updated (when I'm doing COPY into a
table), I'll have to recreate the sequence. Instead, it would be much
more simple just to take the max()+x value for a new type of serial type.
/Rolf
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rojo@nocrew.org
Subject: Re: new serial type
In-Reply-To: <7j3denn367.fsf@junk.nocrew.org>
References: <7j3denn367.fsf@junk.nocrew.org>
* 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