I will introduce you several way to output sql result into a file with using psql.
Continue reading PostgreSQL: How to Export SQL Result to FileTag Archives: CSV
PHP: Read TSV and CSV
RAILS 4 : Load Seed from TSV and CSV
At the article Rails 4 : Load Seed from TSV, I wrote about how to inject tsv seed data into your db. This time, I wrote about how to inject not only tsv, also csv seed data into your db.
Continue reading RAILS 4 : Load Seed from TSV and CSV