Re: Sequence names have 64 character limit?

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Carlo Stonebanks <carlo(at)stonebanks(dot)ca>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sequence names have 64 character limit?
Date: 2011-03-31 21:13:11
Message-ID: 87y63vm1so.fsf@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlo Stonebanks <carlo(at)stonebanks(dot)ca> writes:

> Whenever I attempt to create a sequence whether this is done directly
> via CREATE SEQUENCE or indrirectly vial declaring a column as SERIAL,
> PG truncates it to 64 characters. Is this a documented limitation? I
> cant find a reference to it. Is it possible to change this
> limitation?

See the "name" data type.

As for enlarging it; I'll bet yes but you'll have to compile from source
to do this.

Someone on the hackers list can better explain :-)

> Our table names are and fully descriptive, and our code depends on a
> predictable sequence naming convention of the PG default
> <table>_<column>_seq.
>
> Yes, I know that its not a great idea to depend on consistent naming
> conventions!
>
> Carlo
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: gsievers19(at)comcast(dot)net
p: 305.321.1144

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-03-31 21:29:20 Re: Sequence names have 64 character limit?
Previous Message Gauthier, Dave 2011-03-31 20:22:56 Re: Access to NEW.column outside of a trigger function.