From: Philip Warner <pjw@rhyme.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul McGarry <paulm@opentec.com.au>
To: pgsql-bugs@postgresql.org
To: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Re: [SQL] MAX() of 0 records.
Date: Mon, 10 Jul 2000 10:24:30 +1000
Message-ID: <3.0.5.32.20000710102430.009bf510@mail.rhyme.com.au> (raw)
In-Reply-To: <29285.963167740@sss.pgh.pa.us>
References: <9124.962953563@sss.pgh.pa.us>
<396535EF.8132CF80@opentec.com.au>
<8477.962940582@sss.pgh.pa.us>
<39656BD5.801BDEDC@opentec.com.au>
<9124.962953563@sss.pgh.pa.us>
At 14:35 9/07/00 -0400, Tom Lane wrote:
>
>so the construct is definitely not SQL-compliant. Maybe we should just
>forbid it. However, if you are joining against another table (which
>itself is not an SQL feature) then it seems like there is some potential
>use in it. What do people think of my implicit-GROUP-BY-ctid idea?
>That would basically say that the aggregate is computed over all the
>tuples that join to a single target tuple.
Sounds perfect to me...
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
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: pjw@rhyme.com.au, tgl@sss.pgh.pa.us, paulm@opentec.com.au, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Re: [SQL] MAX() of 0 records.
In-Reply-To: <3.0.5.32.20000710102430.009bf510@mail.rhyme.com.au>
References: <9124.962953563@sss.pgh.pa.us> <396535EF.8132CF80@opentec.com.au> <8477.962940582@sss.pgh.pa.us> <39656BD5.801BDEDC@opentec.com.au> <3.0.5.32.20000710102430.009bf510@mail.rhyme.com.au>
* 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