I wrote: > I went ahead and rebased these.
It looks like FreeBSD doesn't like this for some reason. I also wanted to see if this patch set had any performance effect, with and without changing how UTF-8 is validated, using the blackhole am from https://github.com/michaelpq/pg_plugins/tree/master/blackhole_am. create extension blackhole_am; create table blackhole_tab (a text) using blackhole_am ; time ./inst/bin/psql -c "copy blackhole_tab from '/path/to/test-copy.txt'" ....where copy-test.txt is made by for i in {1..100}; do cat UTF-8-Sampler.htm >> test-copy.txt ; done; On Linux x86-64, gcc 8.4, I get these numbers (minimum of five runs): master: 109ms v6 do encoding in larger chunks: 109ms v7 utf8 SIMD: 98ms -- John Naylor EDB: http://www.enterprisedb.com