| От | Tom Lane |
|---|---|
| Тема | Re: [ADMIN] Copying data files to new hardware? |
| Дата | |
| Msg-id | 28873.1286989500@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Copying data files to new hardware? (Jaime Casanova <jaime@2ndquadrant.com>) |
| Список | pgsql-general |
Jaime Casanova <jaime@2ndquadrant.com> writes:
> On Wed, Oct 13, 2010 at 11:03 AM, EDH <evandhoffman@gmail.com> wrote:
>> What I'd like to know is: if I install the latest 8.2.x release - I
>> see 8.2.18 RPMs are available - can I do a straight copy of the
>> contents of /var/lib/pgsql/data/ to the new server and start it up?
>> Or is dump & restore the only real way to do this?
> it's safe to just install any version of 8.2.x, copy the whole data
> directory (plus any tablespace's directories you could have) and start
> again...
Not just "any" version --- it has to be the same build options.
(integer-datetimes is definitely a critical option, and I forget what
else.) But if you're using an RPM from the same RPM supplier as before,
they probably got this right.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера