- Notifications
You must be signed in to change notification settings - Fork5k
Commit6b1c4d3
committed
psql: Add variable SERVICEFILE
This new psql variable can be used to check which service file has beenused for a connection. Like other variables, this can be set in aPROMPT or reported by an \echo, like these commands:\echo :SERVICEFILE\set PROMPT1 '=(%:SERVICEFILE:)%# 'This relies on commits092f3c6 andfef6da9 to retrieve thisinformation from the connection's PQconninfoOption.Author: Ryo Kanbayashi <kanbayashi.dev@gmail.com>Discussion:https://postgr.es/m/CAKkG4_nCjx3a_F3gyXHSPWxD8Sd8URaM89wey7fG_9g7KBkOCQ@mail.gmail.com1 parent3c4e26a commit6b1c4d3
2 files changed
+16
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4623 | 4623 |
| |
4624 | 4624 |
| |
4625 | 4625 |
| |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
4626 | 4635 |
| |
4627 | 4636 |
| |
4628 | 4637 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4481 | 4481 |
| |
4482 | 4482 |
| |
4483 | 4483 |
| |
| 4484 | + | |
4484 | 4485 |
| |
4485 | 4486 |
| |
4486 | 4487 |
| |
| |||
4500 | 4501 |
| |
4501 | 4502 |
| |
4502 | 4503 |
| |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
4503 | 4509 |
| |
4504 | 4510 |
| |
4505 | 4511 |
| |
| |||
4529 | 4535 |
| |
4530 | 4536 |
| |
4531 | 4537 |
| |
| 4538 | + | |
4532 | 4539 |
| |
4533 | 4540 |
| |
4534 | 4541 |
| |
|
0 commit comments
Comments
(0)