Re: Problem do backup/restore for empty database

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: Problem do backup/restore for empty database
Дата
Msg-id 3.0.5.32.20001021224226.03200e20@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Re: Problem do backup/restore for empty database  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
At 22:33 21/10/00 +1000, Philip Warner wrote:
>
>OK. I just built with absolute latest CVS again, and pg_dump has started
>dumping the entire schema, including system tables, functions etc. Looks
>like the way it decides something is user-defined is now broken.
>
>Same is true for non-empty databases.
>

Looks like the problem is the way pg_dump determines the last builtin OID.
Currently, the code executes:
   SELECT oid from pg_database where datname = 'template1';

which in CVS version on my machine, produces '1'. This is clearly a problem.

Does anyone have a suggestion on the best way to get the last builtin OID?
Or should the OID of template1 be larger???





----------------------------------------------------------------
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 по дате отправления:

Предыдущее
От: Denis Perchine
Дата:
Сообщение: Re: Problem do backup/restore for empty database
Следующее
От: "Horst Herb"
Дата:
Сообщение: Re: [ANNC][RFC] crypto hashes for PostgreSQL 7.0, 7.1