From: Kevin Brannen <kevinb@nurseamerica.net>
To: pgsql-sql@postgresql.org
Subject: is it easy to change the create sequence algorithm?
Date: Tue, 18 Jun 2002 19:16:35 -0500
Message-ID: <3D0FCD63.8030505@nurseamerica.net> (raw)
I see in the docs that when I create a column that is of type SERIAL,
the engine automatically creates the sequence for me, named
TABLE_COLUMN_seq. That's great until the table name + column name
lengths are > 27 chars, then it starts chopping, and you guessed it, I
have multiple table/column combinations that don't differ until after
that length.
Is there a way to influence the "create sequence" generator with a
directive, hint, set value, whatever, to be something else? (e.g.
COLUMN_seq if I guarantee all the columns are unique)
Yes I know that I could create the sequence myself, but the engine does
such a good job. :-)
Thanks,
Kevin
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: kevinb@nurseamerica.net
Subject: Re: is it easy to change the create sequence algorithm?
In-Reply-To: <3D0FCD63.8030505@nurseamerica.net>
* 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