From: Andrew McMillan <andrew@catalyst.net.nz>
To: grupos@carvalhaes.net
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_restore taking 4 hours!
Date: Fri, 03 Dec 2004 06:58:15 +1300
Message-ID: <1102010295.16058.271.camel@lamb.mcmillan.net.nz> (raw)
In-Reply-To: <41ADA82A.7070405@carvalhaes.net>
References: <41ADA82A.7070405@carvalhaes.net>
On Wed, 2004-12-01 at 09:16 -0200, Rodrigo Carvalhaes wrote:
>
> I am using PostgreSQL with a proprietary ERP software in Brazil. The
> database have around 1.600 tables (each one with +/- 50 columns).
...
> max_fsm_pages = 20000
> max_fsm_relations = 1000
Hi,
I doubt that this will improve your pg_restore performance, but if you
have 1600 tables in the database then you very likely want to increase
the above two settings.
In general max_fsm_relations should be more than the total number of
tables across all databases in a given installation. The best way to
set these is to do a "VACUUM VERBOSE", which will print the appropriate
minimum numbers at the end of the run, along with the current setting.
Cheers,
Andrew.
-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267
Never trust a computer you can't repair yourself.
-------------------------------------------------------------------------
Attachments:
signature.asc (application/pgp-signature, 188B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: andrew@catalyst.net.nz, grupos@carvalhaes.net
Subject: Re: pg_restore taking 4 hours!
In-Reply-To: <1102010295.16058.271.camel@lamb.mcmillan.net.nz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox