Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BDBFF1337B9C for ; Tue, 15 Mar 2011 04:12:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 22125-09 for ; Tue, 15 Mar 2011 07:11:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rs73.luxsci.com (rs73.luxsci.com [64.49.254.135]) by mail.postgresql.org (Postfix) with ESMTP id 6A7CF133616B for ; Tue, 15 Mar 2011 04:11:56 -0300 (ADT) Received: from GNANAM ([180.151.61.10]) (authenticated bits=0) by rs73.luxsci.com (8.13.8/8.13.8) with ESMTP id p2F7BpRH028873; Tue, 15 Mar 2011 02:11:53 -0500 Reply-To: From: "Gnanakumar" To: "'Kevin Grittner'" , References: <006d01cbdfd5$f48becb0$dda3c610$@com> <4D7DEB6B020000250003B821@gw.wicourts.gov> In-Reply-To: <4D7DEB6B020000250003B821@gw.wicourts.gov> Subject: Re: PSQLException: ERROR: could not open relation with OID xxxx Date: Tue, 15 Mar 2011 12:38:07 +0530 Organization: Zoniac Software Private Limited Message-ID: <003601cbe2df$bf0c7480$3d255d80$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcviWxkHTR6XI1C7QXK7q2MqxChUoAAgvQqQ Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/168 X-Sequence-Number: 37040 > 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?