X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2112FDAB2D for ; Wed, 26 Oct 2005 03:12:49 -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 46421-04 for ; Wed, 26 Oct 2005 06:12:44 +0000 (GMT) Received: from challengelogistics.com.au (unknown [203.48.241.83]) by svr1.postgresql.org (Postfix) with ESMTP id 9123BDA994 for ; Wed, 26 Oct 2005 03:12:44 -0300 (ADT) Received: from isis.challengelogistics.com.au ([192.168.160.31]) by sameagle with InterScan Messaging Security Suite; Wed, 26 Oct 2005 16:12:39 +1000 Received: from sandy01.challengelogistics.com.au ([192.168.160.3]) by isis.challengelogistics.com.au with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Oct 2005 16:14:36 +1000 From: "Bath, David" Reply-To: dave.bath@unix.net To: pgsql-sql@postgresql.org Subject: Re: why vacuum Date: Wed, 26 Oct 2005 16:22:40 +1000 User-Agent: KMail/1.8 References: <200510261015.17623.lawgon@thenilgiris.com> <2123.1130303680@sss.pgh.pa.us> In-Reply-To: <2123.1130303680@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510261622.40874.dave.bath@unix.net> X-OriginalArrivalTime: 26 Oct 2005 06:14:36.0218 (UTC) FILETIME=[8A1AB1A0:01C5D9F4] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.057] X-Spam-Level: X-Archive-Number: 200510/308 X-Sequence-Number: 23161 On Wed, 26 Oct 2005 15:14, Tom Lane wrote: > Kenneth Gonsalves writes: > > (A MySQueeeel guy said, not Kenneth)... > > 'I wouldnt commit mission critical data to a database that needs to be > > vacuumed once a week'. My two-penneth worth... I wouldn't commit mission critical data to a database (or DBA) that doesn't have a concept of vacuuming (or desire to do it regularly). But, less flamingly, I wouldn't commit mission-critical data to something that lacked the ability to have proper constraints, triggers and server-side procedures to ensure the data actually remains sensible. Note that Sybase/MS-SQL's check constraint model asserts the constraint BEFORE the trigger, which discourages you from attempting to check and handle meaning of data! > This guy is not worth arguing with. D'Accord! > > So why does pg need vacuum? For (inter alia) the same reason that * Oracle has an ANALYZE_SCHEMA and DBMS_SPACE_ADMIN and (hoist by his own petard) * MySQueeeeaL has myisamchk --stats_method=method_name --analyze Oh, well: MySQL bigot and internal consistency? whadya expect? Dave Bath (Oracle DBA for health/telcos way back in 1986: honeywrong GCOS and Pr1mos) -- David T. Bath dave.bath@unix.net