| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
| Cc: | Joel Jacobson <joel(at)compiler(dot)org>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Isaac Morland <isaac(dot)morland(at)gmail(dot)com>, Chapman Flack <chap(at)anastigmatix(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: COPY table_name (single_column) FROM 'unknown.txt' DELIMITER E'\n' |
| Date: | 2021-05-05 19:51:47 |
| Message-ID: | 4046534.1620244307@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> On 5/5/21 2:45 PM, Tom Lane wrote:
>> Yeah, that's because of the conversion to "chr". But a regexp
>> is overkill for that anyway. Don't we have something that will
>> split on simple substring matches?
> Not that I know of. There is split_part but I don't think that's fit for
> purpose here. Do we need one, or have I missed something?
[ checks manual ... ]
string_to_array or string_to_table would do, I think.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2021-05-05 20:00:56 | Re: .ready and .done files considered harmful |
| Previous Message | Andrew Dunstan | 2021-05-05 19:51:46 | Re: COPY table_name (single_column) FROM 'unknown.txt' DELIMITER E'\n' |