Re: BUG #8260: problem with sequence and tablename

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: daniel(dot)degasperi(at)r3-gis(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8260: problem with sequence and tablename
Date: 2013-06-27 17:10:06
Message-ID: 25002.1372353006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

daniel(dot)degasperi(at)r3-gis(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2013-06-27 17:19:13 Re: BUG #8257: Multi-Core Restore fails when containing index comments
Previous Message Christopher Browne 2013-06-27 16:56:41 Re: BUG #8260: problem with sequence and tablename