forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf68b79
committed
Refactor ps_status.c API
The init_ps_display() arguments were mostly lies by now, so to matchtypical usage, just use one argument and let the caller assemble itfrom multiple sources if necessary. The only user of the additionalarguments is BackendInitialize(), which was already doing stringassembly on the caller side anyway.Remove the second argument of set_ps_display() ("force") and justhandle that in init_ps_display() internally.BackendInitialize() also used to set the initial status as"authentication", but that was very far from where authenticationactually happened. So now it's set to "initializing" and then"authentication" just before the actual call toClientAuthentication().Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/c65e5196-4f04-4ead-9353-6088c19615a3@2ndquadrant.com1 parent899a04f commitbf68b79
File tree
19 files changed
+71
-71
lines changed- src
- backend
- access/transam
- bootstrap
- commands
- postmaster
- replication
- storage
- ipc
- lmgr
- tcop
- utils
- init
- misc
- include/utils
19 files changed
+71
-71
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3648 | 3648 |
| |
3649 | 3649 |
| |
3650 | 3650 |
| |
3651 |
| - | |
| 3651 | + | |
3652 | 3652 |
| |
3653 | 3653 |
| |
3654 | 3654 |
| |
| |||
3691 | 3691 |
| |
3692 | 3692 |
| |
3693 | 3693 |
| |
3694 |
| - | |
| 3694 | + | |
3695 | 3695 |
| |
3696 | 3696 |
| |
3697 | 3697 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
| 345 | + | |
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2225 | 2225 |
| |
2226 | 2226 |
| |
2227 | 2227 |
| |
2228 |
| - | |
| 2228 | + | |
2229 | 2229 |
| |
2230 | 2230 |
| |
2231 | 2231 |
| |
| |||
2242 | 2242 |
| |
2243 | 2243 |
| |
2244 | 2244 |
| |
2245 |
| - | |
| 2245 | + | |
2246 | 2246 |
| |
2247 | 2247 |
| |
2248 | 2248 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
437 |
| - | |
| 437 | + | |
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
| |||
1507 | 1507 |
| |
1508 | 1508 |
| |
1509 | 1509 |
| |
1510 |
| - | |
| 1510 | + | |
1511 | 1511 |
| |
1512 | 1512 |
| |
1513 | 1513 |
| |
| |||
1680 | 1680 |
| |
1681 | 1681 |
| |
1682 | 1682 |
| |
1683 |
| - | |
| 1683 | + | |
1684 | 1684 |
| |
1685 | 1685 |
| |
1686 | 1686 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
689 | 689 |
| |
690 | 690 |
| |
691 | 691 |
| |
692 |
| - | |
| 692 | + | |
693 | 693 |
| |
694 | 694 |
| |
695 | 695 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
244 |
| - | |
| 244 | + | |
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
| |||
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
587 |
| - | |
| 587 | + | |
588 | 588 |
| |
589 | 589 |
| |
590 | 590 |
| |
| |||
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
637 |
| - | |
| 637 | + | |
638 | 638 |
| |
639 | 639 |
| |
640 | 640 |
| |
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
644 |
| - | |
| 644 | + | |
645 | 645 |
| |
646 | 646 |
| |
647 | 647 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4450 | 4450 |
| |
4451 | 4451 |
| |
4452 | 4452 |
| |
4453 |
| - | |
| 4453 | + | |
4454 | 4454 |
| |
4455 | 4455 |
| |
4456 | 4456 |
| |
|
Lines changed: 14 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4282 | 4282 |
| |
4283 | 4283 |
| |
4284 | 4284 |
| |
4285 |
| - | |
| 4285 | + | |
4286 | 4286 |
| |
4287 | 4287 |
| |
4288 | 4288 |
| |
| |||
4346 | 4346 |
| |
4347 | 4347 |
| |
4348 | 4348 |
| |
4349 |
| - | |
4350 |
| - | |
4351 |
| - | |
4352 |
| - | |
4353 | 4349 |
| |
4354 | 4350 |
| |
4355 | 4351 |
| |
| |||
4423 | 4419 |
| |
4424 | 4420 |
| |
4425 | 4421 |
| |
4426 |
| - | |
4427 |
| - | |
4428 |
| - | |
4429 |
| - | |
4430 |
| - | |
4431 |
| - | |
4432 |
| - | |
4433 |
| - | |
4434 | 4422 |
| |
| 4423 | + | |
4435 | 4424 |
| |
4436 |
| - | |
4437 |
| - | |
4438 |
| - | |
4439 |
| - | |
4440 |
| - | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
4441 | 4437 |
| |
4442 | 4438 |
| |
4443 | 4439 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
831 |
| - | |
| 831 | + | |
832 | 832 |
| |
833 | 833 |
| |
834 | 834 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
| 212 | + | |
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
| |||
311 | 311 |
| |
312 | 312 |
| |
313 | 313 |
| |
314 |
| - | |
| 314 | + | |
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
666 | 666 |
| |
667 | 667 |
| |
668 | 668 |
| |
669 |
| - | |
670 |
| - | |
| 669 | + | |
671 | 670 |
| |
672 | 671 |
| |
673 | 672 |
| |
| |||
715 | 714 |
| |
716 | 715 |
| |
717 | 716 |
| |
718 |
| - | |
| 717 | + | |
719 | 718 |
| |
720 | 719 |
| |
721 | 720 |
| |
| |||
1028 | 1027 |
| |
1029 | 1028 |
| |
1030 | 1029 |
| |
1031 |
| - | |
| 1030 | + | |
1032 | 1031 |
| |
1033 | 1032 |
| |
1034 | 1033 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2769 | 2769 |
| |
2770 | 2770 |
| |
2771 | 2771 |
| |
2772 |
| - | |
| 2772 | + | |
2773 | 2773 |
| |
2774 | 2774 |
| |
2775 | 2775 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
259 | 259 |
| |
260 | 260 |
| |
261 | 261 |
| |
262 |
| - | |
| 262 | + | |
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 |
| - | |
| 293 | + | |
294 | 294 |
| |
295 | 295 |
| |
296 | 296 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1737 | 1737 |
| |
1738 | 1738 |
| |
1739 | 1739 |
| |
1740 |
| - | |
| 1740 | + | |
1741 | 1741 |
| |
1742 | 1742 |
| |
1743 | 1743 |
| |
| |||
1789 | 1789 |
| |
1790 | 1790 |
| |
1791 | 1791 |
| |
1792 |
| - | |
| 1792 | + | |
1793 | 1793 |
| |
1794 | 1794 |
| |
1795 | 1795 |
| |
| |||
1803 | 1803 |
| |
1804 | 1804 |
| |
1805 | 1805 |
| |
1806 |
| - | |
| 1806 | + | |
1807 | 1807 |
| |
1808 | 1808 |
| |
1809 | 1809 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1081 | 1081 |
| |
1082 | 1082 |
| |
1083 | 1083 |
| |
1084 |
| - | |
| 1084 | + | |
1085 | 1085 |
| |
1086 | 1086 |
| |
1087 | 1087 |
| |
| |||
1365 | 1365 |
| |
1366 | 1366 |
| |
1367 | 1367 |
| |
1368 |
| - | |
| 1368 | + | |
1369 | 1369 |
| |
1370 | 1370 |
| |
1371 | 1371 |
| |
| |||
1656 | 1656 |
| |
1657 | 1657 |
| |
1658 | 1658 |
| |
1659 |
| - | |
| 1659 | + | |
1660 | 1660 |
| |
1661 | 1661 |
| |
1662 | 1662 |
| |
| |||
2099 | 2099 |
| |
2100 | 2100 |
| |
2101 | 2101 |
| |
2102 |
| - | |
| 2102 | + | |
2103 | 2103 |
| |
2104 | 2104 |
| |
2105 | 2105 |
| |
| |||
4175 | 4175 |
| |
4176 | 4176 |
| |
4177 | 4177 |
| |
4178 |
| - | |
| 4178 | + | |
4179 | 4179 |
| |
4180 | 4180 |
| |
4181 | 4181 |
| |
| |||
4188 | 4188 |
| |
4189 | 4189 |
| |
4190 | 4190 |
| |
4191 |
| - | |
| 4191 | + | |
4192 | 4192 |
| |
4193 | 4193 |
| |
4194 | 4194 |
| |
| |||
4215 | 4215 |
| |
4216 | 4216 |
| |
4217 | 4217 |
| |
4218 |
| - | |
| 4218 | + | |
4219 | 4219 |
| |
4220 | 4220 |
| |
4221 | 4221 |
| |
| |||
4365 | 4365 |
| |
4366 | 4366 |
| |
4367 | 4367 |
| |
4368 |
| - | |
| 4368 | + | |
4369 | 4369 |
| |
4370 | 4370 |
| |
4371 | 4371 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
| 239 | + | |
239 | 240 |
| |
240 | 241 |
| |
241 | 242 |
| |
| |||
303 | 304 |
| |
304 | 305 |
| |
305 | 306 |
| |
306 |
| - | |
| 307 | + | |
307 | 308 |
| |
308 | 309 |
| |
309 | 310 |
| |
|
0 commit comments
Comments
(0)