Re: problem with view/function after upgrade to 7.2 - Mailing list pgsql-admin

From Tom Lane
Subject Re: problem with view/function after upgrade to 7.2
Date
Msg-id 21427.1013526533@sss.pgh.pa.us
Whole thread Raw
In response to problem with view/function after upgrade to 7.2  (juerg.rietmann@pup.ch)
List pgsql-admin
juerg.rietmann@pup.ch writes:
> Except the following function/view is not working. I get an error, saying :
> Missing LOOP at end of SQL expression

> FOR rec IN SELECT z_u_umfang FROM zylinder_umfang WHERE z_u_typ = $1;
>      list := list || text(rec.z_u_umfang) || '','';
> END LOOP;

Should be
    FOR record | row IN select_query LOOP
        statements
    END LOOP;
(copied and pasted from the plpgsql documentation...)

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: stopping "wal"
Next
From: Manuel Trujillo
Date:
Subject: Re: stopping "wal"