Re: [INTERFACES] Bug in psql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: leif(at)danmos(dot)dk
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Bug in psql?
Date: 1999-05-11 14:01:08
Message-ID: 13270.926431268@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

leif(at)danmos(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-05-11 14:05:33 SERIAL + PRIMARY KEY = redundant indexes
Previous Message Tom Lane 1999-05-11 13:54:04 Re: [HACKERS] 6.5 TODO list

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1999-05-11 14:04:44 Re: [INTERFACES] ODBC
Previous Message Thomas Lockhart 1999-05-11 14:01:03 Re: [INTERFACES] Bug in psql?