Skip to content

Commit ee81126

Browse files
committed
TODO item done:
* Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
1 parent fd6b9f0 commit ee81126

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

doc/TODO

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ PERMISSIONS
4646
* Allow usernames to be specified directly in pg_hba.conf (Bruce)
4747
* Add PGPASSWORDFILE environment variable or ~/.pgpass to store
4848
user/host/password combinations
49-
* Remove PGPASSWORD because is insecure on some OS's
49+
* Remove PGPASSWORD because it is insecure on some OS's
5050
* Make single-user local access permissions the default by limiting
5151
permissions on the socket file (Peter E)
52-
* Use thread-safe crypt() in libpq, if available
5352
* -Allow permissions for functions (Peter E)
5453

5554
ADMIN
@@ -66,7 +65,7 @@ ADMIN
6665
flags unique
6766
* Allow logging of query durations
6867
* -Prevent SIGHUP and 'pg_ctl reload' from changing command line
69-
specified parameters to postgresql.conf defaults
68+
specified parameters to postgresql.conf defaults (Peter E)
7069

7170

7271
DATA TYPES

src/backend/utils/adt/selfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.105 2002/03/02 21:39:32 momjian Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.106 2002/03/08 04:29:01 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -2964,7 +2964,7 @@ prefix_selectivity(Query *root, Var *var, char *prefix)
29642964
* wildcards (such as % for LIKE or .* for regex) increase it.
29652965
*/
29662966

2967-
#define FIXED_CHAR_SEL 0.04 /* about 1/25 */
2967+
#define FIXED_CHAR_SEL 0.20 /* about 1/5 */
29682968
#define CHAR_RANGE_SEL 0.25
29692969
#define ANY_CHAR_SEL 0.9 /* not 1, since it won't match
29702970
* end-of-string */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy