From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, Fujii Masao <fujii(at)postgresql(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgsql: Include information on buffer usage during planning phase, in EX |
Date: | 2020-04-03 15:34:23 |
Message-ID: | 8867.1585928063@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2020-04-03 15:54:40 | Re: pgsql: pg_waldump: Add a --quiet option. |
Previous Message | Tom Lane | 2020-04-03 15:25:16 | pgsql: Fix bogus CALLED_AS_TRIGGER() defenses. |