Re: I don't understand that EXPLAIN PLAN timings

From: Jean-Christophe Boggio <postgresql(at)thefreecat(dot)org>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: I don't understand that EXPLAIN PLAN timings
Date: 2024-01-25 13:31:17
Message-ID: 0f1acdd6-1d6a-44bc-80a1-fde4c55c5263@thefreecat.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hello David,

Thanks for your answer.

Le 23/01/2024 à 11:41, David Rowley a écrit :
> If you're using psql, if you do \timing on, how long does EXPLAIN take
> without ANALYZE? That also goes through executor startup and shutdown.

You are absolutely correct : the EXPLAIN without ANALYZE gives about the
same results. Also, minimizing the amount of workmem in postgresql.conf
changes drastically the timings. So that means memory allocation is
eating up a lot of time _PER_QUERY_ ?

Since we have quite some RAM on our machines, I dedicated as much as
possible to workmem (initially I was allocating 1GB) but this looks
quite counterproductive (I didn't think that memory was allocated every
time, I thought it was "available" for the current query but not
necessarily used). Is this an issue specific to that version of
PostgreSQL? (I guess no) Or can this be hardware-related? Or OS-related
(both systems on which I have done tests are running Ubuntu, I will try
on Debian)?

Thanks again for your inputs.

Best,

JC

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Rowley 2024-01-25 21:11:46 Re: I don't understand that EXPLAIN PLAN timings
Previous Message David Rowley 2024-01-23 10:41:34 Re: I don't understand that EXPLAIN PLAN timings