forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ae578a
committed
Set fallback_application_name for a walreceiver to cluster_name
By default, the fallback_application_name for a physical walreceiveris "walreceiver". This means that multiple standbys cannot bedistinguished easily on a primary, for example in pg_stat_activity orsynchronous_standby_names.If cluster_name is set, use that for fallback_application_name in thewalreceiver. (If it's not set, it remains "walreceiver".) If someoneset cluster_name to identify their instance, we might as well use thatby default to identify the node remotely as well. It's still possibleto specify another application_name in primary_conninfo explicitly.Reviewed-by: Euler Taveira <euler@timbira.com.br>Discussion:https://www.postgresql.org/message-id/flat/1257eaee-4874-e791-e83a-46720c72cac7@2ndquadrant.com1 parent414a9d3 commit6ae578a
File tree
2 files changed
+12
-4
lines changed- doc/src/sgml
- src/backend/replication
2 files changed
+12
-4
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3659 | 3659 |
| |
3660 | 3660 |
| |
3661 | 3661 |
| |
3662 |
| - | |
| 3662 | + | |
| 3663 | + | |
3663 | 3664 |
| |
3664 | 3665 |
| |
3665 | 3666 |
| |
| |||
6560 | 6561 |
| |
6561 | 6562 |
| |
6562 | 6563 |
| |
6563 |
| - | |
6564 |
| - | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
6565 | 6573 |
| |
6566 | 6574 |
| |
6567 | 6575 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
| 296 | + | |
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
|
0 commit comments
Comments
(0)