Re: BUG #8260: problem with sequence and tablename - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8260: problem with sequence and tablename
Date
Msg-id 25002.1372353006@sss.pgh.pa.us
Whole thread Raw
In response to BUG #8260: problem with sequence and tablename  (daniel.degasperi@r3-gis.com)
Responses Re: BUG #8260: problem with sequence and tablename
List pgsql-bugs
daniel.degasperi@r3-gis.com writes:
> CREATE TABLE t23456789012345678901234567890123456789012345678901
> (
>   t1234_id serial,
>   PRIMARY KEY (t1234_id)
> )
> WITH (
>   OIDS=FALSE
> );

> This generated the sequence:

> CREATE SEQUENCE
> t2345678901234567890123456789012345678901234567890_t1234_id_seq

That's operating as designed.

> The table-part in the sequence name was truncated.

Would you rather it failed entirely?  You're up against the limit on
name length (63 bytes in a standard Postgres build).

            regards, tom lane

pgsql-bugs by date:

Previous
From: Christopher Browne
Date:
Subject: Re: BUG #8260: problem with sequence and tablename
Next
From: Tom Lane
Date:
Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments