Re: Executing script file

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Executing script file
Дата
Msg-id 1081843320.5047.15.camel@dell
обсуждение исходный текст
Ответ на Executing script file  ("Tumurbaatar S." <tumurbaatar@datacom.mn>)
Список pgsql-general
> Currently I use 'psql -f file' to perform all needed DDL statements
> except of create db. Because when I insert 'CREATE DATABASE'
> at the beginning of the script, the server creates a db but following
> commands like 'CREATE TABLE' and etc run on the current db, i.e.
> not in context of newly created db. Any ideas?

Use \c, like this:

  \c your_new_database

Bye, Chris.



В списке pgsql-general по дате отправления:

Предыдущее
От: "Tumurbaatar S."
Дата:
Сообщение: Executing script file
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Executing script file