From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Crawford <scrawford@pinpointresearch.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Terrible performance on wide selects
Date: Fri, 17 Jan 2003 18:06:52 -0500
Message-ID: <19506.1042844812@sss.pgh.pa.us> (raw)
In-Reply-To: <20030117193726.1CFCB103E5@polaris.pinpointresearch.com>
References: <20030117193726.1CFCB103E5@polaris.pinpointresearch.com>
Steve Crawford <scrawford@pinpointresearch.com> writes:
> So the question is, does it seem reasonable that a query on fundamentally
> identical data should take 70-90 times as long when displayed as individual
> columns vs. when output as a raw array and, more imporantly, what can I do to
> get acceptable performance on this query?
There are undoubtedly some places that are O(N^2) in the number of
targetlist items. Feel free to do some profiling to identify them.
It probably won't be real hard to fix 'em once identified.
regards, tom lane
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, scrawford@pinpointresearch.com, pgsql-general@postgresql.org
Subject: Re: Terrible performance on wide selects
In-Reply-To: <19506.1042844812@sss.pgh.pa.us>
References: <20030117193726.1CFCB103E5@polaris.pinpointresearch.com> <19506.1042844812@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