I was trying to work out why this
psql command wasn’t printing results in
psql -d $DATABASE -AF $'\t' -c "$SQL"
This should work as:
--no-align) disables aligned output.
-F $'\t'indicates a tab character should be used as a field separator.
But it wasn’t working.
Turns out that a setting in my
~/.psqlrc was overriding the
\pset format wrap
To get the above command to work, the
--no-psqlrc option was needed:
psql -d $DATABASE --no-psqlrc -AF $'\t' -c "$SQL"