Re: Sequence name length

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rudi Starcevic <rudi(at)oasis(dot)net(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Sequence name length
Date: 2002-07-17 03:40:56
Message-ID: 10750.1026877256@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Rudi Starcevic <rudi(at)oasis(dot)net(dot)au> writes:
> Just a quick one on the length of the name of a sequence.
> ...
> However the sequence created is named :
> eselect_maincategory_maincat_id ( the '_seq' is lopped off )

What version are you running? Anything recent will keep the '_seq'
and lop elsewhere.

> This looke like a max of 31 characters.

Yeah, the default NAMEDATALEN is 32, allowing for 31 chars plus a
terminating null. You can build a private version with larger
NAMEDATALEN, and there are recurring discussions about increasing
the default length.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-07-17 03:45:03 Re: Sequence name length
Previous Message Christopher Kings-Lynne 2002-07-17 02:49:47 Re: Sequence name length