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

Create a database with ecpg

From: rodneyr(at)embratel(dot)com(dot)br
To: pgsql-interfaces(at)hub(dot)org
Subject: Create a database with ecpg
Date: 1999-09-22 01:15:33
Message-ID: 032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br (view raw or flat)
Thread:
Lists: pgsql-interfaces
I include the following statement in my program to create a database:

"EXEC SQL CREATE DATABASE testbase;"

Then I compiled it, using ecpg, but the database was't been created.

When a try to open it with "psql" I receive the message:

Connection to database 'testbase' failed.
FATAL 1:  Database testbase does not exist in pg_database

Is there any mistake in my statement?

P.S.: I compiled the program without receiving any mistake message.

Thank you.

Rodney.



Responses

pgsql-interfaces by date

Next:From: Hannu KrosingDate: 1999-09-22 05:52:56
Subject: Re: [INTERFACES] Create a database with ecpg
Previous:From: Bill GeddesDate: 1999-09-21 23:11:59
Subject: Re: Installing PostgreSQL

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