Re: pg_dump + function/table hierarchy

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Kovacs Zoltan Sandor <tip(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump + function/table hierarchy
Date: 2000-07-30 00:08:03
Message-ID: 3.0.5.32.20000730100803.02537790@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 21:18 29/07/00 +0200, Kovacs Zoltan Sandor wrote:
>Unfortunately I managed to create a problematic database. The problem
>occurs if I execute pg_dump and then try to reload the database. Details:
>
>My only definitions in this database are:
>
>> create function x(int4) returns bool as 'select $1 > 10;' language 'sql';
>> create table y(z int4 check(x(z)));
>

This is fixed in the next version as well as an experimental version for
7.0.2 found at:

ftp://ftp.rhyme.com.au/pub/postgresql/pg_dump/blobs/

The solution (as suggested by Tom Lane) was to sort the items by OID before
dumping them. This is not a perfect solution, but it will cover 95% of cases.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 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 |/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2000-07-30 01:35:47 another ? lock freezing
Previous Message Jan Wieck 2000-07-29 23:23:02 Re: Hmm, should ACL[] be toastable?