pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: dclements89@gmail.com
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Fwd: Help required on query performance
Date: Sun, 31 Jan 2010 17:54:51 -0700
Message-ID: <dcc563d11001311654j4e09a853p9b8f46b0312ba2ad@mail.gmail.com> (raw)
In-Reply-To: <1f30b80c1001311650q264dfda0uf9894cac3b9e0c3e@mail.gmail.com>
References: <1f30b80c1001290049ub864091r8298fca3daa0eb69@mail.gmail.com>
	<1f30b80c1001311650q264dfda0uf9894cac3b9e0c3e@mail.gmail.com>

On Sun, Jan 31, 2010 at 5:50 PM, Dave Clements <dclements89@gmail.com> wrote:
> Hello, I have this query in my system which takes around 2.5 seconds
> to run. I have diagnosed that the problem is actually a hashjoin on
> perm and s_ast_role tables. Is there a way I can avoid that join? I
> just want to change the
> query and no environment change.

What does

explain analyze select ... (rest of your query)

say?



view thread (10+ messages)  latest in thread

Message-ID: <dcc563d11001311654j4e09a853p9b8f46b0312ba2ad@mail.gmail.com>
Permalink:  ../dcc563d11001311654j4e09a853p9b8f46b0312ba2ad@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d11001311654j4e09a853p9b8f46b0312ba2ad@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, dclements89@gmail.com
  Subject: Re: Fwd: Help required on query performance
  In-Reply-To: <dcc563d11001311654j4e09a853p9b8f46b0312ba2ad@mail.gmail.com>

* 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