-
- Downloads
Fix ALTER OPERATOR to update dependencies properly.
Fix an oversight in commit 321eed5f: replacing an operator's selectivity functions needs to result in a corresponding update in pg_depend. We have a function that can handle that, but it was not called by AlterOperator(). To fix this without enlarging pg_operator.h's #include list beyond what clients can safely include, split off the function definitions into a new file pg_operator_fn.h, similarly to what we've done for some other catalog header files. It's not entirely clear whether any client-side code needs to include pg_operator.h, but it seems prudent to assume that there is some such code somewhere.
Showing
- src/backend/catalog/pg_operator.c 21 additions, 14 deletionssrc/backend/catalog/pg_operator.c
- src/backend/commands/operatorcmds.c 3 additions, 2 deletionssrc/backend/commands/operatorcmds.c
- src/include/catalog/pg_operator.h 0 additions, 17 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_operator_fn.h 34 additions, 0 deletionssrc/include/catalog/pg_operator_fn.h
- src/test/regress/expected/alter_operator.out 67 additions, 6 deletionssrc/test/regress/expected/alter_operator.out
- src/test/regress/sql/alter_operator.sql 38 additions, 3 deletionssrc/test/regress/sql/alter_operator.sql
Loading
Please register or sign in to comment