From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert B. Easter <reaster@comptechnews.com>
Cc: Chris Bitmead <chris@bitmead.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: [HACKERS] Re: [SQL] MAX() of 0 records.
Date: Fri, 07 Jul 2000 14:12:34 -0400
Message-ID: <11091.962993554@sss.pgh.pa.us> (raw)
In-Reply-To: <0007071258480C.01354@comptechnews>
References: <396535EF.8132CF80@opentec.com.au>
<3965F8A6.3322C001@bitmead.com>
<10551.962987714@sss.pgh.pa.us>
<0007071258480C.01354@comptechnews>
"Robert B. Easter" <reaster@comptechnews.com> writes:
> If you use min(x) or max(x) frequently, isn't it best to make a
> trigger that intercepts x on insert and update, then check it and
> store it somewhere rather than scanning for it everytime?
I believe that's exactly what the original questioner is trying to do...
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, reaster@comptechnews.com, chris@bitmead.com, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Re: [SQL] MAX() of 0 records.
In-Reply-To: <11091.962993554@sss.pgh.pa.us>
References: <396535EF.8132CF80@opentec.com.au> <3965F8A6.3322C001@bitmead.com> <10551.962987714@sss.pgh.pa.us> <0007071258480C.01354@comptechnews> <11091.962993554@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