forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit49fa99e
committed
Move pattern selectivity code from selfuncs.c to like_support.c.
While at it, refactor patternsel() a bit so that it can be used fromthe LIKE/regex planner support functions as well. This makes theplanner able to deal equally well with either operator or functionsyntax for these operations. I'm not excited about that as a featurein itself, but it provides a nice model for extensions to follow ifthey want such behavior for their operations.This change localizes the use of pattern_fixed_prefix() andmake_greater_string() so that they no longer need be exported.(We might get pushback from extensions about that, perhaps,in which case I'd be inclined to re-export them in a new headerfile like_support.h.)This reduces the bulk of selfuncs.c a fair amount, removing ~1370lines or about one-sixth of that file; it's still too big, but thisis progress.Discussion:https://postgr.es/m/24537.1550093915@sss.pgh.pa.us1 parent109de05 commit49fa99e
File tree
3 files changed
+1455
-1373
lines changed- src
- backend/utils/adt
- include/utils
3 files changed
+1455
-1373
lines changed0 commit comments
Comments
(0)