On Tue, 2006-10-31 at 16:13 -0500, Tom Lane wrote: > Jeff Davis <[EMAIL PROTECTED]> writes: > > I created a patch that appears to fix the problem, and does not appear > > to break anything else. > > ... except maybe bytea ... >
Ok. So then it seems that the only possible places to fix it are in textin and all the other input functions for all the character types*, or if we change COPY to use the send/recv functions rather than the out/in functions. I don't think we want to change the format for COPY, so is it reasonable to change the input functions to reject invalid byte sequences? COPY isn't just an issue for backups. Slony-I uses COPY to transfer data, and if there are any invalid byte sequences than replication will fail. The COPY doc page makes every implication that something COPY'd out can be COPY'd back in in the same way. Is this not a bug? Is there a discussion on -hackers about this that I missed? Regards, Jeff Davis * I don't immediately know what we'd do about "char". I think people expect it to accept 256 values, but clearly that would violate a lot of encodings. However, the current behavior creates the same problem with COPY. ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate