diff options
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-14 18:17:55 +0300 |
|---|---|---|
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-14 18:17:55 +0300 |
| commit | 321eed5f0f7563a0cabb3d7a98132856287c1ad1 (patch) | |
| tree | ebca2c34b9b89435f1f26a65ce347b830db1e26b /src/include/nodes/parsenodes.h | |
| parent | 705d397cd9cede1fd6fb1260d1689570bf6142d4 (diff) | |
| download | postgresql-321eed5f0f7563a0cabb3d7a98132856287c1ad1.tar.gz | |
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.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
| -rw-r--r-- | src/include/nodes/parsenodes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index a567c50da7..5aaf5ec9e8 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -2544,6 +2544,19 @@ typedef struct AlterOwnerStmt /* ---------------------- + * Alter Operator Set Restrict, Join + * ---------------------- + */ +typedef struct AlterOperatorStmt +{ + NodeTag type; + List *opername; /* operator name */ + List *operargs; /* operator's argument TypeNames */ + List *options; /* List of DefElem nodes */ +} AlterOperatorStmt; + + +/* ---------------------- * Create Rule Statement * ---------------------- */ |
