Re: Bug with FOR ... LOOP and composite types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Oleg Serov" <serovov(at)gmail(dot)com>
Cc: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug with FOR ... LOOP and composite types
Date: 2008-09-01 22:32:44
Message-ID: 28973.1220308364@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Oleg Serov" <serovov(at)gmail(dot)com> writes:
> But if there are some records in t_table and we romove WHERE 1=0, we will
> have
> ERROR: wrong record type supplied in RETURN NEXT CONTEXT: PL/pgSQL function
> "t_func" line 9 at RETURN NEXT

I couldn't reproduce that here, at least not with versions newer than
8.0. Maybe you were testing a case that also involved dropped columns?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Russell Smith 2008-09-02 04:21:07 Re: Problem with planer
Previous Message Andrea Villardino 2008-09-01 20:55:12 BUG #4392: initdb doen't work with options -U username and -W