| От | Tom Lane |
|---|---|
| Тема | Re: Problems with new data location |
| Дата | |
| Msg-id | 21507.991232113@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | RE: Problems with new data location ("Karen Ellrick" <k-ellrick@sctech.co.jp>) |
| Список | pgsql-general |
"Karen Ellrick" <k-ellrick@sctech.co.jp> writes:
> Yup, the key is that both those methods copy (rather than move) the
> directory. If you copy, you can use restart (I assume - I didn't try it).
Just for the benefit of the archives: copying the directory tree while
the postmaster is live is exactly what I *don't* recommend you do.
There's too much risk of copying an inconsistent fileset if any
backends, checkpoint processes, etc happen to be making changes while
you do the copy. You might get away with it ... or you might not.
You can't 'mv' the $PGDATA directory while it's live either, but for
a different set of reasons (the backends use absolute pathnames to
access database files).
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера