Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6B02E1337BD6 for ; Thu, 12 May 2011 08:07:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 01382-01 for ; Thu, 12 May 2011 11:07:02 +0000 (UTC) X-Greylist: delayed 00:05:18.76158 by SQLgrey-1.7.6 Received: from mail.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by mail.postgresql.org (Postfix) with ESMTP id 4340E1337999 for ; Thu, 12 May 2011 08:07:01 -0300 (ADT) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by mail.archonet.com (Postfix) with ESMTP id 73EDF7C1C3; Thu, 12 May 2011 12:01:41 +0100 (BST) Message-ID: <4DCBBE15.8030806@archonet.com> Date: Thu, 12 May 2011 12:01:41 +0100 From: Richard Huxton User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15pre) Gecko/20110207 Lightning/1.0b2 Shredder/3.1.9pre MIME-Version: 1.0 To: Grzegorz Szpetkowski CC: pgsql-sql@postgresql.org Subject: Re: CROSS JOIN ordering References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.918 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_DYNAMIC=0.982 X-Spam-Level: X-Archive-Number: 201105/83 X-Sequence-Number: 35367 On 12/05/11 00:19, Grzegorz Szpetkowski wrote: > Is there any "proper", standard ordering that I can assume for sure ? > Maybe PostgreSQL 8.4/9.0 versions have strict ordering and older > versions are using mixed ordering depends on something I don't know (I > am just guessing). Queries do not have any guaranteed order unless you add an ORDER BY clause. None of them, no matter how simple. -- Richard Huxton Archonet Ltd