- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4ad2a54
committed
Add GUC to enable logging of replication commands.
Previously replication commands like IDENTIFY_COMMAND were not loggedeven when log_statements is set to all. Some users who want to auditall types of statements were not satisfied with this situation. Toaddress 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 loggedwhen it's set to all. But per discussion in the community, we reachedthe consensus to add separate GUC for that.Reviewed by Ian Barwick, Robert Haas and Heikki Linnakangas.1 parenta2dabf0 commit4ad2a54
File tree
6 files changed
+38
-2
lines changed- doc/src/sgml
- src
- backend
- replication
- utils/misc
- include/replication
6 files changed
+38
-2
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4672 | 4672 |
| |
4673 | 4673 |
| |
4674 | 4674 |
| |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
4675 | 4691 |
| |
4676 | 4692 |
| |
4677 | 4693 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1306 | 1306 |
| |
1307 | 1307 |
| |
1308 | 1308 |
| |
| 1309 | + | |
| 1310 | + | |
1309 | 1311 |
| |
1310 | 1312 |
| |
1311 | 1313 |
| |
|
Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
| 111 | + | |
111 | 112 |
| |
112 | 113 |
| |
113 | 114 |
| |
| |||
1267 | 1268 |
| |
1268 | 1269 |
| |
1269 | 1270 |
| |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1270 | 1279 |
| |
1271 | 1280 |
| |
1272 | 1281 |
| |
1273 | 1282 |
| |
1274 | 1283 |
| |
1275 | 1284 |
| |
1276 |
| - | |
1277 |
| - | |
1278 | 1285 |
| |
1279 | 1286 |
| |
1280 | 1287 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
927 | 936 |
| |
928 | 937 |
| |
929 | 938 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
431 | 431 |
| |
432 | 432 |
| |
433 | 433 |
| |
| 434 | + | |
434 | 435 |
| |
435 | 436 |
| |
436 | 437 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
|
0 commit comments
Comments
(0)