- Notifications
You must be signed in to change notification settings - Fork5k
Commitfef6da9
committed
libpq: Remove PQservice()
This routine has been introduced as a shortcut to be able to retrieve aservice name from an active connection, for psql. Per discussion, andas it is only used by psql, let's remove it to not clutter the libpq APImore than necessary.The logic in psql is replaced by lookups of PQconninfoOption for theactive connection, instead, updated each time the variables are syncedby psql, the prompt shortcut relying on the variable synced.Reported-by: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/20250706161319.c1.nmisch@google.comBackpatch-through: 181 parent9300188 commitfef6da9
File tree
8 files changed
+53
-38
lines changed- doc/src/sgml
- src
- bin/psql
- interfaces/libpq
8 files changed
+53
-38
lines changedLines changed: 0 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2740 | 2740 |
| |
2741 | 2741 |
| |
2742 | 2742 |
| |
2743 |
| - | |
2744 |
| - | |
2745 |
| - | |
2746 |
| - | |
2747 |
| - | |
2748 |
| - | |
2749 |
| - | |
2750 |
| - | |
2751 |
| - | |
2752 |
| - | |
2753 |
| - | |
2754 |
| - | |
2755 |
| - | |
2756 |
| - | |
2757 |
| - | |
2758 |
| - | |
2759 |
| - | |
2760 |
| - | |
2761 |
| - | |
2762 |
| - | |
2763 | 2743 |
| |
2764 | 2744 |
| |
2765 | 2745 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4480 | 4480 |
| |
4481 | 4481 |
| |
4482 | 4482 |
| |
| 4483 | + | |
4483 | 4484 |
| |
4484 | 4485 |
| |
4485 | 4486 |
| |
| |||
4489 | 4490 |
| |
4490 | 4491 |
| |
4491 | 4492 |
| |
4492 |
| - | |
4493 | 4493 |
| |
4494 | 4494 |
| |
4495 | 4495 |
| |
4496 | 4496 |
| |
4497 | 4497 |
| |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
4498 | 4503 |
| |
4499 | 4504 |
| |
4500 | 4505 |
| |
|
Lines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2531 | 2531 |
| |
2532 | 2532 |
| |
2533 | 2533 |
| |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
2534 | 2569 |
| |
2535 | 2570 |
| |
2536 | 2571 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
172 |
| - | |
173 |
| - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 |
| |
175 | 179 |
| |
176 | 180 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + |
Lines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7461 | 7461 |
| |
7462 | 7462 |
| |
7463 | 7463 |
| |
7464 |
| - | |
7465 |
| - | |
7466 |
| - | |
7467 |
| - | |
7468 |
| - | |
7469 |
| - | |
7470 |
| - | |
7471 |
| - | |
7472 | 7464 |
| |
7473 | 7465 |
| |
7474 | 7466 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 |
| - | |
404 | 403 |
| |
405 | 404 |
| |
406 | 405 |
| |
|
0 commit comments
Comments
(0)