Search Postgresql Archives

Re: Function that creates a custom (temporary) table AND returns a pointer to it = impossible in pg?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for the link Andreas. It was helpfull, but still not quite what I 
need.

Regards,
Davor

""A. Kretschmer"" <andreas.kretschmer@xxxxxxxxxxxxxx> wrote in message 
news:20100212114635.GB25282@xxxxxxxxxxxxxxxxxx
> In response to Davor J. :
>> What I want is something similar to this:
>>
>>
>> Basically, what I want is a similar function f() that returns me a 
>> "pointer"
>> to the table which I can use in some query like this: SELECT * FROM
>> regclass(f()); Currently, this query only gives me one row 'tbl_temp'...,
>> but not what I want: "SELECT * FROM tbl_temp;" Can this be done in 
>> Postgres?
>
> Take a look at
> http://okbob.blogspot.com/2008/08/using-cursors-for-generating-cross.html
>
>
> -- 
> Andreas Kretschmer
> Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
> GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99
>
> -- 
> Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
> 



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux