Re: Detach/attach table and index data files from one cluster to another

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Detach/attach table and index data files from one cluster to another
Дата
Msg-id 20130412181511.GL4361@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Detach/attach table and index data files from one cluster to another  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Detach/attach table and index data files from one cluster to another  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Well, it wouldn't be that hard to replace XIDs with FrozenXID or
> InvalidXID as appropriate, if you had access to the source database's
> clog while you did the copying.  It just wouldn't be very fast.

If you're doing that in a streaming method, it strikes me that it'd be
plenty fast.

> I suppose it would still be faster than a COPY transfer, but I'm not
> sure it'd be enough faster to justify the work and the additional
> portability hits you'd be taking.

The big win here over a binary COPY is pulling through the indexes as-is
as well- without having to rebuild them.
Thanks,
    Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: (auto)vacuum truncate exclusive lock
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Detach/attach table and index data files from one cluster to another