| From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | John Naylor <john(dot)naylor(at)enterprisedb(dot)com> |
| Subject: | Force lookahead in COPY FROM parsing |
| Date: | 2021-03-04 09:13:40 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I posted this earlier at
https://www.postgresql.org/message-id/[email protected],
and that led to removing FE/BE protocol version 2 support. That's been
committed now, so here's COPY FROM patch again, rebased. To recap:
Previously COPY FROM could not look ahead in the COPY stream, because in
the v2 protocol, it had to detect the end-of-copy marker correctly. With
v2 protocol gone, that's no longer an issue, and we can simplify the
parsing slightly. Simpler should also mean faster, but I haven't tried
that measuring that.
- Heikki
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Simplify-COPY-FROM-parsing-by-forcing-lookahead.patch | text/x-patch | 9.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2021-03-04 09:25:31 | Re: [PATCH] psql : Improve code for help option |
| Previous Message | Amit Langote | 2021-03-04 09:07:13 | Re: Extend more usecase for planning time partition pruning and init partition pruning. |