Re: [SQL] Column name's length

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "Pham, Thinh" <tpham(at)mail(dot)priority(dot)net>
Cc: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Column name's length
Date: 1999-06-01 02:41:14
Message-ID: 199906010241.WAA06667@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi,
>
> Is there anyway you can increase the length of a column's name? The length
> for one of my column is 21 characters and the server choke on that when i'm
> trying to create the table. I'm using version 6.4.2. Below is the actual
> error message i got:
>
> postgres=> create table timeclockdepartment (
> postgres-> timeclockdepartmentid serial ,
> postgres-> name varchar (50) );
> pqReadData() -- backend closed the channel unexpectedly.
> This probably means the backend terminated abnormally before or
> while pr
> ocessing the request.
> We have lost the connection to the backend, so further processing is
> impossible.
> Terminating.

The 6.5beta error message of the same statement is:

test=> create table timeclockdepartment (
test-> timeclockdepartmentid serial ,name varchar (50) );
ERROR: CREATE TABLE/SERIAL implicit sequence name must be less than 32
characters
Sum of lengths of 'timeclockdepartment' and
'timeclockdepartmentid' must be less than 27

Serial creates it's own table, that is the sum of the table name and
column name. We have not figured out a workaround for this.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-06-01 06:36:52 Re: [SQL] Column name's length
Previous Message maack 1999-06-01 02:18:49 how to get table's name from variable ?