diff options
| author | Michael Paquier | 2021-09-14 01:15:49 +0000 |
|---|---|---|
| committer | Michael Paquier | 2021-09-14 01:15:49 +0000 |
| commit | 026ed8efd6b1d774924937baf3209b676df4531f (patch) | |
| tree | 6c24ca0779fd43ffad7370df62b8b3a5d86068cf /src/include | |
| parent | 138531f1bbc333745bd8422371c07e7e108d5528 (diff) | |
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
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/replication/slot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h index e32fb85db8e..53d773ccffe 100644 --- a/src/include/replication/slot.h +++ b/src/include/replication/slot.h @@ -222,5 +222,6 @@ extern void StartupReplicationSlots(void); extern void CheckPointReplicationSlots(void); extern void CheckSlotRequirements(void); +extern void CheckSlotPermissions(void); #endif /* SLOT_H */ |
