Re: pgbench - use pg logging capabilities

Michael Paquier <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.general
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl4V40gACgkQnvQgOdby
QH0WQg//WKV9LS07wG4LWgnj673CPy9ETD9P/6LyYw8BpKcnbpqA/Gif6q+k9JTP
QG4aIRNm8/FLXZc1IdKgMygLO97PjTUzG+YN9hIP1l1rz2d8vKWeloMF2GBj8OQs
9uFjiD3oWhqf2u+GYa9/YszbIjcu1ICqE9Pw9xeTpNXCysT0B6YABXUQb7OKDLHC
ZAygZ2+QF5yAUApIKKiDivvUZRa6UVwOAH7Dwr5q6XbTv+CvoYkXsugOdyTx+hR6
JHPHMpkJWZKvZTixAoFNarbm3xMzGib15mNzRgjypylG4pWvmCF5ZCY4VqqN2pYp
tNXm+FHaN7YuqrZKc3RvYBCNSnOk+JrUzFPoFQ61P4yJTdWSq1Csdx6Y6V/t1RmT
V2szrQ5WUh3BcIUtUl5bz0aMJrLThhP5asf6lYTVtknWgIzx7xSAyhd55/RHMwmS
HHQJZ0BXXYzFQAaTKHmeEdzOYsRma35pkmSpgAwFs1S5b9HNtC1DluUYWqgdAqfl
4TFRG+skH8Pk9tTonsa42QG7Yet8UAdnylv4mwkIuoG5ncs5z/BRn5hb0stQPIw+
6OMmo5gWsq/vtxSTKhlW95QGeC76fOjyEUGhvHMjMxFFcU3IM/XhNc3e41OBb6os
A4En13srkYwDpNDRtZUw9mj+NOnSxziBPUxc8OEhSvoZbhdXchw=
=2bJA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.