| От | Tom Lane |
|---|---|
| Тема | Re: Problems with new data location |
| Дата | |
| Msg-id | 18414.991145301@sss.pgh.pa.us обсуждение |
| Ответ на | Problems with new data location ("Karen Ellrick" <k-ellrick@sctech.co.jp>) |
| Ответы |
RE: Problems with new data location
|
| Список | pgsql-general |
"Karen Ellrick" <k-ellrick@sctech.co.jp> writes:
> ... Then I tried creating /var/pgdata fresh and doing initdb -D
> /var/pgdata, and that was okay until I tried to create the database again,
> when it said a database of that name already existed. Yes, I have changed
> my startup script to reflect the new path.
But ... um ... did you restart the postmaster with the new path argument?
Or only change the script?
BTW, it should work fine to move a data-directory tree from one place to
another (with cp -p -r or tar/untar according to preference). But you
have to shut down the old postmaster *first*.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера