Received: from gatekeeper1.embratel.com.br ([200.255.122.6]) by hub.org (8.9.3/8.9.3) with ESMTP id VAA41101 for ; Tue, 21 Sep 1999 21:16:35 -0400 (EDT) (envelope-from rodneyr@embratel.com.br) From: rodneyr@embratel.com.br Received: by gatekeeper1.embratel.com.br; (8.8.8/1.3/10May95) id WAA05490; Tue, 21 Sep 1999 22:17:06 -0300 (EST) Received: from somewhere by smtpxd Received: from somewhere by smtpxd X-Lotus-FromDomain: EMBRATEL To: pgsql-interfaces@hub.org Message-ID: <032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br> Date: Tue, 21 Sep 1999 22:15:33 -0300 Subject: Create a database with ecpg Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline 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.