blob: 2802da7f66577067532e514b10d3ac67bab40e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*-------------------------------------------------------------------------
*
* pgx_ctl.h
*
* Configuration module of Postgres-XC configuration and operation tool.
*
* Copyright (c) 2013 Postgres-XC Development Group
*
*-------------------------------------------------------------------------
*/
#ifndef PGXC_CTL_H
#define PGXC_CTL_H
#include <stdio.h>
/* Common macros */
#define MAXPATH (512-1)
#define PGXC_CTL_HOME "PGXC_CTL_HOME"
#define HOME "HOME"
#define PGXC_CTL_BASH "pgxc_ctl_bash"
#define MAXLINE (8192-1)
#define DEFAULT_CONF_FILE_NAME "pgxc_ctl.conf"
#define pgxc_ctl_home_def "pgxc_ctl"
#define MAXTOKEN (64-1)
#define true 1
#define false 0
#define TRUE 1
#define FALSE 0
/* Global variable definition */
extern char pgxc_ctl_home[];
extern char pgxc_bash_path[];
extern char pgxc_ctl_config_path[];
extern char progname[];
/* Important files */
extern FILE *inF;
extern FILE *outF;
/* pg_ctl stop option */
#define IMMEDIATE "immediate"
#define FAST "fast"
#define SMART "smart"
/* My nodename default --> used to ping */
#define DefaultName "pgxc_ctl"
extern char *myName; /* pgxc_ctl name used to ping */
#define DefaultDatabase "postgres"
extern char *defaultDatabase;
extern void print_simple_node_info(char *nodeName, char *port, char *dir,
char *extraConfig, char *specificExtraConfig);
#endif /* PGXC_CTL_H */
|