void function and view select - Mailing list pgsql-general

From Philipp Kraus
Subject void function and view select
Date
Msg-id 0AF95F26-7F53-4AF0-88AC-3ACFC6929E3B@tu-clausthal.de
Whole thread Raw
Responses Re: void function and view select  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
Hello,

I have got a complex query with a dynamic column result e.g.:

select builddata('_foo‘);
select * from _foo;

The first is a plsql function which creates a temporary table, but the function returns void.
The second call returns all the data from this table. But the columns of the temporary table are
not strict fixed, so I cannot return a table by the function. 
So my question is, how can I build with this two lines a view, so that I can run "select * from myFooView“ or
a function with a dynamic return set of columns e.g. „select myFoo()“?

Thanks

Phil

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: psycopg2.DataError: invalid input syntax for integer: ""
Next
From: Adrian Klaver
Date:
Subject: Re: Is it possible to get username information while writingtrigger?