Re: problem with query

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Sašo Gantar <sasog23(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: problem with query
Date: 2024-05-15 11:23:27
Message-ID: CAApHDvq=sj+vVQ6HKOdNLeWbQnHErg5QPSz26s0a90PtY1NLdw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 15 May 2024 at 21:08, Sašo Gantar <sasog23(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Danut Soare 2024-05-15 12:17:27 Re: Sequence values change during upgrade
Previous Message Laurenz Albe 2024-05-15 11:01:30 Re: Sequence values change during upgrade