Re: problem with query - Mailing list pgsql-general

From David Rowley
Subject Re: problem with query
Date
Msg-id CAApHDvq=sj+vVQ6HKOdNLeWbQnHErg5QPSz26s0a90PtY1NLdw@mail.gmail.com
Whole thread Raw
In response to problem with query  (Sašo Gantar <sasog23@gmail.com>)
Responses Re: problem with query
Re: problem with query
List pgsql-general
On Wed, 15 May 2024 at 21:08, Sašo Gantar <sasog23@gmail.com> wrote:
> this query takes more than 8 seconds,
> if i remove "AND ((pgn.nspname='servicedesk'))" and test it, it takes <1s

Including the EXPLAIN rather than EXPLAIN (ANALYZE, BUFFERS) isn't
very useful as there's no way to tell if the planner's estimates were
accurate or not. Also with EXPLAIN only, we don't know where the time
was spent in the query.

Running the EXPLAIN with "SET track_io_timing = 1;" would be even more useful.

David



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Sequence values change during upgrade
Next
From: Danut Soare
Date:
Subject: Re: Sequence values change during upgrade