Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AB1911337BA5 for ; Mon, 28 Feb 2011 14:32:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 82036-02 for ; Mon, 28 Feb 2011 18:32:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout01.ims-firmen.de (mailout01.ims-firmen.de [213.174.32.96]) by mail.postgresql.org (Postfix) with ESMTP id 1CD261337BA4 for ; Mon, 28 Feb 2011 14:32:50 -0400 (AST) Received: from [192.168.1.112] (helo=mailin03.ims-firmen.de) by mailout01.ims-firmen.de with esmtp (Exim 4.72) (envelope-from ) id 1Pu7to-0003RE-3N for pgsql-performance@postgresql.org; Mon, 28 Feb 2011 19:32:48 +0100 Received: from [87.170.176.57] (helo=a-kretschmer.de) by mailin03.ims-firmen.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1Pu7tn-00006F-Tn for pgsql-performance@postgresql.org; Mon, 28 Feb 2011 19:32:48 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1Pu7tm-0002IE-Pw for pgsql-performance@postgresql.org; Mon, 28 Feb 2011 19:32:46 +0100 Date: Mon, 28 Feb 2011 19:32:46 +0100 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: optimalization Message-ID: <20110228183246.GA8491@tux> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/531 X-Sequence-Number: 42669 croolyc wrote: > Hi! > can you help me with performance optimization > on my machine I have 8 databases with ca. 1-2GB Performace optimization depends on the workload... Is that a dedicated server, only for PostgreSQL? I assume it. > memory: 8GB (4*2GB ecc ram) Okay, as a first try, set shared_buffers to 2 GByte, and increase work_mem up to, maybe, 20 MByte. You can (and should) set log_min_duration_statement, maybe to 1000 (1000ms), and observe the log. Read our docu about EXPLAIN, and analyse long-running queries with EXPLAIN (ANALYSE). And again, performance tuning depends on the real workload on the server, it's hard to give you a recipe for all use-cases. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°