| От | tfo@alumni.brown.edu (Thomas F. O'Connell) |
|---|---|
| Тема | Re: pg_restore usage |
| Дата | |
| Msg-id | 80c38bb1.0406281155.470ef80b@posting.google.com обсуждение исходный текст |
| Ответ на | pg_restore usage (tfo@alumni.brown.edu (Thomas F. O'Connell)) |
| Список | pgsql-admin |
So these two statements seem to be somewhat contradictory. What's the point of -C if not to create the database named in -d? And why does -C -d template1 work but not -C -d <mypgsql>? -tfo tgl@sss.pgh.pa.us (Tom Lane) wrote in message news:<11767.1088346148@sss.pgh.pa.us>... > Whatever database you name in -d has to already exist, because that's > where pg_restore will initially connect. -C means to issue a CREATE > DATABASE command and then reconnect to the new db. > > In other words, try "-C -d template1".
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера