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

Commit82849df

Browse files
committed
Add new selectivity estimation functions for pattern-matching operators
(LIKE and regexp matches). These are not yet referenced in pg_operator,so by default the system will continue to use eqsel/neqsel.Also, tweak convert_to_scalar() logic so that common prefixes of stringsare stripped off, allowing better accuracy when all strings in a tableshare a common prefix.
1 parent8c3b52e commit82849df

File tree

5 files changed

+1339
-469
lines changed

5 files changed

+1339
-469
lines changed

‎doc/src/sgml/xoper.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/xoper.sgml,v 1.9 2000/03/31 03:27:41 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/xoper.sgml,v 1.10 2000/04/16 04:41:01 tgl Exp $
33
-->
44

55
<Chapter Id="xoper">
@@ -254,9 +254,9 @@ SELECT (a + b) AS c FROM test_complex;
254254
<para>
255255
You can frequently get away with using either eqsel or neqsel for
256256
operators that have very high or very low selectivity, even if they
257-
aren't really equality or inequality. For example, the regular expression
258-
matchingoperators(~, ~*, etc)use eqsel on the assumption that they'll
259-
usually only match a small fraction of the entries in a table.
257+
aren't really equality or inequality. For example, the
258+
approximate-equality geometricoperators use eqsel on the assumption that
259+
they'llusually only match a small fraction of the entries in a table.
260260
</para>
261261

262262
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp