aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/functions.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-07-18 22:34:06 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2012-07-18 23:14:56 +0300
commita7a4add6c4243cbcf50a554bce4c34cb72a344b5 (patch)
treed6c67e623268a3342bb9263230943e7f16e43b01 /src/backend/executor/functions.c
parent80e373c3a8c43812bdc98fe0d433b9990acce5ad (diff)
downloadpostgresql-a7a4add6c4243cbcf50a554bce4c34cb72a344b5.tar.gz
postgresql-a7a4add6c4243cbcf50a554bce4c34cb72a344b5.zip
Refactor the way code is shared between some range type functions.
Functions like range_eq, range_before etc. are exposed at the SQL-level, but they're also used internally by the GiST consistent support function. The code sharing was done by a hack, TrickFunctionCall2, which relied on the knowledge that all the functions used fn_extra the same way. This commit splits the functions into internal versions that take a TypeCacheEntry as argument, and thin wrappers to expose the functions at the SQL-level. The internal versions can then be called directly and in a less hacky way from the GiST consistent function. This is just cosmetic, but backpatch to 9.2 anyway, to avoid having a different version of this code in the 9.2 branch. That would make backpatching fixes in this area more difficult. Alexander Korotkov
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions