Re: Interest query plan - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: Interest query plan
Date
Msg-id 3F82E734.8060003@klaster.net
Whole thread Raw
In response to Interest query plan  (pginfo <pginfo@t1.unisoftbg.com>)
List pgsql-sql
> Hi all,
> I am running pg 7.3.1.
> My query is very simple but pg generates not the best possible plan for
> me:
>  analyze select * from a_doc D left outer join (A_SKLAD S join A_MED M
> ON(S.IDS_MED=M.IDS) )on( d.IDS=s.IDS_DOC)  where d.IDS='SOF_700060';
What about:

select * from a_doc D left join A_SKLAD S on(d.IDS=s.IDS_DOC) left join A_MED M ON(S.IDS_MED=M.IDS)
where d.IDS='SOF_700060'

?

Regards,
Tomasz Myrta




pgsql-sql by date:

Previous
From: pginfo
Date:
Subject: Interest query plan
Next
From: pginfo
Date:
Subject: Re: Interest query plan