Re: Create database/table using postgresql stored function - Mailing list pgsql-admin

From Manasi Save
Subject Re: Create database/table using postgresql stored function
Date
Msg-id 20101208050427.ryccuyjfp9asowkk@mail.artificialmachines.com
Whole thread Raw
In response to Create database/table using postgresql stored function  ("Manasi Save" <manasi.save@artificialmachines.com>)
Responses Re: Create database/table using postgresql stored function  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-admin
Also I want to query multiple databases from stored functions from one central database.
 
for ex := 
 

CREATE OR REPLACE FUNCTION test ()  RETURNS  AS
$BODY$
 
SELECT * FROM db2.volume
ORDER BY db2.volume.volumeID
 
$BODY$  
LANGUAGE sql STABLE  
COST 100  
ROWS 1000;'
 
I have implemented this thing in mysql but I am not really sure is it possible in postgresql.

--
Regards,
Manasi Save



On Wed, 08 Dec 2010 04:43:50 -0500, Manasi Save wrote:
Hi All,
 
I want to create postgresql database and tables using stored functions.
 
 
Does postgresql support create statements in stored functions.
 
Regards,
Manasi

pgsql-admin by date:

Previous
From: "Manasi Save"
Date:
Subject: Create database/table using postgresql stored function
Next
From: Guillaume Lelarge
Date:
Subject: Re: Create database/table using postgresql stored function