Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4596E9F925D for ; Tue, 28 Aug 2007 12:19:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 52257-07 for ; Tue, 28 Aug 2007 12:19:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 7A8BF9F926C for ; Tue, 28 Aug 2007 12:19:14 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1IQ2qX-0001je-N7 for pgsql-sql@postgresql.org; Tue, 28 Aug 2007 11:19:13 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 3D2553FAF; Tue, 28 Aug 2007 11:19:08 -0400 (EDT) Date: Tue, 28 Aug 2007 11:19:08 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Database normalization Message-ID: <20070828151908.GA979@phlogiston.dyndns.org> References: <99b656cb0708210709j5182b73cna63a2d275efa0e84@mail.gmail.com> <99b656cb0708280447x4eb7c45axec01c8d0ebc6c82d@mail.gmail.com> <20070828132604.GB461@phlogiston.dyndns.org> <99b656cb0708280737l3d50585fifcfef7103b26059b@mail.gmail.com> <20070828145902.GB847@phlogiston.dyndns.org> <99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99b656cb0708280815w141e715bhed5542317d709a17@mail.gmail.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/245 X-Sequence-Number: 29183 On Tue, Aug 28, 2007 at 04:15:01PM +0100, Sebastian Ritter wrote: > > I'd put it in its own table, probably, unless you're going to use it > > frequently. > > Why would frequency of use change whether or not I use one or two tables? If you have a possibly-large field that does not get used very much, you have to pay the I/O for it every time you look at that row, even if it's not used. Also, it sounds like it might not be used by every row? In that case, normalization calls for it to be pushed out too. A -- Andrew Sullivan | ajs@crankycanuck.ca However important originality may be in some fields, restraint and adherence to procedure emerge as the more significant virtues in a great many others. --Alain de Botton