Re: How to optimize monstrous query, sorts instead of - Mailing list pgsql-performance

From SZUCS Gábor
Subject Re: How to optimize monstrous query, sorts instead of
Date
Msg-id 009401c33b25$08520e90$0403a8c0@fejleszt4
Whole thread Raw
In response to Re: How to optimize monstrous query, sorts instead of  ("Michael Mattox" <michael.mattox@verideon.com>)
List pgsql-performance
Michael,

Actually, you missed an alias :) the select now returned 800k rows!
(according to explain)

pointed it out below. See my prev mail for more.

If it's possible, try your query on a backend and look for notices like
"Adding missing FROM clause for table ..."

G.
------------------------------- cut here -------------------------------
----- Original Message -----
From: "Michael Mattox" <michael.mattox@verideon.com>
Cc: "Postgresql Performance" <pgsql-performance@postgresql.org>
Sent: Wednesday, June 25, 2003 4:09 PM


> from monitorx m, monitorstatusx ms, monitorstatusitemx msi
> where m.idx = 'M-TEST_1444-TEST_00_10560561260561463219352' AND
> monitorx.jdoidx = ms.monitorx AND
  ^^^^^^^^
  substitute the same alias "m" here.



pgsql-performance by date:

Previous
From: Rod Taylor
Date:
Subject: Re: How to optimize monstrous query, sorts instead of
Next
From: "Michael Mattox"
Date:
Subject: Re: How to optimize monstrous query, sorts instead of using index