Re: pgbench - use pg logging capabilities
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-01-08T14:12:24Z
Lists: pgsql-hackers
On Wed, Jan 08, 2020 at 02:27:46PM +0100, Peter Eisentraut wrote:
> Committed.
That was fast.
- if (debug)
+ if (unlikely(__pg_log_level <= PG_LOG_DEBUG))
{
I am surprised that you kept this one, while syntax_error() has been
changed in a more modular way.
--
Michael
Commits
-
pgbench: Make more debug messages use common logging API
- 39a5f2a94f8a 13.0 landed
-
pgbench: Use common logging API
- 30a3e772b401 13.0 landed