Re: PSQLException: ERROR: could not open relation with OID xxxx

From: "Gnanakumar" <gnanam(at)zoniac(dot)com>
To: "'Kevin Grittner'" <Kevin(dot)Grittner(at)wicourts(dot)gov>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: PSQLException: ERROR: could not open relation with OID xxxx
Date: 2011-03-15 07:08:07
Message-ID: 003601cbe2df$bf0c7480$3d255d80$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> Clearly it's trying to use an OID it calculated for one of these
> tables after the table has been dropped, and I suspect that the lock
> is released between gathering the data and sorting it. I don't have
> any 8.2 databases around to try this on, but perhaps you would avoid
> it with a slight rearrangement of your monitoring query:

Thanks for both making this clear and providing an rearranged/modified
version of my original query. I'll try out this option also.

> If that doesn't do it I might try adding zero to numbers and
> concatenating empty strings to try to prevent late use of the OID.
> (Essentially as a form of optimization barrier.)

I couldn't understand this approach clearly. Can you help explain me with
some example?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Maria L. Wilson 2011-03-15 12:50:31 log timestamp since daylight saving time
Previous Message H S 2011-03-15 06:01:39 Fw: Re: createdb does not work?!