Re: I: Help with indexes/queries/msaccess

From: wsheldah(at)lexmark(dot)com
To: "Fabrizio Mazzoni" <fabrizio(at)macron(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: I: Help with indexes/queries/msaccess
Date: 2001-06-29 14:50:17
Message-ID: 200106291450.KAA26147@interlock2.lexmark.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

When you use the join syntax you did, you're explicitly telling postgres in what
order to join the tables. If you use the "classic" syntax as you described it,
postgres will do its best to figure out the best join order. It probably
couldn't hurt to try.

When you say you created all the necessary indices, do you mean that all the
fields used in the join criteria are indexed?

"Fabrizio Mazzoni" <fabrizio%macron(dot)com(at)interlock(dot)lexmark(dot)com> on 06/29/2001
09:47:01 AM

To: pgsql-general%postgresql(dot)org(at)interlock(dot)lexmark(dot)com
cc: (bcc: Wesley Sheldahl/Lex/Lexmark)
Subject: [GENERAL] I: Help with indexes/queries/msaccess

Hi all...i'm converting an access db to postgres and i have a question on
indexes/queries. The following query, when launched on postgres with the
explain command, isn't using index scans but only sequential scans..why is
this?? I've created all the necessary indexes but the query is very very
slow...
This is the query:

[ query snipped]

This is a query generated with access 97 and modified to work on postgres..
The query executed on postgres is much much slower than on access 97..
I was thinking of rewriting it with the "classic" join syntax eg: select *
from a,b where a.a=b.b ...would this partially solve my problem??
Can anyone help me out.?

Thanks in advance..!

fabrizio(at)macrongolf(dot)com
http://macrongolf.com
http://eteampoint.com
http://macron.com

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-29 14:53:42 Re: function cache??
Previous Message Tom Lane 2001-06-29 14:44:52 Re: I: Help with indexes/queries/msaccess