| От | Richard Huxton |
|---|---|
| Тема | Re: Executing script file |
| Дата | |
| Msg-id | 200404130937.01646.dev@archonet.com обсуждение исходный текст |
| Ответ на | Executing script file ("Tumurbaatar S." <tumurbaatar@datacom.mn>) |
| Список | pgsql-general |
On Tuesday 13 April 2004 08:40, Tumurbaatar S. wrote: > Hi! > I cannot imagine how to create db from a script file and execute > other DDL statements on this new db. > P.S. Some RDBMS automatically switches to a newly created db > after 'CREATE DATABASE' and some other languages have command > like 'USE' to switch to a different db. You want to look into the "\c" command available in psql. That reconnects to a different db / user. Worth doing a pg_dump (text format) and looking at its output (or pg_restore to a text-file). -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера