Re: How to determine a database is intact?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wes Palmer <Wesley(dot)R(dot)Palmer(at)syntegra(dot)com>
Cc: Jan Wieck <JanWieck(at)yahoo(dot)com>, Richard Huxton <dev(at)archonet(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to determine a database is intact?
Date: 2004-09-08 23:12:35
Message-ID: 24996.1094685155@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wes Palmer <Wesley(dot)R(dot)Palmer(at)syntegra(dot)com> writes:
> On 9/8/04 5:51 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> How much RAM have you got in the machine? I'd think that you could
>> afford to put, say, a quarter or so of physical RAM into sort_mem, if
>> there is nothing much else going on during the data import. 64MB is
>> not a lot on that scale.

> The system currently has 2GB. The system is dedicated to this database, so
> for a dedicated load I would think I could set it up to 1GB?

Maybe, but the sort_mem isn't the only thing you want a lot of --- you
don't want to be starving the kernel of disk buffers either. Also I'm
not prepared to guarantee that the setting will be respected
on-the-nose, particularly not for FK rebuild. You might want to keep an
eye on the thing with "top" and see what it really does.

I'd suggest some experimentation, maybe with settings of 256MB, 512MB,
1G to see what happens.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lee Harr 2004-09-09 00:31:46 Re: function calls in WHERE clause
Previous Message Wes Palmer 2004-09-08 23:08:37 Re: How to determine a database is intact?