Re: multiple default values specified for column? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: multiple default values specified for column?
Date
Msg-id 20051007073755.X36732@megazone.bigpanda.com
Whole thread Raw
In response to multiple default values specified for column?  (smorrey@gmail.com)
List pgsql-general
On Fri, 7 Oct 2005 smorrey@gmail.com wrote:

> Hello pgsql is complaining and I can't seem to figure out what the
> error is talking about.
> Basically it's claiming that multiple default vaues are being
> specified, but nowhere in statement below is there one single place
> where I can see an error.
> Please help!

Bigserial implies a default and then you placed a default on the column in
addition.

>
> SQL error:
>
> ERROR:  multiple default values specified for column "txnid" of table
> "ec_transaction"
>
> In statement:
>
> CREATE TABLE ec_transaction (
>     txnid BIGSERIAL NOT NULL DEFAULT
> nextval('public.ec_transaction_txnid_seq') ,


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: multiple default values specified for column?
Next
From: Robert Treat
Date:
Subject: Re: PostgreSQL 8.1 vs. MySQL 5.0?