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

From Kevin Grittner
Subject Re: PSQLException: ERROR: could not open relation with OID xxxx
Date
Msg-id 4D7DD8B8020000250003B816@gw.wicourts.gov
Whole thread Raw
In response to Re: PSQLException: ERROR: could not open relation with OID xxxx  ("Gnanakumar" <gnanam@zoniac.com>)
List pgsql-admin
"Gnanakumar" <gnanam@zoniac.com> wrote:

> Instead of touching/refactoring all the 35 functions just to
> rename the table name, we decided to create the temporary table
> name same as that of existing permanent table for running this
> complex report alone

If it were me I would be running some global search and replace on
the scripts which create those functions.  At a bare minimum you
should be running these reports under a login without rights to drop
permanent production tables.  (We never let applications connect
with a login which can do DDL except on temporary tables.)

-Kevin

pgsql-admin by date:

Previous
From: Glyn Astill
Date:
Subject: Re: Dropping all constraints in database
Next
From: "Kevin Grittner"
Date:
Subject: Re: PSQLException: ERROR: could not open relation with OID xxxx