From: Kyle <kyle@actarg.com>
To: tgl@sss.pgh.pa.us
Cc: pgsql-sql@postgresql.org
Subject: Update
Date: Sat, 07 Apr 2001 12:37:32 -0600
Message-ID: <3ACF5E6C.51106D1C@actarg.com> (raw)
OK, I figured it out. It wasn't the sum(int4) thing...
I have a query that looks like this:
select pnum from part where func1(pnum) and func2(pnum);
Func1 takes less time to execute than func2. I was using func1 to
"narrow the field" of records so the query would not take so long to
execute. After upgrading to 7.1 the query got real slow. After
changing the query to:
select pnum from part where func2(pnum) and func1(pnum);
The query went back to its normal time.
It appears that the first function would get evaluated first under 7.0.3
but the last function gets evaluated first under 7.1. Is that accurate?
Is there a way to control which functions are given precidence?
Kyle
Attachments:kyle.vcf (text/x-vcard, 184B) download
begin:vcard
n:Bateman;Kyle
x-mozilla-html:FALSE
org:Action Target Inc.
adr:;;;;;;
version:2.1
email;internet:kyle@actarg.com
title:President
x-mozilla-cpt:;0
fn:Kyle Bateman
end:vcard
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-sql@postgresql.org
Cc: kyle@actarg.com, tgl@sss.pgh.pa.us
Subject: Re: Update
In-Reply-To: <3ACF5E6C.51106D1C@actarg.com>
References: <3ACF5E6C.51106D1C@actarg.com>
* 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