From: Bruce Momjian Date: Fri, 8 Mar 2002 04:29:01 +0000 (+0000) Subject: TODO item done: X-Git-Tag: REL7_3~1927 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee81126d1f39dbb77a357e1cd57c1293bd107cda;p=postgresql TODO item done: * Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce) --- diff --git a/doc/TODO b/doc/TODO index ef2391f147..484c5c473c 100644 --- a/doc/TODO +++ b/doc/TODO @@ -46,10 +46,9 @@ PERMISSIONS * Allow usernames to be specified directly in pg_hba.conf (Bruce) * Add PGPASSWORDFILE environment variable or ~/.pgpass to store 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 permissions on the socket file (Peter E) -* Use thread-safe crypt() in libpq, if available * -Allow permissions for functions (Peter E) ADMIN @@ -66,7 +65,7 @@ ADMIN flags unique * Allow logging of query durations * -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 diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index a6f9bf6b60..f5fb2adf2e 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -15,7 +15,7 @@ * * * 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. */ -#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 ANY_CHAR_SEL 0.9 /* not 1, since it won't match * end-of-string */