forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita7a4add
committed
Refactor the way code is shared between some range type functions.
Functions like range_eq, range_before etc. are exposed at the SQL-level, butthey're also used internally by the GiST consistent support function. Thecode sharing was done by a hack, TrickFunctionCall2, which relied on theknowledge that all the functions used fn_extra the same way. This commitsplits the functions into internal versions that take a TypeCacheEntry asargument, and thin wrappers to expose the functions at the SQL-level. Theinternal versions can then be called directly and in a less hacky way fromthe GiST consistent function.This is just cosmetic, but backpatch to 9.2 anyway, to avoid having adifferent version of this code in the 9.2 branch. That would makebackpatching fixes in this area more difficult.Alexander Korotkov1 parent80e373c commita7a4add
File tree
3 files changed
+220
-191
lines changed- src
- backend/utils/adt
- include/utils
3 files changed
+220
-191
lines changed0 commit comments
Comments
(0)