Create a database with ecpg

Поиск
Список
Период
Сортировка
От rodneyr@embratel.com.br
Тема Create a database with ecpg
Дата
Msg-id 032567F4.0006E7A5.00@ntrjo008.nt.embratel.com.br
обсуждение исходный текст
Ответы Re: [INTERFACES] Create a database with ecpg  (Michael Meskes <meskes@postgresql.org>)
Re: [INTERFACES] Create a database with ecpg  (Michael Meskes <michael@fam-meskes.de>)
Список 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 по дате отправления:

Предыдущее
От: Bill Geddes
Дата:
Сообщение: Re: Installing PostgreSQL
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [INTERFACES] Create a database with ecpg