X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BAB9A5290D for ; Sun, 3 Jul 2005 19:24:16 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34146-07 for ; Sun, 3 Jul 2005 22:24:06 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 1898952892 for ; Sun, 3 Jul 2005 19:24:04 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j63LN9Tj030493 for pgsql-admin@postgresql.org; Sun, 3 Jul 2005 23:23:09 +0200 Date: Sun, 3 Jul 2005 23:23:09 +0200 From: Enrico Weigelt To: pgsql-admin Subject: Some Tip: take care to run routine vacuum as superuser ... Message-ID: <20050703212309.GA13288@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-admin Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/13 X-Sequence-Number: 18069 Hi folks, here's some new tip for the maillist footers: "if vacuum (from some scripts) doesnt seem to work, have a look at the logfile - you're probably using the wrong login" I just had to learn that's a nice pitfall, if you're trying to do routine vacuum from some php scripts and logging in as someone who's not the table owner ... I wondered why the db doesnt get faster, but when vacuum'ing manually or from pgadmin, I had a gread speedup. Enabling verbose query logging showed up the problem. ... yeah, yeah, ashes on my head ... I'm not getting younger ... ;-) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de --------------------------------------------------------------------- Realtime Forex/Stock Exchange trading powered by postgresSQL :)) http://www.fxignal.net/ ---------------------------------------------------------------------