- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit3516ea7
committed
Add local-address escape "%L" to log_line_prefix.
This escape shows the numeric server IP address that the clienthas connected to. Unix-socket connections will show "[local]".Non-client processes (e.g. background processes) will show "[none]".We expect that this option will be of interest to only a fairlysmall number of users. Therefore the implementation is optimizedfor the case where it's not used (that is, we don't do the stringconversion until we have to), and we've not added the field tocsvlog or jsonlog formats.Author: Greg Sabino Mullane <htamfids@gmail.com>Reviewed-by: Cary Huang <cary.huang@highgo.ca>Reviewed-by: David Steele <david@pgmasters.net>Reviewed-by: Jim Jones <jim.jones@uni-muenster.de>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CAKAnmmK-U+UicE-qbNU23K--Q5XTLdM6bj+gbkZBZkjyjrd3Ow@mail.gmail.com1 parent8f5e419 commit3516ea7
File tree
4 files changed
+43
-0
lines changed- doc/src/sgml
- src
- backend/utils
- error
- misc
- include/libpq
4 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7689 | 7689 | | |
7690 | 7690 | | |
7691 | 7691 | | |
| 7692 | + | |
| 7693 | + | |
| 7694 | + | |
| 7695 | + | |
| 7696 | + | |
| 7697 | + | |
7692 | 7698 | | |
7693 | 7699 | | |
7694 | 7700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
3084 | 3085 | | |
3085 | 3086 | | |
3086 | 3087 | | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
3087 | 3120 | | |
3088 | 3121 | | |
3089 | 3122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
0 commit comments
Comments
(0)