dbTalk Databases Forums  

Re: function that returns dynamicly created table

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Re: function that returns dynamicly created table in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Josh Berkus
 
Posts: n/a

Default Re: function that returns dynamicly created table - 02-09-2004 , 09:53 PM






Michal,

Quote:
I would like to create function create_table(integer[]) that returns
dynamically created table. Table is composed of several tables which
are left joined together. How many tables are joined is said by function
argument - integer field..
It's possible in 7.3 and 7.4 but not in earlier versions of PostgreSQL. See:
http://techdocs.postgresql.org/guide...rningFunctions

WHY you would want to do such a thing is a question which is beyond me
entirely.

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #2  
Old   
Nabil Sayegh
 
Posts: n/a

Default Re: function that returns dynamicly created table - 02-10-2004 , 07:52 AM






Josh Berkus wrote:
Quote:
Michal,


I would like to create function create_table(integer[]) that returns
dynamically created table. Table is composed of several tables which
are left joined together. How many tables are joined is said by function
argument - integer field..


It's possible in 7.3 and 7.4 but not in earlier versions of PostgreSQL. See:
http://techdocs.postgresql.org/guide...rningFunctions

WHY you would want to do such a thing is a question which is beyond me
entirely.
Makes perfect sense to me, if he's trying to create tables based on meta data in another table.

--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.