pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query puts 7.3.4 on endless loop but 7.4beta5 is fine.
Date: Fri, 31 Oct 2003 22:19:55 -0500
Message-ID: <3FA3265B.6040707@trade-india.com> (raw)
In-Reply-To: <28551.1067530272@sss.pgh.pa.us>
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>
	<28551.1067530272@sss.pgh.pa.us>

Tom Lane wrote:

>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.
>

Just out of curiosity , how does 7.4 determine the optimal Join Order?
is it GEQO in case of 7.4 although i did not enable it explicitly?
Thanks for the reply , I sent the EXPLAINs also just now.

What i really want is to help improving the Pg specific Component
for DBIx::SearchBuilder. The module is being widely used in
the  mod_perl world and has impact on the performance perception
of PostgreSQL.

>
>			regards, tom lane
>  
>

view thread (16+ messages)  latest in thread

Message-ID: <3FA3265B.6040707@trade-india.com>
Permalink:  ../3FA3265B.6040707@trade-india.com/
Also on:    postgresql.org/message-id/3FA3265B.6040707@trade-india.com

 · 

reply

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: mallah@trade-india.com, tgl@sss.pgh.pa.us
  Subject: Re: Query puts 7.3.4 on endless loop but 7.4beta5 is fine.
  In-Reply-To: <3FA3265B.6040707@trade-india.com>

* 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