pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: wangqi@edgesoft.cn
To: pgsql-admin@postgresql.org
Subject: Re: a very slow SQL
Date: Mon, 25 Jun 2012 05:56:42 -0500
Message-ID: <4FE7FD9A0200002500048A5A@gw.wicourts.gov> (raw)

wangqi  wrote:
 
> An SQL execution is very slow.
> What can I do to makes it faster。
 
Without knowing more about the version of PostgreSQL, your PostgreSQL
configuration, your schema (including indexes), and your hardware,
it's hard to give advice.
 
http://wiki.postgresql.org/wiki/SlowQueryQuestions
 
A wild guess on the evidence we have is that you might benefit from
an index on MCL.ctid if you don't already have one.
 
-Kevin



view thread (3+ messages)  latest in thread

Message-ID: <4FE7FD9A0200002500048A5A@gw.wicourts.gov>
Permalink:  ../4FE7FD9A0200002500048A5A@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4FE7FD9A0200002500048A5A@gw.wicourts.gov

 · 

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-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, wangqi@edgesoft.cn
  Subject: Re: a very slow SQL
  In-Reply-To: <4FE7FD9A0200002500048A5A@gw.wicourts.gov>
  References: <4FE7FD9A0200002500048A5A@gw.wicourts.gov>

* 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