Re: Returning RECORD from PGSQL without custom type? - Mailing list pgsql-general

From Tom Lane
Subject Re: Returning RECORD from PGSQL without custom type?
Date
Msg-id 23130.1210615135@sss.pgh.pa.us
Whole thread Raw
In response to Re: Returning RECORD from PGSQL without custom type?  ("D. Dante Lorenso" <dante@lorenso.com>)
Responses Re: Returning RECORD from PGSQL without custom type?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Re: Returning RECORD from PGSQL without custom type?  ("D. Dante Lorenso" <dante@lorenso.com>)
List pgsql-general
"D. Dante Lorenso" <dante@lorenso.com> writes:
> I'd like to be able to do this:
>
> CREATE OR REPLACE FUNCTION "my_custom_func" (in_value bigint)
> RETURNS SETOF (col1name BIGINT, col2name TEXT, ...) AS

You realize of course that you can do this *today* if you use OUT
parameters?

CREATE OR REPLACE FUNCTION "my_custom_func" (in_value bigint,
  OUT col1name BIGINT, OUT col2name TEXT, ...)
  RETURNS SETOF RECORD AS

The TABLE syntax is a bit more standards-compliant maybe, but it's not
offering any actual new functionality.

            regards, tom lane

pgsql-general by date:

Previous
From: Justin
Date:
Subject: rounding problems
Next
From: Lincoln Yeoh
Date:
Subject: Re: rounding problems