Re: pg_dump of database with numerous objects

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pg_dump of database with numerous objects
Дата
Msg-id 20200603201055.GA30037@alvherre.pgsql
обсуждение исходный текст
Ответ на pg_dump of database with numerous objects  (tony@exquisiteimages.com)
Ответы Re: pg_dump of database with numerous objects  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
On 2020-May-31, tony@exquisiteimages.com wrote:

> I am now needing to upgrade to a new version of PostgreSQL and I am running
> into problems when pg_upgrade calls pg_dump. pg_dump stalled at: "pg_dump:
> saving database definition" for 24 hours before I killed the process.
> 
> My pg_class table contains 9,000,000 entries and I have 9004 schema.

We've made a number of performance improvements to pg_dump so that it
can dump databases that are "large" in several different dimensions, but
evidently from your report it is not yet good enough when it comes to
dumping millions of tables in thousands of schemas.  It will probably
take some profiling of pg_dump to figure out where the bottleneck is,
and some careful optimization work in order to make it faster.  Not a
weekend job, I'm afraid :-(

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Can we get SQL Server-like cross database queries
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Fine grained permissions on User Mapping