File: pgpool2-debian-config.patch

package info (click to toggle)
pgpool2 4.3.5-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 27,084 kB
  • sloc: ansic: 90,252; yacc: 28,031; sh: 18,042; lex: 2,116; sql: 1,213; makefile: 934; java: 844; asm: 556; php: 125; ruby: 94
file content (74 lines) | stat: -rw-r--r-- 3,095 bytes parent folder | download
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
71
72
73
74
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
@@ -69,16 +69,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
@@ -36,10 +36,10 @@ backend_clustering_mode = 'streaming_rep
                                    # Host name or IP address to listen on:
                                    # '*' for all, '' for no TCP/IP connections
                                    # (change requires restart)
-#port = 9999
+#port = 5433
                                    # Port number
                                    # (change requires restart)
-#socket_dir = '/tmp'
+#socket_dir = '/var/run/postgresql'
                                    # Unix domain socket path
                                    # The Debian package defaults to
                                    # /var/run/postgresql
@@ -59,7 +59,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 for pcp
                                    # The Debian package defaults to
                                    # /var/run/postgresql
@@ -292,13 +292,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)