Re: [PATCHES] system catalog relation of a table and a serial
От | Philip Warner |
---|---|
Тема | Re: [PATCHES] system catalog relation of a table and a serial |
Дата | |
Msg-id | 3.0.5.32.20011216181256.031cfe40@mail.rhyme.com.au обсуждение исходный текст |
Ответ на | Re: system catalog relation of a table and a serial sequence (Brent Verner <brent@rcfile.org>) |
Список | pgsql-hackers |
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 |/
В списке pgsql-hackers по дате отправления: