Re: Bug found: fmgr_info: function <number>: cache lookup failed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bradley Kieser <brad(at)kieser(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug found: fmgr_info: function <number>: cache lookup failed
Date: 2002-06-11 16:00:56
Message-ID: 21655.1023811256@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bradley Kieser <brad(at)kieser(dot)net> writes:
> If you double-alias a column in a query (yeah, stupid, I know, but I did
> it by mistake and others will too!), then the dreaded "fmgr_info:
> function <number>: cache lookup failed" message is kicked out. For example:

> select * from company c, references r where r.company_id=c.company.id;

Can you provide a *complete* example? Also, what version are you using?
I tried this in 7.2.1:

test72=# create table company (id int);
CREATE
test72=# create table refs(company_id int);
CREATE
test72=# select * from company c, refs r where r.company_id=c.company.id;
ERROR: No such attribute or function 'company'

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2002-06-11 16:03:23 Majordomo aliases
Previous Message Thomas Lockhart 2002-06-11 15:58:00 New string functions; initdb required