Re: Sequence name with SERIAL type

From: Richard Huxton <dev(at)archonet(dot)com>
To: Marek Lewczuk <newsy(at)lewczuk(dot)com>, Lista dyskusyjna pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sequence name with SERIAL type
Date: 2003-12-17 09:36:15
Message-ID: 200312170936.16016.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 17 December 2003 07:59, Marek Lewczuk wrote:
> I'm curious if the default scheme for sequence name (which is created
> with SERIAL data type) can be changed -- currently all sequences are
> named like this: <table_name>_<field_name>_seq -- can it be changed for
> e.g. <table_name>__<field_name>__seq ???

Your two options seem to be:
1. Build your own sequence and don't use SERIAL
2. Change the source (should be a simple change).

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-12-17 09:37:07 Re: md5 function
Previous Message Michael Fuhr 2003-12-17 09:32:22 Re: md5 function