Re: How to improve the performance of my SQL query? - Mailing list pgsql-general

From Laurenz Albe
Subject Re: How to improve the performance of my SQL query?
Date
Msg-id d259568d9c49183bd40e9b2d7272e8f301b129ef.camel@cybertec.at
Whole thread Raw
In response to Re: How to improve the performance of my SQL query?  (gzh <gzhcoder@126.com>)
List pgsql-general
On Tue, 2023-07-25 at 11:11 +0800, gzh wrote:
> > I asked for EXPLAIN (ANALYZE, BUFFERS, SETTINGS) ...
> > Or do you have a version that is too old for SETTINGS?
> Sorry. Please refer to the following execution plan.
>
> [...]
> Settings: effective_cache_size = '1886088kB', jit = 'off', search_path = '"$user", mdb'
> [...]

No unusual settings.  So that theory is dead.

> > 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.

Did you check that?

After that, I am out of ideas.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: gzh
Date:
Subject: Re: How to improve the performance of my SQL query?
Next
From: Laurenz Albe
Date:
Subject: Re: Setting Auto Commit off in C API