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 8394053B71 for ; Wed, 20 Apr 2005 23:19:09 -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 18499-02 for ; Thu, 21 Apr 2005 02:19:01 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id 9AC2D5385D for ; Wed, 20 Apr 2005 23:18:59 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j3L2J2KA018251 for pgsql-admin@postgresql.org; Thu, 21 Apr 2005 04:19:02 +0200 Date: Thu, 21 Apr 2005 04:19:02 +0200 From: Enrico Weigelt To: pgsql-admin Subject: Re: cost of empty fields Message-ID: <20050421021902.GA16782@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-admin References: <20050415142206.GA347@nibiru.borg.metux.de> <20050415165802.GT58835@decibel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050415165802.GT58835@decibel.org> 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: 200504/293 X-Sequence-Number: 17306 * Jim C. Nasby wrote: > If you setup rules on the view and just have the application select, > insert, update, and delete from the view instead of the raw tables you > won't need to change your application at all. Though you do need to be > aware that you can't easily enforce uniqueness across multiple tables. hmm. that doesnt sound stable enough for me. this table is really critical and there's a lot of money in game (realtime currency trading ...) > As for clearing the fields, if by clearing you mean setting to NULL then > you're correct, it would save space. Just remember that you won't > actually be able to use the saved space until the table is vacuumed. Yes, that's what I had in mind. Vacuum is no problem. The exchange is closed at weekend, so there's really enough time for vacuum full analyze :) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de cellphone: +49 174 7066481 --------------------------------------------------------------------- -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops -- ---------------------------------------------------------------------