I can't make PostgreSql split a string into multiple strings based on newline characters. I have tried splitting by: \n, \r, \r\n. But it's not working!
Not working code:
SELECT string_to_array('Test1
Test2', '\r\n')
Working code (newline character copied directly from text, but it is displayed as invisible \r\n or CRLF):
SELECT string_to_array('Test1
Test2', '
')
Initial data - a table, the content of which is imported from a .csv file.
What am I doing wrong?