aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayutils.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-05-03 12:11:33 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-05-03 21:01:09 +0200
commite48ce7ef0ef8de3d8e9e56be4d23d7830681b18b (patch)
treef0ac89d4b1ec37aa4948218a5ca89a931f7af6b8 /src/backend/utils/adt/arrayutils.c
parent3eeadc425ccf30d5738bb1204adb2e50a8bea8c1 (diff)
downloadpostgresql-e48ce7ef0ef8de3d8e9e56be4d23d7830681b18b.tar.gz
postgresql-e48ce7ef0ef8de3d8e9e56be4d23d7830681b18b.zip
Prevent lwlock dtrace probes from unnecessary work
If dtrace is compiled in but disabled, the lwlock dtrace probes still evaluate their arguments. Since PostgreSQL 13, T_NAME(lock) does nontrivial work, so it should be avoided if not needed. To fix, make these calls conditional on the *_ENABLED() macro corresponding to each probe. Reviewed-by: Craig Ringer <craig.ringer@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/CAGRY4nwxKUS_RvXFW-ugrZBYxPFFM5kjwKT5O+0+Stuga5b4+Q@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions