Re: pg_dump: SQL command failed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Kohll - Mailing Lists <oliver(dot)lists(at)gtwm(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump: SQL command failed
Date: 2010-02-12 14:53:51
Message-ID: 25515.1265986431@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oliver Kohll - Mailing Lists <oliver(dot)lists(at)gtwm(dot)co(dot)uk> writes:
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR: could not open relation with OID 572838
> pg_dump: The command was: SELECT pg_catalog.pg_get_viewdef('572838'::pg_catalog.oid) AS viewdef

Looks like a race condition ---- somebody dropped a view between the
pg_dump saw it and the time pg_dump tried to grab the view definition.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Allan Kamau 2010-02-12 15:10:19 Re: Weeding out unused user created database objects, could I use pg_catalog?
Previous Message Igor Neyman 2010-02-12 13:45:53 Re: help with SQL join