Re: Returning a Cross Tab record set from a function - Mailing list pgsql-sql

From KÖPFERL Robert
Subject Re: Returning a Cross Tab record set from a function
Date
Msg-id ED4E30DD9C43D5118DFB00508BBBA76EB16742@neptun.sonorys.at
Whole thread Raw
In response to Returning a Cross Tab record set from a function  (Marc Wrubleski <mlwruble@math.ucalgary.ca>)
Responses Re: Returning a Cross Tab record set from a function
List 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 by date:

Previous
From: Vadivel Subramaniam
Date:
Subject: how to store more than 3 MB of character data in Postgres Varchar field
Next
From: Richard Huxton
Date:
Subject: Re: how to store more than 3 MB of character data in Postgres