Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id A99A32E0062 for ; Sun, 27 Apr 2008 13:06:44 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 17605-04 for ; Sun, 27 Apr 2008 13:06:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by developer.postgresql.org (Postfix) with ESMTP id 34A8E2E002E for ; Sun, 27 Apr 2008 13:06:42 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 5so1062317ywb.73 for ; Sun, 27 Apr 2008 09:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9DrQVcos8La0MndI5KJBQzxUwVLtM65tJjuGBk025jM=; b=OQM+sC4mTlF64Cyum7awW4WFU+x763TacogYgkvdoKo82kOX7Z4iVfBlEYFE8JuoJ+XtZLmUqn/19X+MgoZGvezI/p+OM5LlHHdIPZjTCR1DviByfEDiGMBL8DBiAgcQfcpx6m0IuMSBooChpnfBOK+vafKquyx6d9PsgIAQ7d0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ljhY00RxKG10NorDZG9++dV30/Sn34YHx++EWU4HjBwaE2TlM0DGmoswkzi5q7hCYIyM7TaXWsxLHC6IjYlW3W7X6x3aK8sN9Keu28RfxsFlwO/+4rZb7cYrDAbmzCplfWwT5A2fBeik0pk8KDSNbUMVl73YUlDu2jli2Z/hKDw= Received: by 10.150.78.41 with SMTP id a41mr2752808ybb.176.1209312401620; Sun, 27 Apr 2008 09:06:41 -0700 (PDT) Received: by 10.150.58.20 with HTTP; Sun, 27 Apr 2008 09:06:41 -0700 (PDT) Message-ID: <36e682920804270906i7b5c5ab9v4e06688df85f810@mail.gmail.com> Date: Sun, 27 Apr 2008 12:06:41 -0400 From: "Jonah H. Harris" To: "Jean-David Beyer" Subject: Re: Curious about wide tables. Cc: pgsql-sql@postgresql.org In-Reply-To: <48147917.8000108@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48147917.8000108@verizon.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/201 X-Sequence-Number: 30740 On Sun, Apr 27, 2008 at 9:01 AM, Jean-David Beyer wrote: > In another thread, the O.P. had a question about a large table with over 100 > columns. Is this usual? Whenever I make a database, which is not often, it > ends up with tables that rarely have over to columns, and usually less than > that. When normalized, my tables rarely get very wide. Yes, even in several well-normalized schemas I've seen tables with over 250 columns. > Without criticising the O.P., since I know nothing about his application, I > am curious how it comes about that such a wide table is justified. The few applications I've seen with large tables were an insurance system, an manufacturing system, and a sensor-recording system (which was more optimal to store as an attribute-per-instance-of-time than a separate tuple containing the time, sensor, and value). -- Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732.331.1301 499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com Edison, NJ 08837 | http://www.enterprisedb.com/