mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add GUC to enable logging of replication commands.
Previously replication commands like IDENTIFY_COMMAND were not logged even when log_statements is set to all. Some users who want to audit all types of statements were not satisfied with this situation. To address the problem, this commit adds new GUC log_replication_commands. If it's enabled, all replication commands are logged in the server log. There are many ways to allow us to enable that logging. For example, we can extend log_statement so that replication commands are logged when it's set to all. But per discussion in the community, we reached the consensus to add separate GUC for that. Reviewed by Ian Barwick, Robert Haas and Heikki Linnakangas.
This commit is contained in:
@@ -25,6 +25,7 @@ extern bool wake_wal_senders;
|
||||
/* user-settable parameters */
|
||||
extern int max_wal_senders;
|
||||
extern int wal_sender_timeout;
|
||||
extern bool log_replication_commands;
|
||||
|
||||
extern void InitWalSender(void);
|
||||
extern void exec_replication_command(const char *query_string);
|
||||
|
Reference in New Issue
Block a user