X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 19D9CD1B508 for ; Thu, 18 Sep 2003 18:20:50 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 23991-03 for ; Thu, 18 Sep 2003 15:20:40 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7599CD1B500 for ; Thu, 18 Sep 2003 15:20:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8IIKXiP001009; Thu, 18 Sep 2003 14:20:33 -0400 (EDT) To: Josh Berkus Cc: "Alexander Priem" , pgsql-performance@postgresql.org Subject: Re: Many fields in one table or many tables? In-reply-to: <200309181027.12195.josh@agliodbs.com> References: <20399973.1063861169740.JavaMail.root@rowlf.psp.pas.earthlink.net> <008901c37dbc$b3615550$b696a8c0@APR> <200309181027.12195.josh@agliodbs.com> Comments: In-reply-to Josh Berkus message dated "Thu, 18 Sep 2003 10:27:12 -0700" Date: Thu, 18 Sep 2003 14:20:33 -0400 Message-ID: <1008.1063909233@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/276 X-Sequence-Number: 3642 Josh Berkus writes: > Suggestion 3: There was an issue in 7.3 with table rows which are overly broad > -- some problems with PSQL, I believe. Not sure about PSQL, but I think there still are some performance issues in the backend with SELECTs involving more than a couple hundred targetlist entries. These are probably fixable at not-very-large effort but we haven't made any consistent push to find and fix the trouble spots. The issues that I recall are O(N^2) problems (doubly nested loops) so the performance with ~100 entries is no problem but it gets rapidly worse above that. You could hit this even with ~100-column tables if you try to select all columns from a join of two or more. regards, tom lane