R: Error code associated to "could not open relation with OID ..."

From: "Galantucci Giovanni" <Giovanni(dot)Galantucci(at)italtel(dot)it>
To: "Richard Huxton" <dev(at)archonet(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: R: Error code associated to "could not open relation with OID ..."
Date: 2007-03-09 15:36:08
Message-ID: AF4EB29748E178458A0067661112724B0FCEDE@BESONE.corp.dom
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I don't use temporary tables in my application.
>From a previous post I've understood that this error could happen if I'm trying to access a table whose corresponding row in the pg_class table is being modified. So I wanted to catch the error code of such exception to retry a second insert into the table.

Giovanni Galantucci

-----Messaggio originale-----
Da: Richard Huxton [mailto:dev(at)archonet(dot)com]
Inviato: venerdì 9 marzo 2007 14.51
A: Galantucci Giovanni
Cc: pgsql-general(at)postgresql(dot)org
Oggetto: Re: [GENERAL] Error code associated to "could not open relation with OID ..."

Galantucci Giovanni wrote:
> Hi all,
>
> I'm using jdbc to connect to a remote database and this morning I've
> found an SQLException on my log file with this error description:
>
> "could not open relation with OID ...".
>
> Does anyone know which error code is associated to such exception?

It's usually down to a cached plan referring to a temporary table that's
being replaced. Could be a normal table being dropped/recreated though.

It could be a query-plan cached by your jdbc stuff or perhaps a plpgsql
function using TEMP tables?

--
Richard Huxton
Archonet Ltd

Internet Email Confidentiality Footer
-----------------------------------------------------------------------------------------------------
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.

This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.
-----------------------------------------------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2007-03-09 15:36:51 Re: Setting week starting day
Previous Message Erik Jones 2007-03-09 15:33:02 Tracking disk writes?