Re: pg_restore --no-post-data and --post-data-only

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: pg_restore --no-post-data and --post-data-only
Дата
Msg-id 4E559AB6.4080502@agliodbs.com
обсуждение исходный текст
Ответ на pg_restore --no-post-data and --post-data-only  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pg_restore --no-post-data and --post-data-only  (Andrew Dunstan <andrew@dunslane.net>)
Re: pg_restore --no-post-data and --post-data-only  (Jim Nasby <jim@nasby.net>)
Список pgsql-hackers
On 8/23/11 1:30 PM, Andrew Dunstan wrote:
> 
> Attached is an undocumented patch that allows pg_restore to omit
> post-data items or omit all but post-data items. This has been discussed
> before, and Simon sent in a patch back on 2008, which has bitrotted
> some. I'm not sure why it was dropped at the time, but I think it's time
> to do this. This patch relies on some infrastructure that was added
> since Simon's patch, so it works a bit differently  (and more simply).

If it's not clear from Andrew's description, the purpose of this patch
is to allow dividing your pgdump into 3 portions:

1. schema
2. data
3. constraints/indexes

This allows users to implement a number of custom solutions for ad-hoc
parallel dump, conditional loading, data munging and sampled databases.While doing so was possible before using the
manifestfrom pg_restore
 
-l, the manifest approach has been complex to automate and relies on
obscure knowledge.

I have immediate production use for this patch and may be backporting it.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com


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

Предыдущее
От: bricklen
Дата:
Сообщение: Re: pg_dump --exclude-table-data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SSI 2PC coverage