[HACKERS] Another problem with result type selection in inline_function

2007-05-01 Thread Tom Lane
I just realized that there's a problem with the patch I applied here http://archives.postgresql.org/pgsql-committers/2007-03/msg00057.php to ensure that the result type of an inline'd SQL function is correctly marked in the resulting expression tree. To wit, it doesn't work for functions

Re: [HACKERS] Another problem with result type selection in inline_function

2007-05-01 Thread Tom Lane
I wrote: I think the correct thing is to do nothing, and assume the expanded expression must have the right type already, if the function is declared to return a pseudotype. The only pseudotypes allowed as SQL-function results are RECORD, VOID, and polymorphic, and this seems OK and maybe