I have a table foo with column bar
foo
---
bar
I use Postgres's Copy command COPY (select * from foo) TO 'complete_file_path' WITH Delimiter ',' CSV HEADER
Now, how to pass a custom row delimiter? Example
row delimiter = _a_\n
I require the follow output in my file
bar_a_
somevalue_a_
somevalue_a_
somevalue_a_
I am not sure how to do this using the copy command.