File: pgpool2-debian-config.patch

package info (click to toggle)
pgpool2 4.6.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,932 kB
  • sloc: ansic: 94,428; yacc: 30,506; sh: 11,441; lex: 3,818; sql: 1,320; makefile: 955; java: 848; asm: 673; php: 125; ruby: 94
file content (70 lines) | stat: -rw-r--r-- 2,891 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
From: Marco Nenciarini <mnencia@debian.org>
Date: Wed, 24 Feb 2016 12:33:25 +0100
Subject: pgpool2 debian config

---
 src/include/pool.h                         |  6 +++---
 src/sample/pgpool.conf.sample              | 10 +++++-----
 src/sample/pgpool.conf.sample-master-slave | 10 +++++-----
 src/sample/pgpool.conf.sample-replication  | 10 +++++-----
 src/sample/pgpool.conf.sample-stream       | 10 +++++-----
 5 files changed, 23 insertions(+), 23 deletions(-)

--- a/src/include/pool.h
+++ b/src/include/pool.h
@@ -56,16 +56,16 @@
 #define HBA_CONF_FILE_NAME "pool_hba.conf"
 
 /* pid file directory */
-#define DEFAULT_LOGDIR "/tmp"
+#define DEFAULT_LOGDIR "/var/log/postgresql"
 
 /* Unix domain socket directory */
-#define DEFAULT_SOCKET_DIR "/tmp"
+#define DEFAULT_SOCKET_DIR "/var/run/postgresql"
 
 /* Unix domain socket directory for watchdog IPC */
 #define DEFAULT_WD_IPC_SOCKET_DIR "/tmp"
 
 /* pid file name */
-#define DEFAULT_PID_FILE_NAME "/var/run/pgpool/pgpool.pid"
+#define DEFAULT_PID_FILE_NAME "/var/run/postgresql/pgpool.pid"
 
 /* status file name */
 #define STATUS_FILE_NAME "pgpool_status"
--- a/src/sample/pgpool.conf.sample
+++ b/src/sample/pgpool.conf.sample
@@ -40,7 +40,7 @@ backend_clustering_mode = 'streaming_rep
 #port = 9999
                                    # Port number
                                    # (change requires restart)
-#unix_socket_directories = '/tmp'
+#unix_socket_directories = '/var/run/postgresql'
                                    # Unix domain socket path(s)
                                    # The Debian package defaults to
                                    # /var/run/postgresql
@@ -67,7 +67,7 @@ backend_clustering_mode = 'streaming_rep
 #pcp_port = 9898
                                    # Port number for pcp
                                    # (change requires restart)
-#pcp_socket_dir = '/tmp'
+#pcp_socket_dir = '/var/run/postgresql'
                                    # Unix domain socket path(s) for pcp
                                    # The Debian package defaults to
                                    # /var/run/postgresql
@@ -340,13 +340,13 @@ backend_clustering_mode = 'streaming_rep
 # FILE LOCATIONS
 #------------------------------------------------------------------------------
 
-#pid_file_name = '/var/run/pgpool/pgpool.pid'
+#pid_file_name = '/var/run/postgresql/pgpool.pid'
                                    # PID file name
                                    # Can be specified as relative to the"
                                    # location of pgpool.conf file or
                                    # as an absolute path
                                    # (change requires restart)
-#logdir = '/tmp'
+#logdir = '/var/log/postgresql'
                                    # Directory of pgPool status file
                                    # (change requires restart)