Re: [HACKERS] pg_dump and thousands of schemas

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Denis <socsam(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: [HACKERS] pg_dump and thousands of schemas
Date: 2012-11-06 15:07:34
Message-ID: 13005.1352214454@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Denis <socsam(at)gmail(dot)com> writes:
> I've read all the posts in thread, and as I understood in version 9.2 some
> patches were applied to improve pg_dump speed. I've just installed
> PostgreSQL 9.2.1 and I still have the same problem. I have a database with
> 2600 schemas in it. I try to dump each schema individually, but it takes too
> much time for every schema (about 30-40 seconds per schema, no matter what
> the data size is).

Could you provide a test case for that? Maybe the output of pg_dump -s,
anonymized as you see fit?

> Also for each schema dump I have a slow query log entry,

Could you provide EXPLAIN ANALYZE output for that query?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Denis 2012-11-06 15:40:21 Re: [HACKERS] pg_dump and thousands of schemas
Previous Message Denis 2012-11-06 14:16:14 Re: [HACKERS] pg_dump and thousands of schemas

Browse pgsql-performance by date

  From Date Subject
Next Message Willem Leenen 2012-11-06 15:12:27 Re: help with too slow query
Previous Message Виктор Егоров 2012-11-06 14:52:01 Re: help with too slow query