Tag Info

New answers tagged


I don't know of any config file for the psql client. However psql does respect a number of environment variables that correlate to command line options. So to have the psql automatically use the socket of your choice you can set the PGHOST variable to the directory containing the socket. i.e. PGHOST=/var/pgsql_socket_alt psql -d mydatabsase

Top 50 recent answers are included