X-Original-To: pgsql-performance@postgresql.org Received: from fuji.krosing.net (unknown [194.204.44.118]) by postgresql.org (Postfix) with ESMTP id AC17F475AE4 for ; Thu, 13 Mar 2003 17:27:31 -0500 (EST) Received: from fuji.krosing.net (lo [127.0.0.1]) by fuji.krosing.net (8.12.7/8.12.7) with ESMTP id h2DMQLaG002067; Fri, 14 Mar 2003 00:26:21 +0200 Received: (from hannu@localhost) by fuji.krosing.net (8.12.7/8.12.7/Submit) id h2DMQKZl002065; Fri, 14 Mar 2003 00:26:20 +0200 X-Authentication-Warning: fuji.krosing.net: hannu set sender to hannu@tm.ee using -f Subject: Re: Postgresql performance From: Hannu Krosing To: Enix Empreendimentos e =?ISO-8859-1?Q?Constru=E7=F5es?= "Ltda." Cc: pgsql-performance@postgresql.org In-Reply-To: <000701c2e8d8$95637b60$02ada8c0@enix> References: <000701c2e8d8$95637b60$02ada8c0@enix> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Organization: Message-Id: <1047594379.1709.98.camel@fuji.krosing.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-1) Date: 14 Mar 2003 00:26:20 +0200 X-Archive-Number: 200303/97 X-Sequence-Number: 1395 Enix Empreendimentos e Constru=E7=F5es Ltda. kirjutas K, 12.03.2003 kell 22:47: > Hi everybody. >=20 > I am a newbie to Postgresql, trying to migrate an application from MSAcce= ss. >=20 > I am quite dissapointed with the problems I am facing with some queries > containing multiple joins. Postgres currently does *not* optimize join order for explicit joins (this is currently left as a cludge for users to hand-optimize query plans). To get the benefits form optimiser you have to rewrite FROM TA JOIN TB ON TA.CB=3DTB.CB to=20 FROM A,B WHERE TA.CB=3DTB.CB > I confess it has been hard for someone that is > not a DBA to figure out which are the problems. Just to ilustrate, I have > some queries that provide a reasonable query plan (at least from my point= of > view), but that return no result: keep running on and on. Could you try to explain it in other words (or give an example). I am not native english speaker and I can read your text in at least 5 different ways ;( > Is the performance of the mentioned Postgresql version much slower than t= he > 7.3.1? It can be slower. It may also be a little faster in some very specific cases ;) -------------- Hannu