Re: CREATE TABLE LIKE and SERIAL - Mailing list pgsql-general

From Tom Lane
Subject Re: CREATE TABLE LIKE and SERIAL
Date
Msg-id 24932.1256942925@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE TABLE LIKE and SERIAL  (Thom Brown <thombrown@gmail.com>)
List pgsql-general
Thom Brown <thombrown@gmail.com> writes:
> How is pgAdmin determining the serial type in this case?

Most likely it's looking for the pg_depend entry that shows the sequence
as being "owned by" the column.  However, that's an oversimplification
of reality.  I would imagine that pgAdmin will lie to you in exactly
the same cases that used to break pg_dump (notably, where someone has
manually adjusted either the default expression or the sequence...)

            regards, tom lane

pgsql-general by date:

Previous
From: db de
Date:
Subject: pg_start_backup question
Next
From: Guillaume Lelarge
Date:
Subject: Re: pg_start_backup question