Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id EAF459FB68F for ; Thu, 19 Jul 2007 22:41:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 31057-06 for ; Thu, 19 Jul 2007 22:41:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 5C0599FB5E5 for ; Thu, 19 Jul 2007 22:41:16 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 512E233F66; Fri, 20 Jul 2007 03:41:13 +0200 (MET DST) From: ljb X-Newsgroups: pgsql.sql Subject: Re: UNION and LIMIT issue Date: Fri, 20 Jul 2007 01:41:05 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 6 Message-ID: References: <469FDF17.9060701@visualmining.com> <10865.1184884079@sss.pgh.pa.us> X-Complaints-To: usenet@news.hub.org X-No-Archive: yes User-Agent: slrn/0.9.8.1 (Linux) To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/122 X-Sequence-Number: 28857 tgl@sss.pgh.pa.us wrote: >... > ISTM that a LIMIT without an ORDER BY is a pretty bad idea, btw. Some databases actually output a warning when you do that, telling you your result is non-deterministic. Which seems to me to be a little presumptuous...