Skip site navigation (1) Skip section navigation (2)

Re: function that returns dynamicly created table

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Michal Holečka <miko(at)kmit(dot)sk>,pgsql-novice(at)postgresql(dot)org
Subject: Re: function that returns dynamicly created table
Date: 2004-02-10 03:53:53
Message-ID: 200402091953.53867.josh@agliodbs.com (view raw or flat)
Thread:
Lists: pgsql-novice
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/guides/SetReturningFunctions

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

-- 
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

pgsql-novice by date

Next:From: Rajan BhideDate: 2004-02-10 05:41:06
Subject: Performing COPY Command
Previous:From: Michal HolečkaDate: 2004-02-10 01:03:52
Subject: function that returns dynamicly created table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group