From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Brent Verner <brent(at)rcfile(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: system catalog relation of a table and a serial |
Date: | 2001-12-16 07:12:56 |
Message-ID: | 3.0.5.32.20011216181256.031cfe40@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
At 01:20 16/12/01 -0500, Brent Verner wrote:
>
> Expect a better patch sometiime tomorrow.
>
The hard part in this might be getting pg_restore to know that the sequence
is part of the table definition; perhaps it is adequate to use the 'deps'
field.
I think it is currently unused for SEQUENCE (and SEQUENCE SET) entries, so
we could assume that if it is set, the sequence is logically part of a
table. You could set the deps to the table OID, then the restore operation
(_tocEntryRequired) could scan the TOC for a matching table, and see if the
matching table is being restored (ie. _tocEntryRequired would, in the case
of 'SEQUENCE' and 'SEQUENCE SET' entries, scan the entire TOC for the
matching table then call itself recursively on the table entry.
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew McMillan | 2001-12-16 07:25:00 | Re: [HACKERS] system catalog relation of a table and a |
Previous Message | Serguei Mokhov | 2001-12-16 07:10:21 | Re: Hi all and greatings |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew McMillan | 2001-12-16 07:25:00 | Re: [HACKERS] system catalog relation of a table and a |
Previous Message | Brent Verner | 2001-12-16 06:20:18 | Re: system catalog relation of a table and a serial sequence |