git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 138531f) | patch
Remove code duplication for permission checks with replication slots
2021年9月14日 01:15:49 +0000 (10:15 +0900)
2021年9月14日 01:15:49 +0000 (10:15 +0900)
commit 026ed8efd6b1d774924937baf3209b676df4531f
Remove code duplication for permission checks with replication slots

Two functions, both named check_permissions(), used the same checks to
verify if a user had required privileges to work on replication slots.
This commit removes the duplication, and moves the function doing the
checks to slot.c to be centralized.

Author: Bharath Rupireddy
Reviewed-by: Nathan Bossart, Euler Taveira
Discussion: https://postgr.es/m/CALj2ACUPpVw1u7sQocFVWrSs0n10pt_G_4NPZKSxXK6cW1dErw@mail.gmail.com
src/backend/replication/logical/logicalfuncs.c diff | blob | blame | history
src/backend/replication/slot.c diff | blob | blame | history
src/backend/replication/slotfuncs.c diff | blob | blame | history
src/include/replication/slot.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /