TODO item done:

* Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
This commit is contained in:
Bruce Momjian 2002-03-08 04:29:01 +00:00
parent fd6b9f04a7
commit ee81126d1f
2 changed files with 4 additions and 5 deletions

View File

@ -46,10 +46,9 @@ PERMISSIONS
* Allow usernames to be specified directly in pg_hba.conf (Bruce) * Allow usernames to be specified directly in pg_hba.conf (Bruce)
* Add PGPASSWORDFILE environment variable or ~/.pgpass to store * Add PGPASSWORDFILE environment variable or ~/.pgpass to store
user/host/password combinations user/host/password combinations
* Remove PGPASSWORD because is insecure on some OS's * Remove PGPASSWORD because it is insecure on some OS's
* Make single-user local access permissions the default by limiting * Make single-user local access permissions the default by limiting
permissions on the socket file (Peter E) permissions on the socket file (Peter E)
* Use thread-safe crypt() in libpq, if available
* -Allow permissions for functions (Peter E) * -Allow permissions for functions (Peter E)
ADMIN ADMIN
@ -66,7 +65,7 @@ ADMIN
flags unique flags unique
* Allow logging of query durations * Allow logging of query durations
* -Prevent SIGHUP and 'pg_ctl reload' from changing command line * -Prevent SIGHUP and 'pg_ctl reload' from changing command line
specified parameters to postgresql.conf defaults specified parameters to postgresql.conf defaults (Peter E)
DATA TYPES DATA TYPES

View File

@ -15,7 +15,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.105 2002/03/02 21:39:32 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.106 2002/03/08 04:29:01 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -2964,7 +2964,7 @@ prefix_selectivity(Query *root, Var *var, char *prefix)
* wildcards (such as % for LIKE or .* for regex) increase it. * wildcards (such as % for LIKE or .* for regex) increase it.
*/ */
#define FIXED_CHAR_SEL 0.04 /* about 1/25 */ #define FIXED_CHAR_SEL 0.20 /* about 1/5 */
#define CHAR_RANGE_SEL 0.25 #define CHAR_RANGE_SEL 0.25
#define ANY_CHAR_SEL 0.9 /* not 1, since it won't match #define ANY_CHAR_SEL 0.9 /* not 1, since it won't match
* end-of-string */ * end-of-string */