diff options
| author | Fujii Masao | 2014-09-12 17:55:45 +0000 |
|---|---|---|
| committer | Fujii Masao | 2014-09-12 17:55:45 +0000 |
| commit | 4ad2a548050fdde07fed93e6c60a4d0a7eba0622 (patch) | |
| tree | 6cb44928047a8209ddbb5e34b9f76edd2ea31353 /src/include | |
| parent | a2dabf0e1dda93c860b10bff7b73617e7b090108 (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/replication/walsender.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/replication/walsender.h b/src/include/replication/walsender.h index cff2be6d8f..d091e0f6d0 100644 --- a/src/include/replication/walsender.h +++ b/src/include/replication/walsender.h @@ -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); |
