How to Create a Database Dynamically Using PostgreSQL

From: "Vishnu S(dot)" <vishnu(dot)s(at)nestgroup(dot)net>
To: <pgadmin-support(at)postgresql(dot)org>
Subject: How to Create a Database Dynamically Using PostgreSQL
Date: 2009-08-10 04:44:28
Message-ID: 9A1299C7A40D7447A108107E951450CA10BB9E49@MAIL-TVM.tvm.nestgroup.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi,

I am New in PostgreSQL. I want to know how we create a Database
dynamically using a postgresql function.

When I tried to create a Database like that,I got an error like the
following,

"CREATE DATABASE cannot be executed from a function or multi-command
string".

Thanks & Regards,

Vishnu S

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.

The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message smuffy bspark 2009-08-10 05:08:15 Re: Problem with query representation(tablespace) in SQL-pane of pgAdmin( newer versions )
Previous Message Guillaume Lelarge 2009-08-07 16:12:00 Re: Small annoyance in pgAdmin 1.10