Option for pg_dump to dump tables in clustered index order

Поиск
Список
Период
Сортировка
От Timothy Garnett
Тема Option for pg_dump to dump tables in clustered index order
Дата
Msg-id CAPcyiQ2E+41BYvUgiGW79TcHmGY3tuym41hKHvUWWrzKX=pEmA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Option for pg_dump to dump tables in clustered index order  (Christopher Browne <cbbrowne@gmail.com>)
Список pgsql-hackers
Hi All,

Having pg_dump dump tables in clustered index order is something we've found we've needed a fair number of times (for ex. when copying a large logging tables or sets of tables out of one database where the order is not maintained into another for running a bunch of backend analysis) as it saves us the clustering step which is often longer then the copy step itself.

I wanted to gauge the interest in adding an option for this to pg_dump.  A (not production ready) patch that we've been using off of the 9.1.2 tag to implement this is attached or can be viewed here.  It adds a --cluster-order option to pg_dump. If people have any suggestions on better ways of pulling out the order clause or other improvements that would be great too.

Tim
Вложения

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

Предыдущее
От: Hitoshi Harada
Дата:
Сообщение: Re: Finer Extension dependencies
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: Speed dblink using alternate libpq tuple storage