Commit ee81126d authored by Bruce Momjian's avatar Bruce Momjian

TODO item done:

  * Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
parent fd6b9f04
......@@ -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
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment