Re: [HACKERS] BUG? serials and primary keys (was Re: [INTERFACES] Bug in psql?)

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
Cc: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] BUG? serials and primary keys (was Re: [INTERFACES] Bug in psql?)
Date: 1999-05-13 02:23:49
Message-ID: 199905130223.WAA27079@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> test=> create table "TestTable" ("Field" serial primary key, some text);
> NOTICE: CREATE TABLE will create implicit sequence TestTable_Field_seq
> for SERIAL column TestTable.Field
> NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index
> TestTable_pkey for table TestTable
> CREATE
> test=> insert into "TestTable" (some) values ('test text');
> ERROR: testtable_field_seq.nextval: sequence does not exist
> test=> \ds
>
> Database = test
> +------------------+----------------------------------+----------+
> | Owner | Relation | Type |
> +------------------+----------------------------------+----------+
> | reedstrm | TestTable_Field_seq | sequence |
> +------------------+----------------------------------+----------+
> test=>
>
> Anybody test this on 6.5?

We are working on a fix for the case thing right now.

--
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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-05-13 02:29:29 Re: [HACKERS] backend dies suddenly after a lot of error messages
Previous Message Don Baccus 1999-05-13 02:03:56 Re: [HACKERS] backend dies suddenly after a lot of error messages