mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Add REPLICATION privilege for ROLEs
This privilege is required to do Streaming Replication, instead of superuser, making it possible to set up a SR slave that doesn't have write permissions on the master. Superuser privileges do NOT override this check, so in order to use the default superuser account for replication it must be explicitly granted the REPLICATION permissions. This is backwards incompatible change, in the interest of higher default security.
This commit is contained in:
@@ -357,6 +357,7 @@ extern void ValidatePgVersion(const char *path);
|
||||
extern void process_shared_preload_libraries(void);
|
||||
extern void process_local_preload_libraries(void);
|
||||
extern void pg_bindtextdomain(const char *domain);
|
||||
extern bool is_authenticated_user_replication_role(void);
|
||||
|
||||
/* in access/transam/xlog.c */
|
||||
extern bool BackupInProgress(void);
|
||||
|
Reference in New Issue
Block a user