Re: Problem do backup/restore for empty database

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Denis Perchine <dyp(at)perchine(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Problem do backup/restore for empty database
Date: 2000-10-21 12:42:26
Message-ID: 3.0.5.32.20001021224226.03200e20@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 |/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pawel Wegrzyn 2000-10-21 13:04:12 latest version?
Previous Message Philip Warner 2000-10-21 12:35:05 Re: Patch to support transactions with BLOBs for current CVS