aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regcomp.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 12:18:27 +0200
commitb94409a02f6122d77b5154e481c0819fed6b4c95 (patch)
treeef9754045429b159a6b9d3384ca1d25331b05415 /src/backend/regex/regcomp.c
parentc285babf8f44d86b7fd1e73e9e4f94456b825bfb (diff)
downloadpostgresql-b94409a02f6122d77b5154e481c0819fed6b4c95.tar.gz
postgresql-b94409a02f6122d77b5154e481c0819fed6b4c95.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/regex/regcomp.c')
0 files changed, 0 insertions, 0 deletions