I've got a problem during connecting database from command line tool - SQL Shell. I cant connect database using command \c test localhost postgres 5432
After using it I receive message:
could not translate host name "postgres" to address: Unknown host Previous connection kept
Although I can connect using pgAdmin 4. Does anyone know how to fix this? I'm working on Windows 10, I have the newest version of PostgreSQL.
\c