diff --git a/doc/TODO b/doc/TODO index ef2391f147553b6deea4f5dfa52f1cc927fe8b76..484c5c473c724546f5fa7216b9abb16f276942b9 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 a6f9bf6b60d9ed6444c0e83f1440d564e3a54c90..f5fb2adf2ebf318765cbd46433e723fd009d27b1 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 */