Speed up COPY into tables with DEFAULT nextval()
authorSimon Riggs <simon@2ndQuadrant.com>
Mon, 20 Jan 2014 17:22:38 +0000 (17:22 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Mon, 20 Jan 2014 17:22:38 +0000 (17:22 +0000)
commit4d1e2aeb1a162770683a8d1e13fc13ac2d95d810
treeab15a5f2a9213e2235f0bb8d3237448dbe43cec4
parent74a72ec208671f3ff301b4f6ef703f4957deccea
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.
src/backend/commands/copy.c
src/backend/optimizer/util/clauses.c
src/include/optimizer/clauses.h