pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Emit dummy statements for probes.d probes when disabled
2+ messages / 1 participants
[nested] [flat]
* pgsql: Emit dummy statements for probes.d probes when disabled
@ 2021-05-10 09:41 Peter Eisentraut <peter@eisentraut.org>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2021-05-10 09:41 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Emit dummy statements for probes.d probes when disabled
When building without --enable-dtrace, emit dummy
do {} while (0)
statements for the stubbed-out TRACE_POSTGRESQL_foo() macros
instead of empty macros that totally elide the original probe
statement.
This fixes the
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
introduced by b94409a02f.
Author: Craig Ringer <craig.ringer@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/20210504221531.cfvpmmdfsou6eitb%40alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fa8fbadb934b4727a7aeff074995e799f4685a75
Modified Files
--------------
src/backend/utils/Gen_dummy_probes.pl | 6 ++++++
src/backend/utils/Gen_dummy_probes.sed | 1 +
2 files changed, 7 insertions(+)
^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Emit dummy statements for probes.d probes when disabled
@ 2021-05-10 11:58 Peter Eisentraut <peter@eisentraut.org>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2021-05-10 11:58 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Emit dummy statements for probes.d probes when disabled
When building without --enable-dtrace, emit dummy
do {} while (0)
statements for the stubbed-out TRACE_POSTGRESQL_foo() macros
instead of empty macros that totally elide the original probe
statement.
This fixes the
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
introduced by b94409a02f.
Author: Craig Ringer <craig.ringer@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/20210504221531.cfvpmmdfsou6eitb%40alap3.anarazel.de
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0d204a4b09f74f2c2ca0d099d5a44ce422d6978d
Modified Files
--------------
src/backend/utils/Gen_dummy_probes.pl | 6 ++++++
src/backend/utils/Gen_dummy_probes.sed | 1 +
2 files changed, 7 insertions(+)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-05-10 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 09:41 pgsql: Emit dummy statements for probes.d probes when disabled Peter Eisentraut <peter@eisentraut.org>
2021-05-10 11:58 pgsql: Emit dummy statements for probes.d probes when disabled Peter Eisentraut <peter@eisentraut.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox