pgcli couldn't parse password that contained character '#'
- Ngôn ngữ chính
- Python
- Star
- 13.4k
- Fork
- 613
- Merge trung bình
- 6 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 10
Mô tả
I have a section that contains character '#' in ~/.pg_service.conf, like
```
[staging_instance]
host=XXXX
port=5432
dbname=postgres
user=root
password=abc#123
```
using psql could login successfully
```
~# psql service=staging_instance
psql (13.20, server 15.12)
WARNING: psql major version 13, server major version 15.
Some psql features might not work.
Type "help" for help.
postgres=>
```
but using pgcli still prompt input password
```
~# pgcli service=staging_instance
Password for root:
```
How could solve this?
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the issue with the shown ~/.pg_service.conf entry and the `pgcli service=staging_instance` command, then compare its password parsing with the successful `psql service=staging_instance` path. Done means a password containing `#` is read from the service file and pgcli connects without prompting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- postgresql, python
- Lĩnh vực
- cli, databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100