New answers tagged


Got it to work a few ways: postgres@ironforge:~$ cat onerrorstop.sql \set ON_ERROR_STOP on select * from gurumeditationerror; postgres@ironforge:~$ psql -f 'onerrorstop.sql' psql:onerrorstop.sql:2: ERROR: relation "gurumeditationerror" does not exist LINE 1: select * from gurumeditationerror; ^ postgres@ironforge:~$ echo $? 3 postgres@...


If you’re on a Mac place the csv file on ‘/tmp’ directory. In this case, the file would be accessible by all users such as pgadmin.


Install just client with brew: brew install pgcli then link it: brew link --force libpq as output you will get the path to psql: If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/libpq/bin:$PATH"' >> ~/.zshrc to find this path again: brew info libpq

Top 50 recent answers are included