]> granicus.if.org Git - postgresql/commit
Add ALTER OPERATOR command, for changing selectivity estimator functions.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 Jul 2015 15:17:55 +0000 (18:17 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 14 Jul 2015 15:17:55 +0000 (18:17 +0300)
commit321eed5f0f7563a0cabb3d7a98132856287c1ad1
treeebca2c34b9b89435f1f26a65ce347b830db1e26b
parent705d397cd9cede1fd6fb1260d1689570bf6142d4
Add ALTER OPERATOR command, for changing selectivity estimator functions.

Other options cannot be changed, as it's not totally clear if cached plans
would need to be invalidated if one of the other options change. Selectivity
estimator functions only change plan costs, not correctness of plans, so
those should be safe.

Original patch by Uriy Zhuravlev, heavily edited by me.
13 files changed:
doc/src/sgml/ref/alter_operator.sgml
src/backend/commands/operatorcmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/commands/defrem.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/test/regress/expected/alter_operator.out [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/serial_schedule
src/test/regress/sql/alter_operator.sql [new file with mode: 0644]