pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Pham, Thinh <tpham@mail.priority.net>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Column name's length
Date: Mon, 31 May 1999 22:41:14 -0400 (EDT)
Message-ID: <199906010241.WAA06667@candle.pha.pa.us> (raw)
In-Reply-To: <551413BBBB03D111BF880060B01AACCE0B38ED@home.priority.net>

[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@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (17+ messages)  latest in thread

Message-ID: <199906010241.WAA06667@candle.pha.pa.us>
Permalink:  ../199906010241.WAA06667@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199906010241.WAA06667@candle.pha.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: maillist@candle.pha.pa.us, tpham@mail.priority.net
  Subject: Re: [SQL] Column name's length
  In-Reply-To: <199906010241.WAA06667@candle.pha.pa.us>
  References: <551413BBBB03D111BF880060B01AACCE0B38ED@home.priority.net> <199906010241.WAA06667@candle.pha.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