Re: [ADMIN] Create database/table using postgresql stored function

2010-12-08 Thread Guillaume Lelarge
Le 08/12/2010 11:04, Manasi Save a écrit : > 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 S

Re: [ADMIN] Create database/table using postgresql stored function

2010-12-08 Thread Guillaume Lelarge
Le 08/12/2010 10:43, Manasi Save a écrit : > [...] > I want to create postgresql database and tables using stored functions. > > Does postgresql support create statements in stored functions. > You cannot use CREATE DATABASE from a stored function or in a multistatements query. But AFAICT, any

Re: [ADMIN] Create database/table using postgresql stored function

2010-12-08 Thread Manasi Save
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 my

[ADMIN] Create database/table using postgresql stored function

2010-12-08 Thread Manasi Save
Hi All, I want to create postgresql database and tables using stored functions. Does postgresql support create statements in stored functions. Regards, Manasi