Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA41235 for ; Tue, 11 May 1999 11:42:49 -0400 (EDT) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.6/NETTuno 3.1) with ESMTP id RAA25622; Tue, 11 May 1999 17:42:28 +0200 (MDT) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 10hG6K-0002k8-00; Tue, 11 May 1999 17:13:52 +0000 Message-ID: <3738490D.AE934DD9@sferacarta.com> Date: Tue, 11 May 1999 17:13:17 +0200 From: =?iso-8859-1?Q?Jos=E9?= Soares X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: leif@danmos.dk CC: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] Bug in psql? References: <199905111321.PAA18600@crysberg.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit leif@danmos.dk ha scritto: > Hello Bruce, > > On: Tue, 11 May 1999 08:50:07 -0400 (EDT) > Bruce Tong wrote: > > > > 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. > > > > > > Have you tried putting the following into a file and using... > > > > # psql -f foo.sql > > I actually did from a file, but with the \i command. > > > > > ... to run it? I _think_ this sometimes gives different messages than > > entering it directly on the psql command line, although I'm not sure why. > > I could be way off here, but its worth a try. > > > > > create table globalafvigelse > > > ( > > > globalafvigelse serial , > > > startdato date, > > > slutdato date, > > > dagskema varchar(50), > > > primary key (globalafvigelse) > > > ); > > > > What is type "serial"? It probably not incorrect, but I've not heard of it > > before. > > > The data type serial is a standard data type, which is also included in > SERIAL is a very usefull data type but it is not standard. :) > PostgreSQL ;-). M$Access calls it 'Autonumber' and is simply an integer (I > think it is most common to be an int4) that is automatically incremented for > each insert. I think that it is implemented in PostgreSQL using a sequenser. > ______________________________________________________________ PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jose'