PostgreSQL connection
strings
embedded in your application can take two different forms: the key-value
notation or the postgresql://
URI scheme. When it comes to using psql
though, another form of connection string is introduced, with command line
options -h -p -U
and environment variable support.
In this short article you will learn that you can use either of the three
different forms in psql
and thus easily copy & paste you application
connection string right at the console to test it!