2
2
* Routines for handling of 'SET var TO',
3
3
* 'SHOW var' and 'RESET var' statements.
4
4
*
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 $
6
6
*
7
7
*/
8
8
19
19
#include "mb/pg_wchar.h"
20
20
#endif
21
21
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
+
22
44
extern Cost _cpu_page_wight_ ;
23
45
extern Cost _cpu_index_page_wight_ ;
24
46
extern bool _use_geqo_ ;
@@ -128,7 +150,7 @@ get_token(char **tok, char **val, const char *str)
128
150
}
129
151
130
152
/*-----------------------------------------------------------------------*/
131
- bool
153
+ static bool
132
154
parse_geqo (const char * value )
133
155
{
134
156
const char * rest ;
@@ -175,7 +197,7 @@ parse_geqo(const char *value)
175
197
return TRUE;
176
198
}
177
199
178
- bool
200
+ static bool
179
201
show_geqo ()
180
202
{
181
203
@@ -186,7 +208,7 @@ show_geqo()
186
208
return TRUE;
187
209
}
188
210
189
- bool
211
+ static bool
190
212
reset_geqo (void )
191
213
{
192
214
@@ -199,7 +221,7 @@ reset_geqo(void)
199
221
return TRUE;
200
222
}
201
223
202
- bool
224
+ static bool
203
225
parse_r_plans (const char * value )
204
226
{
205
227
if (value == NULL )
@@ -219,7 +241,7 @@ parse_r_plans(const char *value)
219
241
}
220
242
221
243
/*-----------------------------------------------------------------------*/
222
- bool
244
+ static bool
223
245
show_r_plans ()
224
246
{
225
247
@@ -230,7 +252,7 @@ show_r_plans()
230
252
return TRUE;
231
253
}
232
254
233
- bool
255
+ static bool
234
256
reset_r_plans ()
235
257
{
236
258
@@ -243,7 +265,7 @@ reset_r_plans()
243
265
}
244
266
245
267
/*-----------------------------------------------------------------------*/
246
- bool
268
+ static bool
247
269
parse_cost_heap (const char * value )
248
270
{
249
271
float32 res ;
@@ -268,15 +290,15 @@ show_cost_heap()
268
290
return TRUE;
269
291
}
270
292
271
- bool
293
+ static bool
272
294
reset_cost_heap ()
273
295
{
274
296
_cpu_page_wight_ = _CPU_PAGE_WEIGHT_ ;
275
297
return TRUE;
276
298
}
277
299
278
300
/*-----------------------------------------------------------------------*/
279
- bool
301
+ static bool
280
302
parse_cost_index (const char * value )
281
303
{
282
304
float32 res ;
@@ -301,15 +323,15 @@ show_cost_index()
301
323
return TRUE;
302
324
}
303
325
304
- bool
326
+ static bool
305
327
reset_cost_index ()
306
328
{
307
329
_cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_ ;
308
330
return TRUE;
309
331
}
310
332
311
333
/*-----------------------------------------------------------------------*/
312
- bool
334
+ static bool
313
335
parse_date (const char * value )
314
336
{
315
337
char * tok ;
@@ -379,7 +401,7 @@ parse_date(const char *value)
379
401
return TRUE;
380
402
}
381
403
382
- bool
404
+ static bool
383
405
show_date ()
384
406
{
385
407
char buf [64 ];
@@ -431,7 +453,7 @@ static char tzbuf[64];
431
453
* Try to save existing TZ environment variable for later use in RESET TIME ZONE.
432
454
* - thomas 1997-11-10
433
455
*/
434
- bool
456
+ static bool
435
457
parse_timezone (const char * value )
436
458
{
437
459
char * tok ;
@@ -468,7 +490,7 @@ parse_timezone(const char *value)
468
490
return TRUE;
469
491
} /* parse_timezone() */
470
492
471
- bool
493
+ static bool
472
494
show_timezone ()
473
495
{
474
496
char * tz ;
@@ -625,7 +647,7 @@ indexes when multiple ORs are specified in the where clause.
625
647
See optimizer/prep/prepkeyset.c for more on this.
626
648
daveh@insightdist.com 6/16/98
627
649
-----------------------------------------------------------------------*/
628
- bool
650
+ static bool
629
651
parse_ksqo (const char * value )
630
652
{
631
653
if (value == NULL )
@@ -644,7 +666,7 @@ parse_ksqo(const char *value)
644
666
return TRUE;
645
667
}
646
668
647
- bool
669
+ static bool
648
670
show_ksqo ()
649
671
{
650
672
0 commit comments