Re: pg_dump versus SERIAL, round N - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_dump versus SERIAL, round N
Date
Msg-id 29538.1156100918@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dump versus SERIAL, round N  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> What method will people use to see if a sequence used as a default is
> one that was created by SERIAL, and will be dropped by drop table, or
> manually created?  How does that distinction show up in pg_dump?

BTW, it's easy to see if a column has an associated sequence:
pg_get_serial_sequence().  It's going from the sequence to the column
that requires manually looking into pg_depend.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump versus SERIAL, round N
Next
From: Naz Gassiep
Date:
Subject: PostgreSQL on 64 bit Linux