Create a database with ecpg - Mailing list pgsql-interfaces

From rodneyr@embratel.com.br
Subject Create a database with ecpg
Date
Msg-id 032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br
Whole thread Raw
Responses Re: [INTERFACES] Create a database with ecpg
Re: [INTERFACES] Create a database with ecpg
List 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.




pgsql-interfaces by date:

Previous
From: Bill Geddes
Date:
Subject: Re: Installing PostgreSQL
Next
From: Hannu Krosing
Date:
Subject: Re: [INTERFACES] Create a database with ecpg