aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/commit_ts.h
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-11-28 08:35:50 +0900
committerMichael Paquier <michael@paquier.xyz>2023-11-28 08:35:50 +0900
commit14f2f9eb1a15f234f1ef417b8e62a6b7f950be4d (patch)
treed2be134739afc0526f402f3f047bb0d4e83b8eaf /src/include/access/commit_ts.h
parent930d2b442ff12e6d466a8c62cecdf3f17680aa3e (diff)
downloadpostgresql-14f2f9eb1a15f234f1ef417b8e62a6b7f950be4d.tar.gz
postgresql-14f2f9eb1a15f234f1ef417b8e62a6b7f950be4d.zip
Add CHECK_FOR_INTERRUPTS() in scram_SaltedPassword() for the backend
scram_SaltedPassword() could take a long time to compute when the number of iterations used is large enough, and this code uses a tight loop to compute a salted password. Note that the same issue exists in libpq when using \password and a large iteration number, but this cannot be interrupted. A CFI in the backend is useful for server-side computations, at least. Backpatch down to 16, where the user-settable GUC scram_iterations has been added. Author: Bowen Shi Reviewed-by: Aleksander Alekseev, Daniel Gustafsson Discussion: https://postgr.es/m/CAM_vCueV6xfr08KczfaCEk5J_qeTZtgqN7+orkNLx=g+phE82Q@mail.gmail.com Backpatch-through: 16
Diffstat (limited to 'src/include/access/commit_ts.h')
0 files changed, 0 insertions, 0 deletions