Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49fa99e

Browse files
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.us
1 parent109de05 commit49fa99e

File tree

3 files changed

+1455
-1373
lines changed

3 files changed

+1455
-1373
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp