From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query puts 7.3.4 on endless loop but 7.4beta5 is fine. [ with better indenting ]
Date: Thu, 30 Oct 2003 11:11:12 -0500
Message-ID: <28551.1067530272@sss.pgh.pa.us> (raw)
In-Reply-To: <200310301702.00275.mallah@trade-india.com>
References: <33298.203.145.130.142.1067457626.squirrel@mail.trade-india.com>
<20031029202920.GZ7337@pallas.fsck.com>
<33402.203.145.130.142.1067460429.squirrel@mail.trade-india.com>
<200310301702.00275.mallah@trade-india.com>
Rajesh Kumar Mallah <mallah@trade-india.com> writes:
> SELECT DISTINCT main.* FROM
> (
> (
> (
> (
> Tickets main JOIN Groups as Groups_1 ON ( main.id = Groups_1.Instance)
> ) JOIN
> Principals as Principals_2 ON ( Groups_1.id = Principals_2.ObjectId)
> ) JOIN
> CachedGroupMembers as CachedGroupMembers_3 ON ( Principals_2.id = CachedGroupMembers_3.GroupId)
> ) JOIN
> Users as Users_4 ON ( CachedGroupMembers_3.MemberId = Users_4.id)
> ) WHERE
> ...
I think the reason for the performance difference is that 7.3 treats
JOIN syntax as forcing a particular join order, while 7.4 doesn't.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, mallah@trade-india.com
Subject: Re: Query puts 7.3.4 on endless loop but 7.4beta5 is fine. [ with better indenting ]
In-Reply-To: <28551.1067530272@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