Re: cache lookup failed: hack pg_* tables?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>
Cc: pgsql-hackers(at)postgresql(dot)org, kovzol(at)math(dot)u-szeged(dot)hu
Subject: Re: cache lookup failed: hack pg_* tables?
Date: 2002-05-28 15:01:22
Message-ID: 3157.1022598082@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu> writes:
> I'm trying to implement some code to recreate tables as we discussed
> formerly. But it's not so easy... :-) My first blind alley is that
> dropping a function which is occured in a CHECK constraint or
> a DEFAULT constraint, I get "fmgr_info: function 12345678: cache
> lookup failed" or "Function OID 12345678 does not exist" (this one
> only in 7.1.3; I tested this also in 7.2.1).

Use CREATE OR REPLACE FUNCTION to modify an existing function ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2002-05-28 15:09:02 Re: strange update problem with 7.2.1
Previous Message Andrew Sullivan 2002-05-28 14:53:46 Re: [HACKERS] Re : Solaris Performance - 64 bit puzzle