diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-11-14 15:19:05 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2017-11-14 15:19:05 +0100 |
commit | a61f5ab986386628cf20b33971364475ce452412 (patch) | |
tree | 2026092ae3ae8a9269015198b41e97bffc2589ee /src/backend/executor/nodeModifyTable.c | |
parent | 591c504fad0de88b559bf28e929d23672179a857 (diff) | |
download | postgresql-a61f5ab986386628cf20b33971364475ce452412.tar.gz postgresql-a61f5ab986386628cf20b33971364475ce452412.zip |
Simplify index_[constraint_]create API
Instead of passing large swaths of boolean arguments, define some flags
that can be used in a bitmask. This makes it easier not only to figure
out what each call site is doing, but also to add some new flags.
The flags are split in two -- one set for index_create directly and
another for constraints. index_create() itself receives both, and then
passes down the latter to index_constraint_create(), which can also be
called standalone.
Discussion: https://postgr.es/m/20171023151251.j75uoe27gajdjmlm@alvherre.pgsql
Reviewed-by: Simon Riggs
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions