| 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-07 15:02:37 |
| Message-ID: | 8407.1352300557@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-performance |
Denis <socsam(at)gmail(dot)com> writes:
> Tom Lane-2 wrote
>> Hmmm ... so the problem here isn't that you've got 2600 schemas, it's
>> that you've got 183924 tables. That's going to take some time no matter
>> what.
> I wonder why pg_dump has to have deal with all these 183924 tables, if I
> specified to dump only one scheme: "pg_dump -n schema_name" or even like
> this to dump just one table "pg_dump -t 'schema_name.comments' " ?
It has to know about all the tables even if it's not going to dump them
all, for purposes such as dependency analysis.
> We have a web application where we create a schema with a number of tables
> in it for each customer. This architecture was chosen to ease the process of
> backup/restoring data.
I find that argument fairly dubious, but in any case you should not
imagine that hundreds of thousands of tables are going to be cost-free.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2012-11-07 15:23:42 | Re: Proposal for Allow postgresql.conf values to be changed via SQL |
| Previous Message | Simon Riggs | 2012-11-07 13:37:51 | Re: Extend libpq to support mixed text and binary results |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ivan Voras | 2012-11-07 15:21:47 | Unique values across a table of arrays - documents and tags |
| Previous Message | David Boreham | 2012-11-07 13:45:25 | Re: HT on or off for E5-26xx ? |