forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2432b1a
committed
Avoid spamming the client with multiple ParameterStatus messages.
Up to now, we sent a ParameterStatus message to the client immediatelyupon any change in the active value of any GUC_REPORT variable. Thiswas only barely okay when the feature was designed; now that we havethings like function SET clauses, there are very plausible use-caseswhere a GUC_REPORT variable might change many times within a query--- and even end up back at its original value, perhaps. Fortunatelymost of our GUC_REPORT variables are unlikely to be changed often;but there are proposals in play to enlarge that set, or even make ituser-configurable.Hence, let's fix things to not generate more than one ParameterStatusmessage per variable per query, and to not send any message at allunless the end-of-query value is different from what we last reported.Discussion:https://postgr.es/m/5708.1601145259@sss.pgh.pa.us1 parentf739992 commit2432b1a
File tree
4 files changed
+80
-7
lines changed- src
- backend
- tcop
- utils/misc
- include/utils
4 files changed
+80
-7
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4229 | 4229 |
| |
4230 | 4230 |
| |
4231 | 4231 |
| |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
4232 | 4235 |
| |
4233 | 4236 |
| |
4234 | 4237 |
| |
|
Lines changed: 72 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4822 | 4822 |
| |
4823 | 4823 |
| |
4824 | 4824 |
| |
| 4825 | + | |
| 4826 | + | |
4825 | 4827 |
| |
4826 | 4828 |
| |
4827 | 4829 |
| |
| |||
5452 | 5454 |
| |
5453 | 5455 |
| |
5454 | 5456 |
| |
| 5457 | + | |
5455 | 5458 |
| |
5456 | 5459 |
| |
5457 | 5460 |
| |
| |||
5828 | 5831 |
| |
5829 | 5832 |
| |
5830 | 5833 |
| |
5831 |
| - | |
| 5834 | + | |
| 5835 | + | |
| 5836 | + | |
| 5837 | + | |
5832 | 5838 |
| |
5833 | 5839 |
| |
5834 | 5840 |
| |
| |||
6215 | 6221 |
| |
6216 | 6222 |
| |
6217 | 6223 |
| |
6218 |
| - | |
| 6224 | + | |
| 6225 | + | |
| 6226 | + | |
| 6227 | + | |
6219 | 6228 |
| |
6220 | 6229 |
| |
6221 | 6230 |
| |
| |||
6257 | 6266 |
| |
6258 | 6267 |
| |
6259 | 6268 |
| |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
| 6272 | + | |
| 6273 | + | |
| 6274 | + | |
| 6275 | + | |
| 6276 | + | |
| 6277 | + | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
| 6281 | + | |
| 6282 | + | |
| 6283 | + | |
| 6284 | + | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
| 6301 | + | |
| 6302 | + | |
| 6303 | + | |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
6260 | 6307 |
| |
6261 | 6308 |
| |
6262 | 6309 |
| |
6263 | 6310 |
| |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
6264 | 6314 |
| |
6265 | 6315 |
| |
6266 | 6316 |
| |
6267 | 6317 |
| |
6268 |
| - | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
| 6321 | + | |
6269 | 6322 |
| |
6270 |
| - | |
6271 | 6323 |
| |
6272 | 6324 |
| |
6273 | 6325 |
| |
6274 | 6326 |
| |
6275 | 6327 |
| |
6276 | 6328 |
| |
6277 | 6329 |
| |
6278 |
| - | |
| 6330 | + | |
| 6331 | + | |
| 6332 | + | |
| 6333 | + | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
6279 | 6338 |
| |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
6280 | 6343 |
| |
6281 | 6344 |
| |
6282 | 6345 |
| |
| |||
7695 | 7758 |
| |
7696 | 7759 |
| |
7697 | 7760 |
| |
7698 |
| - | |
| 7761 | + | |
| 7762 | + | |
| 7763 | + | |
| 7764 | + | |
7699 | 7765 |
| |
7700 | 7766 |
| |
7701 | 7767 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
| 366 | + | |
366 | 367 |
| |
367 | 368 |
| |
368 | 369 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
| 164 | + | |
| 165 | + | |
164 | 166 |
| |
165 | 167 |
| |
166 | 168 |
| |
| |||
172 | 174 |
| |
173 | 175 |
| |
174 | 176 |
| |
175 |
| - | |
| 177 | + | |
| 178 | + | |
176 | 179 |
| |
177 | 180 |
| |
178 | 181 |
| |
|
0 commit comments
Comments
(0)