| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Thom Brown <thombrown(at)gmail(dot)com> |
| Cc: | Mark Morgan Lloyd <markMLl(dot)pgsql-general(at)telemetry(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: CREATE TABLE LIKE and SERIAL |
| Date: | 2009-10-30 22:48:45 |
| Message-ID: | 24932.1256942925@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers pgsql-general |
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...)
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Lelarge | 2009-10-30 23:12:08 | Re: [GENERAL] CREATE TABLE LIKE and SERIAL |
| Previous Message | Mark Morgan Lloyd | 2009-10-30 22:23:46 | Re: CREATE TABLE LIKE and SERIAL |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Lelarge | 2009-10-30 23:06:39 | Re: pg_start_backup question |
| Previous Message | db de | 2009-10-30 22:41:54 | pg_start_backup question |