Andrea, * Andrea Riciputi (andrea.ricip...@gmail.com) wrote: > My idea was to extend the COPY TO command to accept an EOL option as it > already does with the DELIMITER option. To keep it simple we can limit the > EOL choice to CR, LF or CRLF to avoid unusual output, and also keep the > current behaviour when no EOL option is given. I was also wondering if an EOL > option could be useful also for the text output format or not.
Have you considered using COPY TO's 'PROGRAM' option to simply pipe the output through unix2dos..? > I spent the weekend reading the COPY command source code and its grammar > definition and I think I can patch it by myself, submit the patch here and > wait for your review. However before starting this in my spare time I wanted > to know if you, as the PG hackers community, would be against a similar > proposal for any reason, and if so why. I'm not particularly against it, though if it can be solved with the existing 'PROGRAM' capability then it may not make sense to complicate the COPY code further. Thanks! Stephen
signature.asc
Description: Digital signature