Re: pg_dump versus SERIAL, round N

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump versus SERIAL, round N
Date: 2006-08-20 19:08:38
Message-ID: 29538.1156100918@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Naz Gassiep 2006-08-20 19:59:45 PostgreSQL on 64 bit Linux
Previous Message Tom Lane 2006-08-20 18:46:50 Re: pg_dump versus SERIAL, round N