pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Alexander Priem <ap@cict.nl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Many fields in one table or many tables?
Date: Thu, 18 Sep 2003 14:20:33 -0400
Message-ID: <1008.1063909233@sss.pgh.pa.us> (raw)
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>

Josh Berkus <josh@agliodbs.com> 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



view thread (3+ messages)

Message-ID: <1008.1063909233@sss.pgh.pa.us>
Permalink:  ../1008.1063909233@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1008.1063909233@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com, ap@cict.nl
  Subject: Re: Many fields in one table or many tables?
  In-Reply-To: <1008.1063909233@sss.pgh.pa.us>
  References: <20399973.1063861169740.JavaMail.root@rowlf.psp.pas.earthlink.net> <008901c37dbc$b3615550$b696a8c0@APR> <200309181027.12195.josh@agliodbs.com> <1008.1063909233@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox