Apply identity sequence values on COPY

Peter Eisentraut <peter_e@gmx.net>

Commit: ee5b595493e1609903d55709853f5276ba85c81d
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-12-08T14:39:55Z
Releases: 10.2
Apply identity sequence values on COPY

A COPY into a table should apply identity sequence values just like it
does for ordinary defaults.  This was previously forgotten, leading to
null values being inserted, which in turn would fail because identity
columns have not-null constraints.

Author: Michael Paquier <michael.paquier@gmail.com>
Reported-by: Steven Winfield <steven.winfield@cantabcapital.com>
Bug: #14952

Files