forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit108505d
committed
Prevent memory context logging from sending log message to connected client.
When pg_log_backend_memory_contexts() is executed, the target backendshould use LOG_SERVER_ONLY to log its memory contexts, to prevent themfrom being sent to its connected client regardless of client_min_messages.But previously the backend unexpectedly used LOG to log the message"logging memory contexts of PID %d" and it could be sent to the client.This is a bug in memory context logging.To fix the bug, this commit changes that message so that it's logged withLOG_SERVER_ONLY.Back-patch to v14 where pg_log_backend_memory_contexts() was added.Author: Fujii MasaoReviewed-by: Bharath Rupireddy, Atsushi TorikoshiDiscussion:https://postgr.es/m/82c12f36-86f7-5e72-79af-7f5c37f6cad7@oss.nttdata.com1 parent7340ace commit108505d
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1042 | 1042 |
| |
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 |
| - | |
1046 |
| - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1047 | 1053 |
| |
1048 | 1054 |
| |
1049 | 1055 |
| |
|
0 commit comments
Comments
(0)