pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <fujii@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Include information on buffer usage during planning phase, in EX
Date: Fri, 3 Apr 2020 11:58:22 +0900
Message-ID: <20200403025751.GB1759@paquier.xyz> (raw)
In-Reply-To: <E1jKC4J-0007R3-Bo@gemulon.postgresql.org>
References: <E1jKC4J-0007R3-Bo@gemulon.postgresql.org>

Hi Fujii-san,

On Fri, Apr 03, 2020 at 02:28:27AM +0000, Fujii Masao wrote:
> Include information on buffer usage during planning phase, in EXPLAIN output.
> 
> When BUFFERS option is enabled, EXPLAIN command includes the information
> on buffer usage during each plan node, in its output. In addition to that,
> this commit makes EXPLAIN command include also the information on
> buffer usage during planning phase, in its output. This feature makes it
> easier to discern the cases where lots of buffer access happen during
> planning.

prion did not like that:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2020-04-03%2002%3A33%3A13

Here is the diff from test explain:
@@ -73,8 +73,9 @@
  Seq Scan on int8_tbl i8  (cost=N.N..N.N rows=N width=N) (actual time=N.N..N.N rows=N loops=N)
    Buffers: shared [read]
  Planning Time: N.N ms
+   Buffers: shared [read]
  Execution Time: N.N ms
-(4 rows)
+(5 rows)

Note that this animal uses -DRELCACHE_FORCE_RELEASE and
-DCATCACHE_FORCE_RELEASE.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (18+ messages)  latest in thread

Message-ID: <20200403025751.GB1759@paquier.xyz>
Permalink:  ../20200403025751.GB1759@paquier.xyz/
Also on:    postgresql.org/message-id/20200403025751.GB1759@paquier.xyz

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz, fujii@postgresql.org
  Subject: Re: pgsql: Include information on buffer usage during planning phase, in EX
  In-Reply-To: <20200403025751.GB1759@paquier.xyz>
  References: <E1jKC4J-0007R3-Bo@gemulon.postgresql.org> <20200403025751.GB1759@paquier.xyz>

* 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