Re: Relation on longer exists error

From: Fran Fabrizio <ffabrizio(at)mmrd(dot)com>
To: Francisco Reyes <lists(at)natserv(dot)com>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Relation on longer exists error
Date: 2002-05-06 19:50:34
Message-ID: 3CD6DE8A.7060202@mmrd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes wrote:

>I have a script that I regularly run. Today when I ran it I got:
>ERROR: Relation "ystats" with OID 715717097 no longer exists
>
>I did drop/recreate that table today, but what would I be getting this
>error?
>
You answered your own question. You dropped the table and recreated it,
in the process it gets a new OID. Any functions/views/etc... declared
using that table are now looking for it at it's old OID "address". Drop
and recreate anything that was depending on that table.

-Fran

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2002-05-06 20:09:56 Problems with list?
Previous Message Scott Marlowe 2002-05-06 19:34:56 Re: Subject: bool / vacuum full bug followup part 2