Received: from acheron.rime.com.au (root@albatr.lnk.telstra.net [139.130.54.222]) by hub.org (8.10.1/8.10.1) with ESMTP id e6A0brW32671; Sun, 9 Jul 2000 20:37:53 -0400 (EDT) Received: from oberon (Oberon.rime.com.au [203.8.195.100]) by acheron.rime.com.au (8.9.3/8.9.3) with SMTP id KAA10091; Mon, 10 Jul 2000 10:18:52 +1000 Message-Id: <3.0.5.32.20000710102430.009bf510@mail.rhyme.com.au> X-Sender: pjw@mail.rhyme.com.au X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 10 Jul 2000 10:24:30 +1000 To: Tom Lane , Paul McGarry , pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org From: Philip Warner Subject: Re: [HACKERS] Re: [SQL] MAX() of 0 records. 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/82 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 |/