Re: pgbench - use pg logging capabilities

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgbench - use pg logging capabilities
Date: 2020-01-10 00:27:42
Message-ID: 20200110002742.GA26712@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 2020-Jan-09, Fabien COELHO wrote:

> - if (unlikely(__pg_log_level <= PG_LOG_DEBUG))
> + if (pg_log_debug_level)
> {

Umm ... I find the original exceedingly ugly, but the new line is
totally impenetrable.

Álvaro Herrera
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-01-10 00:40:12 Re: logical decoding : exceeded maxAllocatedDescs for .spill files
Previous Message Alvaro Herrera 2020-01-10 00:22:45 Re: standby recovery fails (tablespace related) (tentative patch and discussion)