Re: why can't plpgsql return a row-expression?
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>, pgsql-hackers@postgresql.org
Date: 2012-10-08T16:21:48Z
Lists: pgsql-hackers
2012/10/8 Tom Lane <tgl@sss.pgh.pa.us>: > Robert Haas <robertmhaas@gmail.com> writes: >> ERROR: RETURN must specify a record or row variable in function returning row > >> Off the top of my head, I can't think of any reason for this >> restriction, nor can I find any code comments or anything in the >> commit log which explains the reason for it. Does anyone know why we >> don't allow this? > > Laziness, probably. Feel free to have at it. I wrote patch some years ago. It was rejected from performance reasons - because every row had to be casted to resulted type. Pavel > > regards, tom lane > > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers