Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFhz-0003D4-NF for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 17:10:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsFhz-0001qA-5f for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 17:10:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFhy-0001od-0G for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 17:10:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFhv-0003Kw-7R for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 17:10:09 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5RHA64G025003; Thu, 27 Jun 2013 13:10:06 -0400 (EDT) From: Tom Lane To: daniel.degasperi@r3-gis.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8260: problem with sequence and tablename In-reply-to: References: Comments: In-reply-to daniel.degasperi@r3-gis.com message dated "Thu, 27 Jun 2013 15:26:56 -0000" Date: Thu, 27 Jun 2013 13:10:06 -0400 Message-ID: <25002.1372353006@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs