Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to postgres using pg_service ? #908

Open
haubourg opened this issue Jun 8, 2022 · 0 comments
Open

Connect to postgres using pg_service ? #908

haubourg opened this issue Jun 8, 2022 · 0 comments
Labels
feature request New issue opened using "Feature request" template pg PostgreSQL driver

Comments

@haubourg
Copy link

haubourg commented Jun 8, 2022

Hi,
pg_service files allows to define - like Oracle allows - access to connection strings via alias, which avoids risks of credential leaks and makes thing a lot easier to change environment.

See : https://www.cybertec-postgresql.com/en/pg_service-conf-the-forgotten-config-file/

One example with psql : psql service=myalias

I would love to have this connection option in SQLTools. It is supported out of the box by all libpq based clients

@haubourg haubourg added the feature request New issue opened using "Feature request" template label Jun 8, 2022
@gjsjohnmurray gjsjohnmurray added the pg PostgreSQL driver label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New issue opened using "Feature request" template pg PostgreSQL driver
Projects
None yet
Development

No branches or pull requests

2 participants