mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Minimize user permissions requirements for replication slots
Enable operations which create or drop replication slots to be carried out with the minimum necessary user permissions, i.e. a user with the REPLICATION attribute. This can be the repmgr user, or a dedicated replication user. In the latter case, if the dedicated replication user is only permitted to make replication connections, the streaming replication protocol is used to create/drop slots. Implements part of GitHub #536.
This commit is contained in:
@@ -19,14 +19,6 @@
|
||||
#ifndef _REPMGR_ACTION_STANDBY_H_
|
||||
#define _REPMGR_ACTION_STANDBY_H_
|
||||
|
||||
typedef enum
|
||||
{
|
||||
REPMGR_USER = 0,
|
||||
REPLICATION_USER,
|
||||
REPLICATION_PROTOCOL_USER,
|
||||
SUPERUSER
|
||||
} t_user_type;
|
||||
|
||||
extern void do_standby_clone(void);
|
||||
extern void do_standby_register(void);
|
||||
extern void do_standby_unregister(void);
|
||||
|
||||
Reference in New Issue
Block a user