pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: 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, 03 Apr 2020 11:34:23 -0400
Message-ID: <8867.1585928063@sss.pgh.pa.us> (raw)
In-Reply-To: <4e46867d-7183-ef3c-5299-755b4396e96c@oss.nttdata.com>
References: <E1jKC4J-0007R3-Bo@gemulon.postgresql.org>
	<20200403025751.GB1759@paquier.xyz>
	<0fa34bc8-479e-61e8-94c0-9cdbc34ea0bb@oss.nttdata.com>
	<23095.1585884653@sss.pgh.pa.us>
	<4ecdae9c-fa0b-17b6-9166-0a45c396da22@oss.nttdata.com>
	<20577.1585920933@sss.pgh.pa.us>
	<1c26658b-fb09-3c4c-2eff-a61e86ab5316@oss.nttdata.com>
	<32174.1585925727@sss.pgh.pa.us>
	<4e46867d-7183-ef3c-5299-755b4396e96c@oss.nttdata.com>

Fujii Masao <masao.fujii@oss.nttdata.com> writes:
> Attached is the patch that changes explain.c as follows (i.e., removes
> Buffers lines at all) to make it more stable.

>           ln := regexp_replace(ln, '\m\d+\M', 'N', 'g');
>           -- In sort output, the above won't match units-suffixed numbers
>           ln := regexp_replace(ln, '\m\d+kB', 'NkB', 'g');
> -        -- Text-mode buffers output varies depending on the system state
> -        ln := regexp_replace(ln, '^( +Buffers: shared)( hit=N)?( read=N)?', '\1 [read]');
> +        -- Ignore text-mode buffers output because it varies depending
> +        -- on the system state
> +        CONTINUE WHEN (ln ~ ' +Buffers: .*');
>           return next ln;
>       end loop;
>   end;

Works for me.

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <8867.1585928063@sss.pgh.pa.us>
Permalink:  ../8867.1585928063@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8867.1585928063@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, masao.fujii@oss.nttdata.com, michael@paquier.xyz, fujii@postgresql.org
  Subject: Re: pgsql: Include information on buffer usage during planning phase, in EX
  In-Reply-To: <8867.1585928063@sss.pgh.pa.us>
  References: <E1jKC4J-0007R3-Bo@gemulon.postgresql.org> <20200403025751.GB1759@paquier.xyz> <0fa34bc8-479e-61e8-94c0-9cdbc34ea0bb@oss.nttdata.com> <23095.1585884653@sss.pgh.pa.us> <4ecdae9c-fa0b-17b6-9166-0a45c396da22@oss.nttdata.com> <20577.1585920933@sss.pgh.pa.us> <1c26658b-fb09-3c4c-2eff-a61e86ab5316@oss.nttdata.com> <32174.1585925727@sss.pgh.pa.us> <4e46867d-7183-ef3c-5299-755b4396e96c@oss.nttdata.com> <8867.1585928063@sss.pgh.pa.us>

* 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