Final submission for a PostgreSQL GSOC'17 project 'Add errors handling and parallel execution to COPY'
Alexey Kondratov (kondratov.aleksey@gmail.com).
In my initial proposal I was planning to use subtransactions for errors handling, since it is the only one completely safe way to catch all possible errors during the COPY FROM
execution. However, it would cause a serious problem – severe transactional IDs (XIDs) consumption hidden from the end-user. It may lead to a huge performance drop in the case, when errors are too frequent in the input data.