X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E41AE9DC82D for ; Tue, 20 Dec 2005 11:35:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01923-09 for ; Tue, 20 Dec 2005 11:35:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B31709DC819 for ; Tue, 20 Dec 2005 11:35:09 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBKFZDqZ029547; Tue, 20 Dec 2005 10:35:13 -0500 (EST) To: Chris Hoover cc: "pgsql-admin@postgresql.org" Subject: Re: PG8.1 - Config file check In-reply-to: <1d219a6f0512200712k6c6b3890u8832f042f53deacc@mail.gmail.com> References: <1d219a6f0512191211n17f39110i2fb7413593930a5d@mail.gmail.com> <23806.1135047103@sss.pgh.pa.us> <1d219a6f0512200712k6c6b3890u8832f042f53deacc@mail.gmail.com> Comments: In-reply-to Chris Hoover message dated "Tue, 20 Dec 2005 10:12:36 -0500" Date: Tue, 20 Dec 2005 10:35:13 -0500 Message-ID: <29546.1135092913@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.021 required=5 tests=[AWL=0.021] X-Spam-Score: 0.021 X-Spam-Level: X-Archive-Number: 200512/221 X-Sequence-Number: 19941 Chris Hoover writes: > We are running a typical OLTP system with some reporting done against it. > What value would you recommend as a starting point for the work_mem. You probably want small work_mem for the transactional sessions (4Mb doesn't sound out of line, maybe even less), and then boost it up locally in the reporting sessions. Some tens of meg will probably help the reporting queries. > Also, is it safe and/or advised to leave these at these high levels? > checkpoint_segements to 256 > checkpoint_timeout to 1800 seconds (30 minutes) If you don't mind a long time to recover from a crash ... regards, tom lane