Alban Hertroys-4 wrote
> On 07 Sep 2014, at 10:45, Abelard Hoffman <
> abelardhoffman@
> > wrote:
>
>> For reports, everyone else mostly uses other tools? I'd like to stay away
>> from GUI-tools, if possible.
>
> For reporting, usually you use the data in the database directly.
>
> A TSV or CSV file is not a report, it’s at best a data source for your
> report. Going through an intermediate format is not a particularly
> effective approach to create reports, but if you have to (for example
> because you aren’t _allowed_ access to the database), generally preferred
> formats seem to be CSV, XML or JSON; as long as it’s a standard format.
> TSV is not a common choice. Are you sure your boss actually cares that
> it’s TSV and not, for example, CSV?
TSV is generally chosen as an interchange format because data rarely has
tabs...if your does that advantage goes away.
Same question regarding the report aspect. If the boss wants a human
readable text format report I'd suggest using the format function and output
the the resultant single column as-is to the screen. Fixed-width columns
are better than any kind of delimited format in that use case.
David J.
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/psql-and-tab-delimited-output-tp5818019p5818097.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.