Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsZMe-0003NG-1S for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jun 2013 14:09:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsZMd-0006EM-C6 for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Jun 2013 14:09:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsVTN-0004VW-Iy for pgsql-bugs@postgresql.org; Fri, 28 Jun 2013 10:00:09 +0000 Received: from out4.rolmail.net ([2a02:2e8:0:2:0:25:e25:4]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsVTG-0005GU-JR for pgsql-bugs@postgresql.org; Fri, 28 Jun 2013 10:00:09 +0000 Received: from mf4.rolmail.net (mf4.rolmail.net [IPv6:2a02:2e8:0:2:0:25:1025:2]) by out4.rolmail.net (ROL Relay Out) with ESMTP id 055E950146C; Fri, 28 Jun 2013 11:59:59 +0200 (CEST) X-Virus-Scanned: ROL Spam Gateway 4 Received: from relay-out2.rolmail.net ([195.254.252.211]) by mf4.rolmail.net (mf4.rolmail.net [195.254.252.163]) (ROL Spam Gateway, port 10021) with ESMTP id QFsagpd0HDf1; Fri, 28 Jun 2013 11:59:58 +0200 (CEST) Received: from mail.r3-gis.com (metis.r3-gis.com [84.18.131.232]) by relay-out2.rolmail.net (ROL Relay In) with ESMTP id 25B33960CF5; Fri, 28 Jun 2013 11:59:57 +0200 (CEST) Received: from [192.168.0.187] (unknown [192.168.0.187]) by mail.r3-gis.com (Postfix) with ESMTP id 62BBC1678219; Fri, 28 Jun 2013 11:59:56 +0200 (CEST) Message-ID: <51CD5E97.2040005@r3-gis.com> Date: Fri, 28 Jun 2013 11:59:51 +0200 From: Daniel Degasperi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8260: problem with sequence and tablename References: <25002.1372353006@sss.pgh.pa.us> In-Reply-To: <25002.1372353006@sss.pgh.pa.us> X-TagToolbar-Keys: D20130628115951567 Content-Type: multipart/alternative; boundary="------------000600020808000902010801" X-Pg-Spam-Score: 1.8 (+) 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 This is a multi-part message in MIME format. --------------000600020808000902010801 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Am 27.06.2013 19:10, schrieb Tom Lane: > daniel.degasperi@r3-gis.com writes: >> CREATE TABLE t23456789012345678901234567890123456789012345678901 >> ( >> t1234_id serial, >> PRIMARY KEY (t1234_id) >> ) >> WITH ( >> OIDS=3DFALSE >> ); >> 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). I don't know if a fail is the best solution, maybe a NOTICE, that the=20 sequence name is not constructed as might be naively expected, would be=20 appropriate. thanks and regards, Daniel > > regards, tom lane --=20 *Daniel Degasperi* Project manager *R3 GIS* Srl - GmbH I-39012 Merano/Meran (BZ) - Via Johann Kravogl-Str. 2 I-20133 Milano (MI) - Via Vallisneri 2 web: www.r3-gis.com Email: daniel.degasperi@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 *ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei=20 documenti eventualmente allegati sono confidenziali. La loro diffusione,=20 distribuzione e/o riproduzione da parte di terzi, senza autorizzazione=20 del mittente =E8 vietata e pu=F2 violare il D. Lgs. 196/2003. In caso di=20 ricezione per errore, Vogliate immediatamente informare il mittente del=20 messaggio e distruggere la e-mail. *ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten=20 beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung=20 und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders=20 verboten und verst=F6=DFt gegen das Legislativdekret 196/2003. Sollten Si= e=20 diese Mitteilung irrt=FCmlicherweise erhalten haben, bitten wir Sie uns=20 umgehend zu informieren und anschlie=DFend die Mitteilung zu vernichten. *WARNING!* This e-mail may contain confidential and/or privileged=20 information. If you are not the intended recipient (or have received=20 this e-mail in error) please notify the sender immediately and destroy=20 this e-mail. Any unauthorised copying, disclousure or distribution of=20 the material in this e-mail is strictly forbidden and could be against=20 the law (D. Lgs. 196/2003) --------------000600020808000902010801 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable
Am 27.06.2013 19:10, schrieb Tom Lane:=
daniel.degasperi@r3-gis.com writes:
CREATE TABLE t234567890123456789012345678901234567=
89012345678901
(
  t1234_id serial,
  PRIMARY KEY (t1234_id)
)
WITH (
  OIDS=3DFALSE
);

      
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).
I don't know if a fail is the best solution, maybe a NOTICE, that the sequence name is not constructed as might be naively expected, would be appropriate.

thanks and regards,
Daniel


			regards, tom lane


--
Daniel Degasperi
Project manager

R3 GIS Srl - GmbH
I-39012 Merano/Meran (BZ) - Via Johann Kravogl-Str. 2 I-20133 Milano (MI) - Via Vallisneri 2
web: www.r3-gis.com
Email: daniel.degasperi@r3-gis.com
Tel. : +39 0473 494949
Fax : +39 0473 069902

ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente =E8 vietata e pu=F2 violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.

ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst=F6=DFt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt=FCmlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie=DFend die Mitteilung zu vernichten.

WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)


--------------000600020808000902010801--