I wrote: > recordsep in the unaligned mode doesn't play the role of a line ending > because the last line is not finished by recordsep. According to the source >code, this is intended, see print_unaligned_text() in print.c:
Something else comes to mind: CSV allows linefeeds inside fields, and we don't want to replace these with record separators. So the notion that recordsep can be used to choose line endings is even less okay than if there was just the last line issue. Best regards, -- Daniel Vérité PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite