A
A
Arseny Sokolov2015-05-08 07:56:12
PostgreSQL
Arseny Sokolov, 2015-05-08 07:56:12

Why is psql not opening the url?

Often in OS X I use this command:

$ psql postgres://[user]:[passsword]@[domain]:[port]/[database]

But recently, on a server with CentOS, everything was classically installed and configured by PostgreSQL, but the client to the database categorically does not work with URLs, I could not find information in the documentation on how to make psql work with URLs.
Tell me how to make the setting so that the client accepts a URL instead of such long commands:
$ psql -h [domain] -p [port] -U [user] -w [database]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Mokhov, 2015-05-08
@ArsenBespalov

write your script, what's the trouble?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question