Re: Dump - Mailing list pgsql-general

From Tom Lane
Subject Re: Dump
Date
Msg-id 3872.960391820@sss.pgh.pa.us
Whole thread Raw
In response to Dump  (Trurl McByte <trurl@realtor3d.odessa.ua>)
Responses Re: Dump  (Trurl McByte <trurl@realtor3d.odessa.ua>)
List pgsql-general
Trurl McByte <trurl@realtor3d.odessa.ua> writes:
> Error in dumpig defaults on serial type!
> If table name have non-statndart name (example: "Order")
> sequenser auto created with name "Order_id_seq".
> In the dump filed definition is:
> ...
> "id" int4 DEFAULT nextval ( 'Order_id_seq' ) NOT NULL,
> ...
> , but need:
> ...
> "id" int4 DEFAULT nextval ( '"Order_id_seq"' ) NOT NULL,
> ...

Hmm.  This is not pg_dump's fault: the default expression is actually
being stored that way in the database.  Someone seems to have thought
it was a good idea to strip the double quotes at parse time instead
of run time :-(.

Will fix for 7.1 ... in the meantime, don't name your sequences that way
...

            regards, tom lane

pgsql-general by date:

Previous
From: Ed Loehr
Date:
Subject: Re: [SQL] oracle rownum equivalent?
Next
From: Tom Lane
Date:
Subject: Re: Dump