22 * Routines for handling of 'SET var TO',
33 *'SHOW var' and 'RESET var' statements.
44 *
5- * $Id: variable.c,v 1.13 1998/09/03 02:34:29 momjian Exp $
5+ * $Id: variable.c,v 1.14 1998/10/08 18:29:20 momjian Exp $
66 *
77 */
88
1919#include "mb/pg_wchar.h"
2020#endif
2121
22+ static bool show_date (void );
23+ static bool reset_date (void );
24+ static bool parse_date (const char * );
25+ static bool show_timezone (void );
26+ static bool reset_timezone (void );
27+ static bool parse_timezone (const char * );
28+ static bool show_cost_heap (void );
29+ static bool reset_cost_heap (void );
30+ static bool parse_cost_heap (const char * );
31+ static bool show_cost_index (void );
32+ static bool reset_cost_index (void );
33+ static bool parse_cost_index (const char * );
34+ static bool show_r_plans (void );
35+ static bool reset_r_plans ();
36+ static bool parse_r_plans (const char * );
37+ static bool reset_geqo (void );
38+ static bool show_geqo (void );
39+ static bool parse_geqo (const char * );
40+ static bool show_ksqo (void );
41+ static bool reset_ksqo (void );
42+ static bool parse_ksqo (const char * );
43+
2244extern Cost _cpu_page_wight_ ;
2345extern Cost _cpu_index_page_wight_ ;
2446extern bool _use_geqo_ ;
@@ -128,7 +150,7 @@ get_token(char **tok, char **val, const char *str)
128150}
129151
130152/*-----------------------------------------------------------------------*/
131- bool
153+ static bool
132154parse_geqo (const char * value )
133155{
134156const char * rest ;
@@ -175,7 +197,7 @@ parse_geqo(const char *value)
175197return TRUE;
176198}
177199
178- bool
200+ static bool
179201show_geqo ()
180202{
181203
@@ -186,7 +208,7 @@ show_geqo()
186208return TRUE;
187209}
188210
189- bool
211+ static bool
190212reset_geqo (void )
191213{
192214
@@ -199,7 +221,7 @@ reset_geqo(void)
199221return TRUE;
200222}
201223
202- bool
224+ static bool
203225parse_r_plans (const char * value )
204226{
205227if (value == NULL )
@@ -219,7 +241,7 @@ parse_r_plans(const char *value)
219241}
220242
221243/*-----------------------------------------------------------------------*/
222- bool
244+ static bool
223245show_r_plans ()
224246{
225247
@@ -230,7 +252,7 @@ show_r_plans()
230252return TRUE;
231253}
232254
233- bool
255+ static bool
234256reset_r_plans ()
235257{
236258
@@ -243,7 +265,7 @@ reset_r_plans()
243265}
244266
245267/*-----------------------------------------------------------------------*/
246- bool
268+ static bool
247269parse_cost_heap (const char * value )
248270{
249271float32 res ;
@@ -268,15 +290,15 @@ show_cost_heap()
268290return TRUE;
269291}
270292
271- bool
293+ static bool
272294reset_cost_heap ()
273295{
274296_cpu_page_wight_ = _CPU_PAGE_WEIGHT_ ;
275297return TRUE;
276298}
277299
278300/*-----------------------------------------------------------------------*/
279- bool
301+ static bool
280302parse_cost_index (const char * value )
281303{
282304float32 res ;
@@ -301,15 +323,15 @@ show_cost_index()
301323return TRUE;
302324}
303325
304- bool
326+ static bool
305327reset_cost_index ()
306328{
307329_cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_ ;
308330return TRUE;
309331}
310332
311333/*-----------------------------------------------------------------------*/
312- bool
334+ static bool
313335parse_date (const char * value )
314336{
315337char * tok ;
@@ -379,7 +401,7 @@ parse_date(const char *value)
379401return TRUE;
380402}
381403
382- bool
404+ static bool
383405show_date ()
384406{
385407char buf [64 ];
@@ -431,7 +453,7 @@ static char tzbuf[64];
431453 * Try to save existing TZ environment variable for later use in RESET TIME ZONE.
432454 * - thomas 1997-11-10
433455 */
434- bool
456+ static bool
435457parse_timezone (const char * value )
436458{
437459char * tok ;
@@ -468,7 +490,7 @@ parse_timezone(const char *value)
468490return TRUE;
469491}/* parse_timezone() */
470492
471- bool
493+ static bool
472494show_timezone ()
473495{
474496char * tz ;
@@ -625,7 +647,7 @@ indexes when multiple ORs are specified in the where clause.
625647See optimizer/prep/prepkeyset.c for more on this.
626648daveh@insightdist.com 6/16/98
627649-----------------------------------------------------------------------*/
628- bool
650+ static bool
629651parse_ksqo (const char * value )
630652{
631653if (value == NULL )
@@ -644,7 +666,7 @@ parse_ksqo(const char *value)
644666return TRUE;
645667}
646668
647- bool
669+ static bool
648670show_ksqo ()
649671{
650672