pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: gzh <gzhcoder@126.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to improve the performance of my SQL query?
Date: Mon, 24 Jul 2023 17:58:50 +0200
Message-ID: <ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at> (raw)
In-Reply-To: <66883f7d.6d50.189875236b2.Coremail.gzhcoder@126.com>
References: <6212ea1b.425b.1897221c3cc.Coremail.gzhcoder@126.com>
	<369ee851ef59bc84190f1631219b5a0c8f7907e9.camel@cybertec.at>
	<1937d056.71e9.18973a752d0.Coremail.gzhcoder@126.com>
	<ea3893a955f4ae396efb05260bfab056f027fcf9.camel@cybertec.at>
	<6f3fd2f9.12b3.189761e1ccc.Coremail.gzhcoder@126.com>
	<4ae89a642b8ee57b8fdcd2f6e106aadc1eb60a4b.camel@cybertec.at>
	<66883f7d.6d50.189875236b2.Coremail.gzhcoder@126.com>

On Mon, 2023-07-24 at 17:54 +0800, gzh wrote:
> EXPLAIN (ANALYZE ON, VERBOSE ON, COSTS ON, BUFFERS ON) 

I asked for EXPLAIN (ANALYZE, BUFFERS, SETTINGS) ...
Or do you have a version that is too old for SETTINGS?

One other idea: check if the index is INVALID (this will
be visible if you run "\d tablenane" in "psql").
Invalid indexes won't be used.

Yours,
Laurenz Albe





view thread (17+ messages)  latest in thread

Message-ID: <ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at>
Permalink:  ../ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at/
Also on:    postgresql.org/message-id/ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at

 · 

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-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, gzhcoder@126.com
  Subject: Re: How to improve the performance of my SQL query?
  In-Reply-To: <ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at>
  References: <6212ea1b.425b.1897221c3cc.Coremail.gzhcoder@126.com> <369ee851ef59bc84190f1631219b5a0c8f7907e9.camel@cybertec.at> <1937d056.71e9.18973a752d0.Coremail.gzhcoder@126.com> <ea3893a955f4ae396efb05260bfab056f027fcf9.camel@cybertec.at> <6f3fd2f9.12b3.189761e1ccc.Coremail.gzhcoder@126.com> <4ae89a642b8ee57b8fdcd2f6e106aadc1eb60a4b.camel@cybertec.at> <66883f7d.6d50.189875236b2.Coremail.gzhcoder@126.com> <ca1e00239309c95c63157941facdbb4b80a798da.camel@cybertec.at>

* 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