Re: Returning a Cross Tab record set from a function
От | KÖPFERL Robert |
---|---|
Тема | Re: Returning a Cross Tab record set from a function |
Дата | |
Msg-id | ED4E30DD9C43D5118DFB00508BBBA76EB16742@neptun.sonorys.at обсуждение исходный текст |
Ответ на | Returning a Cross Tab record set from a function (Marc Wrubleski <mlwruble@math.ucalgary.ca>) |
Ответы |
Re: Returning a Cross Tab record set from a function
|
Список | pgsql-sql |
|-----Original Message----- |From: Marc Wrubleski [mailto:mlwruble@math.ucalgary.ca] |Sent: Mittwoch, 01. Juni 2005 16:15 |To: pgsql-sql@postgresql.org |Subject: [SQL] Returning a Cross Tab record set from a function | [...] | |It seems I can do this from any higher level language, but it drives me |crazy that I can't perform this operation as a function inside of |Postgres... Yes, semms very like this can't be done in just sql but needs a higher level lng. Actually Postgres provides such higher languages. Try including PL/Python PL/perl or PL/tk. Fom there you are able to query all the metadata of the wanted tables so that a adequate SQL-string can be generated. In case of sourcecode, you find theses languages in the contrib dir | |Thanks for any thoughts you might have... | |-- |Marc Wrubleski <mlwruble_at_math.ucalgary.ca> | | |---------------------------(end of |broadcast)--------------------------- |TIP 9: the planner will ignore your desire to choose an index |scan if your | joining column's datatypes do not match |
В списке pgsql-sql по дате отправления: