Re: [GENERAL] CREATE TABLE LIKE and SERIAL

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] CREATE TABLE LIKE and SERIAL
Date: 2009-10-30 23:12:08
Message-ID: 200910310012.09092.guillaume@lelarge.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-general

Le vendredi 30 octobre 2009 à 23:48:45, Tom Lane a écrit :
> Thom Brown <thombrown(at)gmail(dot)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...)
>

I've just read this. I wasn't aware of this. Should we suppress this behavior
of pgAdmin?

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Quan Zongliang 2009-10-31 10:59:48 import 2009/10/31
Previous Message Tom Lane 2009-10-30 22:48:45 Re: CREATE TABLE LIKE and SERIAL

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-10-30 23:32:57 Re: Rewriting select statements
Previous Message Guillaume Lelarge 2009-10-30 23:06:39 Re: pg_start_backup question