pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: leif@danmos.dk
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Bug in psql?
Date: Tue, 11 May 1999 10:01:08 -0400
Message-ID: <13270.926431268@sss.pgh.pa.us> (raw)
In-Reply-To: <199905102344.BAA16427@crysberg.dk>

leif@danmos.dk writes:
>  I tried to create the table below using psql, but it bombed out
> with a message about loosing the backend, though the backend was
> still running nicely. It seems to be a problem with the long
> field name of the serial (and primary key) column.

You didn't say which version you are using, but 6.5-current returns a
more helpful error message:

ERROR:  CREATE TABLE/SERIAL implicit sequence name must be less than 32 characters
        Sum of lengths of 'globalafvigelse' and 'globalafvigelse' must be less than 27

This is forced by the naming conventions for the underlying sequence and
index objects, which look like "TABLE_FIELD_seq" and so forth.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <13270.926431268@sss.pgh.pa.us>
Permalink:  ../13270.926431268@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13270.926431268@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, leif@danmos.dk
  Subject: Re: [INTERFACES] Bug in psql?
  In-Reply-To: <13270.926431268@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox