From: Kyle <kyle@actarg.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Update
Date: Fri, 13 Apr 2001 08:58:24 -0600
Message-ID: <3AD71410.F2A1B252@actarg.com> (raw)
References: <3ACF5E6C.51106D1C@actarg.com>
<2092.987131009@sss.pgh.pa.us>
Tom Lane wrote:
> Kyle <kyle@Actarg.com> writes:
> > 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?
>
> Actually, I was under the impression that (all else being equal) WHERE
> clauses would get evaluated right-to-left in 7.0.* as well. I was
> meaning to figure out where the clause order reversal is happening and
> undo it, but didn't get around to it for 7.1.
>
> > Is there a way to control which functions are given precidence?
>
> Nope, not at the moment. The code has remnants of a notion of cost of
> evaluation for functions, but it's not being used for anything ...
>
Might be interesting to have something like:
create function ... as ... with cost=x;
It would also be cool to supply a default set of parameters to the function.
Then "vaccum analyze" or some such thing could execute the functions, time
them, and store cost data internally...
create function ... as ... with default(3,7,4);
or
create function myfunc (int4 3, float8 7, numeric 4) ...;
BTW, great job on 7.1! Kudos to all the developers who are working so hard
to make it happen.
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: <3AD71410.F2A1B252@actarg.com>
References: <3ACF5E6C.51106D1C@actarg.com> <2092.987131009@sss.pgh.pa.us> <3AD71410.F2A1B252@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