Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b21005f

Browse files
committed
Allow GEQO effort to be specified numerically, as well as
symbolic LOW/MEDIUM/HIGH values --- needed for experiments with other effort levels ...
1 parent cf14789 commit b21005f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/optimizer/geqo/geqo_params.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: geqo_params.c,v 1.15 1999/05/17 00:25:33 tgl Exp $
8+
* $Id: geqo_params.c,v 1.16 1999/05/22 19:29:01 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -168,6 +168,9 @@ geqo_params(int string_length)
168168
effort = MEDIUM_EFFORT;
169169
else if (strcmp(buf, HIGH) == 0)
170170
effort = HIGH_EFFORT;
171+
/* undocumented extension: specify effort numerically */
172+
else if (isdigit(buf[0]))
173+
effort = atoi(buf);
171174
}
172175

173176
}

0 commit comments

Comments
 (0)