Re: PSQLException: ERROR: could not open relation with OID xxxx - Mailing list pgsql-admin

From Gnanakumar
Subject Re: PSQLException: ERROR: could not open relation with OID xxxx
Date
Msg-id 003601cbe2df$bf0c7480$3d255d80$@com
Whole thread Raw
In response to Re: PSQLException: ERROR: could not open relation with OID xxxx  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: PSQLException: ERROR: could not open relation with OID xxxx
List 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?


pgsql-admin by date:

Previous
From: H S
Date:
Subject: Fw: Re: createdb does not work?!
Next
From: "Maria L. Wilson"
Date:
Subject: log timestamp since daylight saving time