pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rodneyr@embratel.com.br
To: pgsql-interfaces@hub.org
Subject: Create a database with ecpg
Date: Tue, 21 Sep 1999 22:15:33 -0300
Message-ID: <032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br> (raw)

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.





view thread (6+ messages)  latest in thread

Message-ID: <032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br>
Permalink:  ../032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br/
Also on:    postgresql.org/message-id/032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: rodneyr@embratel.com.br, pgsql-interfaces@hub.org
  Subject: Re: Create a database with ecpg
  In-Reply-To: <032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br>
  References: <032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox