Re: [BUG] psql: Make \copy from 'text' and 'csv' formats fail on NUL bytes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUG] psql: Make \copy from 'text' and 'csv' formats fail on NUL bytes
Date
Msg-id 159991.1731274632@sss.pgh.pa.us
Whole thread Raw
Responses Re: [BUG] psql: Make \copy from 'text' and 'csv' formats fail on NUL bytes
List pgsql-hackers
"Joel Jacobson" <joel@compiler.org> writes:
> Fix by adjusting handleCopyIn() to use the binary code path also when the copy
> source is a file (i.e., copystream != pset.cur_cmd_source), even in textual
> copies.

That seems like a hack, as it also changes the behavior w.r.t.
prompts and EOF-mark detection, neither for the better.

I'm not really convinced that we need to do anything at all
about this.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Interrupts vs signals
Next
From: Tomas Vondra
Date:
Subject: Re: index prefetching