psqlでタブ区切り出力

% psql --file=hoge.sql --output=out.txt --no-align --field-separator='	' --tuples-only -U hogeuser testdb

no-alignを指定しないとうまくいかない。

参考: