From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Alexander Farber <alexander(dot)farber(at)gmail(dot)com> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous |
Date: | 2016-08-10 18:31:15 |
Message-ID: | 35bc7cbd-5191-dd48-db4b-33cb60923461@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 08/10/2016 11:26 AM, Alexander Farber wrote:
> Both variants have worked for me, thanks
>
> I am using 9.5.3 on CentOS 7 (my "production server" and Win 7, Mac (my
> "dev machines") :)
>
> Where does RETURN NEXT EXPRESSION work, on 9.6?
Given what you are doing, RETURN TABLE it will not work there for the
same reason it does not work in 9.5:
"If you declared the function with output parameters, write just RETURN
NEXT with no expression. On each execution, the current values of the
output parameter variable(s) will be saved for eventual return as a row
of the result. Note that you must declare the function as returning
SETOF record when there are multiple output parameters, or SETOF
sometype when there is just one output parameter of type sometype, in
order to create a set-returning function with output parameters."
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Farber | 2016-08-10 20:14:44 | Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous |
Previous Message | Alexander Farber | 2016-08-10 18:26:58 | Re: RETURNS TABLE function: ERROR: column reference "word" is ambiguous |