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

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,<gnanam(at)zoniac(dot)com>
Subject: Re: PSQLException: ERROR: could not open relation with OID xxxx
Date: 2011-03-14 13:58:32
Message-ID: 4D7DD8B8020000250003B816@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Gnanakumar" <gnanam(at)zoniac(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-03-14 15:18:19 Re: PSQLException: ERROR: could not open relation with OID xxxx
Previous Message Glyn Astill 2011-03-14 10:51:38 Re: Dropping all constraints in database