Reputation: 871
I have set the PATH environment and then run psql on command prompt and then whatever command I write nothing happens, it doesn't throw any error message too.
even very basic commands as;
psql -l
pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}
Do you have any idea?
Upvotes: 0
Views: 843
Reputation: 22196
You have to finish each command with a semicolon (;
). Until you do so, psql thinks you're still writing the same (multi-line) command.
Also, psql -l
and pg_dump -U {user-name} {source_db} -f {dumpfilename.sql}
are not psql commands. These should be ran from your shell (without the semicolons), not from the psql terminal.
Upvotes: 1