prestogres 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/ChangeLog +6 -0
- data/README.md +11 -3
- data/VERSION +1 -1
- data/config/pgpool.conf +3 -3
- data/config/postgresql.conf +1 -0
- metadata +5 -13
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWM3MmY0MDI2YWZiOGZmZWM4MTNkZmUyMWIyMDU4YmE5YzdkZjEwYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YmJhODI5MWRhMTkzOGZiMWNkNWNiYmRmOTgxZjI3OGE3YjUwYmI4MQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTZkZWM4MmYwYzA0MTA5ZjA1NWFmMjQ1NTY4ODVlYjM2MjVmMmVlY2ZmMTNj
|
10
|
+
MDY5ZmVmZTZjYmRiMzA3NzFhNjAyNzA5Y2Y4YzdjMjA1Yzk0NDMyMjU3ODVl
|
11
|
+
ZGI0NzQ0ODc5NTQ2YzNkN2RhZjljOWJlYTg3MmY3MmYyMjliMDA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YjkzMGUzYTg4NjZjOTYxNjYwNDI3NmU2ZDRiMWUxYTJlZTYxZTM2MzQwNjhh
|
14
|
+
NjYwMDExMWE1ZGYzODRmYWY1ZDlkZTc3OWI3MWU5N2Q0NDNlMzAzMjM4Y2Uy
|
15
|
+
OTE1MGUxN2ZiZGYxZTJlZDAxMDdlODYyNmZjYzg0OWY0MTUwMTE=
|
data/ChangeLog
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
|
2
|
+
2014-04-22 version 0.4.3:
|
3
|
+
|
4
|
+
* Updated default parameters related to connections so that pgpool-II can
|
5
|
+
always acquire a connection to cancel a running query.
|
6
|
+
|
7
|
+
|
2
8
|
2014-03-19 version 0.4.2:
|
3
9
|
|
4
10
|
* Send queries to PostgreSQL if they most likely cause parse erorr because
|
data/README.md
CHANGED
@@ -70,9 +70,12 @@ You need to install PostgreSQL separately. Following commands install PostgreSQL
|
|
70
70
|
**Ubuntu/Debian:**
|
71
71
|
|
72
72
|
```
|
73
|
+
# add apt source
|
73
74
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
74
75
|
sudo apt-get update
|
76
|
+
# install PostgreSQL
|
75
77
|
sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-plpython-9.3
|
78
|
+
# install other dependencies
|
76
79
|
sudo apt-get install gcc make libssl-dev libpcre3-dev
|
77
80
|
sudo apt-get install ruby ruby-dev
|
78
81
|
```
|
@@ -80,8 +83,11 @@ sudo apt-get install ruby ruby-dev
|
|
80
83
|
**RedHat/CentOS:**
|
81
84
|
|
82
85
|
```
|
86
|
+
# add yum source
|
83
87
|
sudo yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
|
88
|
+
# install PostgreSQL
|
84
89
|
sudo yum install postgresql93-server postgresql93-contrib postgresql93-devel
|
90
|
+
# install other dependencies
|
85
91
|
sudo yum install gcc make openssl-devel pcre-devel
|
86
92
|
sudo yum install ruby ruby-devel
|
87
93
|
```
|
@@ -89,7 +95,9 @@ sudo yum install ruby ruby-devel
|
|
89
95
|
**Mac OS X:**
|
90
96
|
|
91
97
|
```
|
98
|
+
# install Homebrew
|
92
99
|
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
|
100
|
+
# install PostgreSQL
|
93
101
|
brew install postgresql
|
94
102
|
```
|
95
103
|
|
@@ -110,7 +118,7 @@ You can use `prestogres` command to setup & run them as following:
|
|
110
118
|
# 1. Create a data directory:
|
111
119
|
$ prestogres -D pgdata setup
|
112
120
|
|
113
|
-
# 2. Configure presto_server and presto_catalog parameters at least
|
121
|
+
# 2. Configure presto_server and presto_catalog parameters at least:
|
114
122
|
$ vi ./pgdata/pgpool/pgpool.conf
|
115
123
|
|
116
124
|
# 3. Run patched pgpool-II:
|
@@ -145,8 +153,8 @@ You need to set 2 kernel parameters to run PostgreSQL.
|
|
145
153
|
**Linux:**
|
146
154
|
|
147
155
|
```
|
148
|
-
sudo
|
149
|
-
sudo
|
156
|
+
sudo bash -c "echo kernel.shmmax = 17179869184 >> /etc/sysctl.conf"
|
157
|
+
sudo bash -c "echo kernel.shmall = 4194304 >> /etc/sysctl.conf"
|
150
158
|
sudo sysctl -p /etc/sysctl.conf
|
151
159
|
```
|
152
160
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/config/pgpool.conf
CHANGED
@@ -121,7 +121,7 @@ ssl = off
|
|
121
121
|
num_init_children = 32
|
122
122
|
# Number of pools
|
123
123
|
# (change requires restart)
|
124
|
-
max_pool =
|
124
|
+
max_pool = 2
|
125
125
|
# Number of connections per pool
|
126
126
|
# (change requires restart)
|
127
127
|
|
@@ -129,13 +129,13 @@ max_pool = 4
|
|
129
129
|
|
130
130
|
child_life_time = 300
|
131
131
|
# Pool exits after being idle for this many seconds
|
132
|
-
child_max_connections =
|
132
|
+
child_max_connections = 1
|
133
133
|
# Pool exits after receiving that many connections
|
134
134
|
# 0 means no exit
|
135
135
|
connection_life_time = 0
|
136
136
|
# Connection to backend closes after being idle for this many seconds
|
137
137
|
# 0 means no close
|
138
|
-
client_idle_limit =
|
138
|
+
client_idle_limit = 7200
|
139
139
|
# Client is disconnected after being idle for that many seconds
|
140
140
|
# (even inside an explicit transactions!)
|
141
141
|
# 0 means no disconnection
|
data/config/postgresql.conf
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prestogres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sadayuki Furuhashi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake-compiler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -469,27 +462,26 @@ files:
|
|
469
462
|
homepage: https://github.com/treasure-data/prestogres
|
470
463
|
licenses:
|
471
464
|
- Apache 2.0
|
465
|
+
metadata: {}
|
472
466
|
post_install_message:
|
473
467
|
rdoc_options: []
|
474
468
|
require_paths:
|
475
469
|
- lib
|
476
470
|
required_ruby_version: !ruby/object:Gem::Requirement
|
477
|
-
none: false
|
478
471
|
requirements:
|
479
472
|
- - ! '>='
|
480
473
|
- !ruby/object:Gem::Version
|
481
474
|
version: '0'
|
482
475
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
483
|
-
none: false
|
484
476
|
requirements:
|
485
477
|
- - ! '>='
|
486
478
|
- !ruby/object:Gem::Version
|
487
479
|
version: '0'
|
488
480
|
requirements: []
|
489
481
|
rubyforge_project:
|
490
|
-
rubygems_version:
|
482
|
+
rubygems_version: 2.2.2
|
491
483
|
signing_key:
|
492
|
-
specification_version:
|
484
|
+
specification_version: 4
|
493
485
|
summary: Presto PostgreSQL protocol gateway
|
494
486
|
test_files: []
|
495
487
|
has_rdoc: false
|