Re: Problem creating ROWTYPE variable in plpgsql.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem creating ROWTYPE variable in plpgsql.
Date: 2003-11-08 14:48:27
Message-ID: 6681.1068302907@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> writes:
> profile_row profile_master%ROWTYPE;
> in a plpgsql function
> gives the error below
> tradein_clients=# SELECT general.create_accounts();
> WARNING: plpgsql: ERROR during compile of create_accounts near line 8
> ERROR: cache lookup for type 0 of profile_master.........pg.dropped.2........ failed

> profile_master have had deletions of its column in past.

I believe this has been fixed for 7.4 --- at least, we have fixed some
related issues.

2003-09-25 19:02 tgl

* src/: backend/executor/execQual.c,
backend/executor/nodeFunctionscan.c, pl/plpgsql/src/gram.y,
pl/plpgsql/src/pl_comp.c, pl/plpgsql/src/pl_exec.c,
pl/plpgsql/src/pl_funcs.c, pl/plpgsql/src/plpgsql.h: Make the world
safe (more or less) for dropped columns in plpgsql rowtypes.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Manfred Koizar 2003-11-08 15:23:20 Re: phpPGAdmin Indexes, what does this do?
Previous Message Martijn van Oosterhout 2003-11-08 14:07:33 Re: BUG?