| From: | Philipp Kraus <philipp(dot)kraus(at)tu-clausthal(dot)de> |
|---|---|
| To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | void function and view select |
| Date: | 2018-05-07 13:52:29 |
| Message-ID: | 0AF95F26-7F53-4AF0-88AC-3ACFC6929E3B@tu-clausthal.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2018-05-07 13:59:10 | Re: Is it possible to get username information while writingtrigger? |
| Previous Message | Adrian Klaver | 2018-05-07 13:49:38 | Re: psycopg2.DataError: invalid input syntax for integer: "" |