Re: Re : pg_dump, serial - Mailing list pgsql-general

From Tom Lane
Subject Re: Re : pg_dump, serial
Date
Msg-id 14970.1172859497@sss.pgh.pa.us
Whole thread Raw
In response to Re : pg_dump, serial  (Laurent ROCHE <laurent_roche@yahoo.com>)
List pgsql-general
Laurent ROCHE <laurent_roche@yahoo.com> writes:
> I have read the given links, and I understand the reasons.

> Still, I am a bit surprised to see no mention of this in the documentation of pg_dump. I would expect to see at least
aline stating that the colum declared with SERIAL will transformed to a SEQUENCE. 

There is no place in the pg_dump documentation where anything is
promised about the content of the scripts it emits, except that when
executed they are supposed to regenerate the content of your database.
We have always felt free to alter the exact commands that are issued to
accomplish that.  This case is not noticeably different from previous
pg_dump changes AFAICS.

In any case, the documentation of SERIAL itself makes the equivalence
clear enough:
http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-SERIAL

            regards, tom lane

pgsql-general by date:

Previous
From: Rob Schall
Date:
Subject: Re: Differences in identical queries
Next
From: Tom Lane
Date:
Subject: Re: psql client quits after 1st command