Re: pgsql: Include information on buffer usage during planning phase, in EX - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Include information on buffer usage during planning phase, in EX
Date
Msg-id 8867.1585928063@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Include information on buffer usage during planning phase,in EX  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: pgsql: Include information on buffer usage during planning phase,in EX  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-committers
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



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix bogus CALLED_AS_TRIGGER() defenses.
Next
From: Robert Haas
Date:
Subject: Re: pgsql: pg_waldump: Add a --quiet option.