X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 69FD59DC846 for ; Mon, 16 Jan 2006 18:43:34 -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 62321-05 for ; Mon, 16 Jan 2006 18:43:35 -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 A22499DC838 for ; Mon, 16 Jan 2006 18:43:29 -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 k0GMhUSE018876; Mon, 16 Jan 2006 17:43:30 -0500 (EST) To: Antoine cc: pgsql-performance@postgresql.org Subject: Re: new to postgres (and db management) and performance already a problem :-( In-reply-to: <43CC1938.7020807@gmail.com> References: <43CC1938.7020807@gmail.com> Comments: In-reply-to Antoine message dated "Mon, 16 Jan 2006 23:07:52 +0100" Date: Mon, 16 Jan 2006 17:43:30 -0500 Message-ID: <18875.1137451410@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.089 required=5 tests=[AWL=0.089] X-Spam-Score: 0.089 X-Spam-Level: X-Archive-Number: 200601/211 X-Sequence-Number: 16689 Antoine writes: > So... seeing as I didn't really do any investigation as to setting > default sizes for storage and the like - I am wondering whether our > performance problems (a programme running 1.5x slower than two weeks > ago) might not be coming from the db (or rather, my maintaining of it). That does sound like a lack-of-vacuuming problem. If the performance goes back where it was after VACUUM FULL, then you can be pretty sure of it. Note that autovacuum is not designed to fix this for you: it only ever issues regular vacuum not vacuum full. > I couldn't find an easy way to check for disk accessings. Watch the output of "vmstat 1" or "iostat 1" for info about that. regards, tom lane