pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: SZUCS Gábor <surrano@mailbox.hu>
To: pgsql-performance@postgresql.org
Subject: Re: How to optimize monstrous query, sorts instead of
Date: Wed, 25 Jun 2003 16:20:32 +0200
Message-ID: <009401c33b25$08520e90$0403a8c0@fejleszt4> (raw)
References: <CJEBLDCHAADCLAGIGCOOKEKGCKAA.michael.mattox@verideon.com>

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.





view thread (20+ messages)  latest in thread

Message-ID: <009401c33b25$08520e90$0403a8c0@fejleszt4>
Permalink:  ../009401c33b25$08520e90$0403a8c0@fejleszt4/
Also on:    postgresql.org/message-id/009401c33b25$08520e90$0403a8c0@fejleszt4

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: surrano@mailbox.hu
  Subject: Re: How to optimize monstrous query, sorts instead of
  In-Reply-To: <009401c33b25$08520e90$0403a8c0@fejleszt4>
  References: <CJEBLDCHAADCLAGIGCOOKEKGCKAA.michael.mattox@verideon.com> <009401c33b25$08520e90$0403a8c0@fejleszt4>

* 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