Speed up COPY into tables with DEFAULT nextval()

Simon Riggs <simon@2ndQuadrant.com>

Commit: 4d1e2aeb1a162770683a8d1e13fc13ac2d95d810
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2014-01-20T17:22:38Z
Releases: 9.4.0
Speed up COPY into tables with DEFAULT nextval()

Previously the presence of a nextval() prevented the
use of batch-mode COPY.  This patch introduces a
special case just for nextval() functions. In future
we will introduce a general case solution for
labelling volatile functions as safe for use.

Files

PathChange+/−
src/backend/commands/copy.c modified +13 −2
src/backend/optimizer/util/clauses.c modified +116 −0
src/include/optimizer/clauses.h modified +1 −0