From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Potential bug in pg_dump ... |
Date: | 2001-12-17 22:01:25 |
Message-ID: | 3.0.5.32.20011218090125.033c6160@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
At 08:25 18/12/01 +1100, Philip Warner wrote:
>At 14:10 17/12/01 -0500, Marc G. Fournier wrote:
>>
>>Got a report the other day of a "problem" with pg_dump where, if in the
>>middle of a dump, someone happens to drop a table, it errors out with:
>>
>
>pg_dump runs in a single TX, which should mean that metadata changes in
>another process won't affect it. Have I misunderstood the way PG handles
>metadata changes?
>
Maybe I'm expectibg too much from the locking, since pg_dump is only
reading pg_class to get a list of tables. Perhaps it should do one of the
following:
a) Issue a LOCK TABLE for each table (seems like a bad idea)
b) Reconfirm the existance of the table before trying to dump it.
c) Ignore the problem
I favour either (b) or (c). Anyone have comments or other suggestions?
----------------------------------------------------------------
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 | Don Baccus | 2001-12-17 22:02:08 | Re: PG 7.2b4 bug? |
Previous Message | Tom Lane | 2001-12-17 21:59:47 | Re: PG 7.2b4 bug? |