But there not any problem with returning values with code like this DECLARE retval RECORD; retval.c2 := .... RETRUN NEXT retval; if c2 is a field on some table? 2008/6/30 Karsten Hilbert <Karsten.Hilbert@xxxxxxx>: > On Mon, Jun 30, 2008 at 12:44:31PM +0200, A B wrote: > >> By changing c2,c3,etc. to something else xc2,xc3, etc. it worked! >> So was the problem that I refered to the same names in the SELECT statement? > Yes. > > Karsten > -- > GPG key ID E4071346 @ wwwkeys.pgp.net > E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 > > -- > Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general >