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: | 89627a2a-c123-a8aa-267e-5d168feb73dd@iki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I posted this earlier at
https://www.postgresql.org/message-id/9ec25819-0a8a-d51a-17dc-4150bb3cca3b@iki.fi,
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. |