Reading an OUT parameter out of a function call - Mailing list pgsql-general

From Stefan Keller
Subject Reading an OUT parameter out of a function call
Date
Msg-id CAFcOn2__Wx9z=KqTCTjpqtLx=FeWE5rxbqnC+ZvZF8-O=UwOOw@mail.gmail.com
Whole thread Raw
Responses Re: Reading an OUT parameter out of a function call  (Merlin Moncure <mmoncure@gmail.com>)
Re: Reading an OUT parameter out of a function call  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Reading an OUT parameter out of a function call  (Adrian Klaver <adrian.klaver@gmail.com>)
List pgsql-general
Hi,

I have a simple void function:

CREATE OR REPLACE FUNCTION myfn(myparam OUT int)
AS $$
BEGIN
  pnr := 1;
END;
$$ LANGUAGE plpgsql;

How do I access myparam?
I thought this should work with 9.1/9.2: SELECT (myfn()).myparam;
Or inside another function?

Yours, Stefan

pgsql-general by date:

Previous
From: Tom Duffey
Date:
Subject: Re: Floating point error
Next
From: Merlin Moncure
Date:
Subject: Re: Reading an OUT parameter out of a function call