When I perform sudo -u zorgan postgres psql to start my postgres session it returns:
postgres: invalid argument: "psql"
if I remove psql it returns:
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
Any idea what the problem is?
sudo -u zorgan postgres psql?...sudo -u zorgan postgreswill run a program namedpostgresas the Linux userzorgan- I doubt that this is what you want. If you already have a userzorganthen why not just supply the username directly using:psql -U zorganpostgresbinary withpsqlas the argument, but thepsqlbinary. Droppostgresout of that command line.sudo -u zorgan psql postgres?..