prestogres 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +20 -0
  4. data/LICENSE +202 -0
  5. data/NOTICE +22 -0
  6. data/README.md +217 -0
  7. data/Rakefile +13 -0
  8. data/VERSION +1 -0
  9. data/bin/prestogres +254 -0
  10. data/config/pcp.conf.sample +28 -0
  11. data/config/pgpool.conf +678 -0
  12. data/config/pool_hba.conf +84 -0
  13. data/config/pool_passwd +0 -0
  14. data/config/postgresql.conf +2 -0
  15. data/ext/.gitignore +6 -0
  16. data/ext/depend +26 -0
  17. data/ext/extconf.rb +4 -0
  18. data/ext/prestogres_config.c +12 -0
  19. data/pgpool2/.gitignore +36 -0
  20. data/pgpool2/AUTHORS +4 -0
  21. data/pgpool2/COPYING +12 -0
  22. data/pgpool2/ChangeLog +1 -0
  23. data/pgpool2/INSTALL +1 -0
  24. data/pgpool2/Makefile.am +159 -0
  25. data/pgpool2/Makefile.in +1187 -0
  26. data/pgpool2/NEWS +4960 -0
  27. data/pgpool2/README +1 -0
  28. data/pgpool2/README.euc_jp +1 -0
  29. data/pgpool2/README.online-recovery +62 -0
  30. data/pgpool2/TODO +103 -0
  31. data/pgpool2/ac_func_accept_argtypes.m4 +85 -0
  32. data/pgpool2/aclocal.m4 +1088 -0
  33. data/pgpool2/c-compiler.m4 +134 -0
  34. data/pgpool2/c-library.m4 +325 -0
  35. data/pgpool2/child.c +2097 -0
  36. data/pgpool2/config.guess +1532 -0
  37. data/pgpool2/config.h.in +332 -0
  38. data/pgpool2/config.sub +1640 -0
  39. data/pgpool2/configure +15752 -0
  40. data/pgpool2/configure.in +392 -0
  41. data/pgpool2/depcomp +522 -0
  42. data/pgpool2/doc/basebackup.sh +17 -0
  43. data/pgpool2/doc/pgpool-de.html +4220 -0
  44. data/pgpool2/doc/pgpool-en.html +5738 -0
  45. data/pgpool2/doc/pgpool-fr.html +4118 -0
  46. data/pgpool2/doc/pgpool-ja.css +198 -0
  47. data/pgpool2/doc/pgpool-ja.html +11279 -0
  48. data/pgpool2/doc/pgpool-zh_cn.html +4445 -0
  49. data/pgpool2/doc/pgpool.css +280 -0
  50. data/pgpool2/doc/pgpool_remote_start +13 -0
  51. data/pgpool2/doc/recovery.conf.sample +117 -0
  52. data/pgpool2/doc/tutorial-en.html +707 -0
  53. data/pgpool2/doc/tutorial-ja.html +422 -0
  54. data/pgpool2/doc/tutorial-memqcache-en.html +325 -0
  55. data/pgpool2/doc/tutorial-memqcache-ja.html +370 -0
  56. data/pgpool2/doc/tutorial-memqcache-zh_cn.html +322 -0
  57. data/pgpool2/doc/tutorial-watchdog-en.html +306 -0
  58. data/pgpool2/doc/tutorial-watchdog-ja.html +343 -0
  59. data/pgpool2/doc/tutorial-watchdog-zh_cn.html +301 -0
  60. data/pgpool2/doc/tutorial-zh_cn.html +537 -0
  61. data/pgpool2/doc/watchdog.png +0 -0
  62. data/pgpool2/doc/wd-en.html +236 -0
  63. data/pgpool2/doc/wd-en.jpg +0 -0
  64. data/pgpool2/doc/wd-ja.html +219 -0
  65. data/pgpool2/doc/wd-ja.jpg +0 -0
  66. data/pgpool2/doc/wd-zh_cn.html +201 -0
  67. data/pgpool2/doc/where_to_send_queries.odg +0 -0
  68. data/pgpool2/doc/where_to_send_queries.pdf +0 -0
  69. data/pgpool2/general.m4 +166 -0
  70. data/pgpool2/getopt_long.c +200 -0
  71. data/pgpool2/getopt_long.h +44 -0
  72. data/pgpool2/install-sh +251 -0
  73. data/pgpool2/ltmain.sh +8406 -0
  74. data/pgpool2/m4/libtool.m4 +7360 -0
  75. data/pgpool2/m4/ltoptions.m4 +368 -0
  76. data/pgpool2/m4/ltsugar.m4 +123 -0
  77. data/pgpool2/m4/ltversion.m4 +23 -0
  78. data/pgpool2/m4/lt~obsolete.m4 +92 -0
  79. data/pgpool2/main.c +2971 -0
  80. data/pgpool2/md5.c +444 -0
  81. data/pgpool2/md5.h +28 -0
  82. data/pgpool2/missing +360 -0
  83. data/pgpool2/mkinstalldirs +40 -0
  84. data/pgpool2/parser/Makefile.am +50 -0
  85. data/pgpool2/parser/Makefile.in +559 -0
  86. data/pgpool2/parser/copyfuncs.c +3310 -0
  87. data/pgpool2/parser/gram.c +39100 -0
  88. data/pgpool2/parser/gram.h +940 -0
  89. data/pgpool2/parser/gram.y +13408 -0
  90. data/pgpool2/parser/gramparse.h +74 -0
  91. data/pgpool2/parser/keywords.c +32 -0
  92. data/pgpool2/parser/keywords.h +39 -0
  93. data/pgpool2/parser/kwlist.h +425 -0
  94. data/pgpool2/parser/kwlookup.c +88 -0
  95. data/pgpool2/parser/list.c +1156 -0
  96. data/pgpool2/parser/makefuncs.c +518 -0
  97. data/pgpool2/parser/makefuncs.h +83 -0
  98. data/pgpool2/parser/memnodes.h +79 -0
  99. data/pgpool2/parser/nodes.c +29 -0
  100. data/pgpool2/parser/nodes.h +609 -0
  101. data/pgpool2/parser/outfuncs.c +5790 -0
  102. data/pgpool2/parser/parsenodes.h +2615 -0
  103. data/pgpool2/parser/parser.c +262 -0
  104. data/pgpool2/parser/parser.h +46 -0
  105. data/pgpool2/parser/pg_class.h +158 -0
  106. data/pgpool2/parser/pg_config_manual.h +273 -0
  107. data/pgpool2/parser/pg_list.h +352 -0
  108. data/pgpool2/parser/pg_trigger.h +147 -0
  109. data/pgpool2/parser/pg_wchar.h +492 -0
  110. data/pgpool2/parser/pool_memory.c +342 -0
  111. data/pgpool2/parser/pool_memory.h +77 -0
  112. data/pgpool2/parser/pool_parser.h +222 -0
  113. data/pgpool2/parser/pool_string.c +121 -0
  114. data/pgpool2/parser/pool_string.h +37 -0
  115. data/pgpool2/parser/primnodes.h +1280 -0
  116. data/pgpool2/parser/scan.c +4094 -0
  117. data/pgpool2/parser/scan.l +1451 -0
  118. data/pgpool2/parser/scanner.h +120 -0
  119. data/pgpool2/parser/scansup.c +221 -0
  120. data/pgpool2/parser/scansup.h +28 -0
  121. data/pgpool2/parser/snprintf.c +1102 -0
  122. data/pgpool2/parser/stringinfo.c +294 -0
  123. data/pgpool2/parser/stringinfo.h +178 -0
  124. data/pgpool2/parser/value.c +78 -0
  125. data/pgpool2/parser/value.h +62 -0
  126. data/pgpool2/parser/wchar.c +2048 -0
  127. data/pgpool2/pcp.conf.sample +28 -0
  128. data/pgpool2/pcp/Makefile.am +40 -0
  129. data/pgpool2/pcp/Makefile.in +771 -0
  130. data/pgpool2/pcp/libpcp_ext.h +250 -0
  131. data/pgpool2/pcp/md5.c +444 -0
  132. data/pgpool2/pcp/md5.h +28 -0
  133. data/pgpool2/pcp/pcp.c +1652 -0
  134. data/pgpool2/pcp/pcp.h +61 -0
  135. data/pgpool2/pcp/pcp_attach_node.c +172 -0
  136. data/pgpool2/pcp/pcp_detach_node.c +185 -0
  137. data/pgpool2/pcp/pcp_error.c +87 -0
  138. data/pgpool2/pcp/pcp_node_count.c +160 -0
  139. data/pgpool2/pcp/pcp_node_info.c +198 -0
  140. data/pgpool2/pcp/pcp_pool_status.c +166 -0
  141. data/pgpool2/pcp/pcp_proc_count.c +166 -0
  142. data/pgpool2/pcp/pcp_proc_info.c +261 -0
  143. data/pgpool2/pcp/pcp_promote_node.c +185 -0
  144. data/pgpool2/pcp/pcp_recovery_node.c +172 -0
  145. data/pgpool2/pcp/pcp_stop_pgpool.c +179 -0
  146. data/pgpool2/pcp/pcp_stream.c +385 -0
  147. data/pgpool2/pcp/pcp_stream.h +52 -0
  148. data/pgpool2/pcp/pcp_systemdb_info.c +194 -0
  149. data/pgpool2/pcp/pcp_watchdog_info.c +211 -0
  150. data/pgpool2/pcp_child.c +1493 -0
  151. data/pgpool2/pg_md5.c +305 -0
  152. data/pgpool2/pgpool.8.in +121 -0
  153. data/pgpool2/pgpool.conf +553 -0
  154. data/pgpool2/pgpool.conf.sample +666 -0
  155. data/pgpool2/pgpool.conf.sample-master-slave +665 -0
  156. data/pgpool2/pgpool.conf.sample-replication +664 -0
  157. data/pgpool2/pgpool.conf.sample-stream +664 -0
  158. data/pgpool2/pgpool.spec +264 -0
  159. data/pgpool2/pgpool_adm/TODO +7 -0
  160. data/pgpool2/pgpool_adm/pgpool_adm--1.0.sql +85 -0
  161. data/pgpool2/pgpool_adm/pgpool_adm.c +558 -0
  162. data/pgpool2/pgpool_adm/pgpool_adm.control +5 -0
  163. data/pgpool2/pgpool_adm/pgpool_adm.h +46 -0
  164. data/pgpool2/pgpool_adm/pgpool_adm.sql.in +85 -0
  165. data/pgpool2/pool.h +655 -0
  166. data/pgpool2/pool_auth.c +1390 -0
  167. data/pgpool2/pool_config.c +5007 -0
  168. data/pgpool2/pool_config.h +284 -0
  169. data/pgpool2/pool_config.l +3281 -0
  170. data/pgpool2/pool_config_md5.c +29 -0
  171. data/pgpool2/pool_connection_pool.c +812 -0
  172. data/pgpool2/pool_error.c +242 -0
  173. data/pgpool2/pool_globals.c +27 -0
  174. data/pgpool2/pool_hba.c +1723 -0
  175. data/pgpool2/pool_hba.conf.sample +67 -0
  176. data/pgpool2/pool_ip.c +567 -0
  177. data/pgpool2/pool_ip.h +65 -0
  178. data/pgpool2/pool_ipc.h +38 -0
  179. data/pgpool2/pool_lobj.c +242 -0
  180. data/pgpool2/pool_lobj.h +32 -0
  181. data/pgpool2/pool_memqcache.c +3818 -0
  182. data/pgpool2/pool_memqcache.h +268 -0
  183. data/pgpool2/pool_params.c +163 -0
  184. data/pgpool2/pool_passwd.c +249 -0
  185. data/pgpool2/pool_passwd.h +41 -0
  186. data/pgpool2/pool_path.c +193 -0
  187. data/pgpool2/pool_path.h +81 -0
  188. data/pgpool2/pool_process_context.c +247 -0
  189. data/pgpool2/pool_process_context.h +62 -0
  190. data/pgpool2/pool_process_query.c +5001 -0
  191. data/pgpool2/pool_process_reporting.c +1671 -0
  192. data/pgpool2/pool_process_reporting.h +44 -0
  193. data/pgpool2/pool_proto2.c +671 -0
  194. data/pgpool2/pool_proto_modules.c +3524 -0
  195. data/pgpool2/pool_proto_modules.h +185 -0
  196. data/pgpool2/pool_query_cache.c +1020 -0
  197. data/pgpool2/pool_query_context.c +1871 -0
  198. data/pgpool2/pool_query_context.h +105 -0
  199. data/pgpool2/pool_relcache.c +284 -0
  200. data/pgpool2/pool_relcache.h +78 -0
  201. data/pgpool2/pool_rewrite_outfuncs.c +9060 -0
  202. data/pgpool2/pool_rewrite_query.c +715 -0
  203. data/pgpool2/pool_rewrite_query.h +192 -0
  204. data/pgpool2/pool_select_walker.c +1150 -0
  205. data/pgpool2/pool_select_walker.h +68 -0
  206. data/pgpool2/pool_sema.c +161 -0
  207. data/pgpool2/pool_session_context.c +952 -0
  208. data/pgpool2/pool_session_context.h +203 -0
  209. data/pgpool2/pool_shmem.c +185 -0
  210. data/pgpool2/pool_signal.c +158 -0
  211. data/pgpool2/pool_signal.h +61 -0
  212. data/pgpool2/pool_ssl.c +339 -0
  213. data/pgpool2/pool_stream.c +962 -0
  214. data/pgpool2/pool_stream.h +61 -0
  215. data/pgpool2/pool_system.c +659 -0
  216. data/pgpool2/pool_timestamp.c +1215 -0
  217. data/pgpool2/pool_timestamp.h +38 -0
  218. data/pgpool2/pool_type.h +171 -0
  219. data/pgpool2/pool_worker_child.c +384 -0
  220. data/pgpool2/ps_status.c +404 -0
  221. data/pgpool2/recovery.c +435 -0
  222. data/pgpool2/redhat/pgpool.conf.sample.patch +52 -0
  223. data/pgpool2/redhat/pgpool.init +201 -0
  224. data/pgpool2/redhat/pgpool.sysconfig +7 -0
  225. data/pgpool2/redhat/rpm_installer/basebackup-replication.sh +53 -0
  226. data/pgpool2/redhat/rpm_installer/basebackup-stream.sh +55 -0
  227. data/pgpool2/redhat/rpm_installer/config_for_script +17 -0
  228. data/pgpool2/redhat/rpm_installer/failover.sh +64 -0
  229. data/pgpool2/redhat/rpm_installer/getsources.sh +141 -0
  230. data/pgpool2/redhat/rpm_installer/install.sh +1363 -0
  231. data/pgpool2/redhat/rpm_installer/pgpool_recovery_pitr +47 -0
  232. data/pgpool2/redhat/rpm_installer/pgpool_remote_start +15 -0
  233. data/pgpool2/redhat/rpm_installer/recovery.conf +4 -0
  234. data/pgpool2/redhat/rpm_installer/uninstall.sh +57 -0
  235. data/pgpool2/sample/dist_def_pgbench.sql +73 -0
  236. data/pgpool2/sample/pgpool.pam +3 -0
  237. data/pgpool2/sample/pgpool_recovery +20 -0
  238. data/pgpool2/sample/pgpool_recovery_pitr +19 -0
  239. data/pgpool2/sample/pgpool_remote_start +13 -0
  240. data/pgpool2/sample/replicate_def_pgbench.sql +18 -0
  241. data/pgpool2/sql/insert_lock.sql +15 -0
  242. data/pgpool2/sql/pgpool-recovery/pgpool-recovery.c +280 -0
  243. data/pgpool2/sql/pgpool-recovery/pgpool-recovery.sql.in +19 -0
  244. data/pgpool2/sql/pgpool-recovery/pgpool_recovery--1.0.sql +24 -0
  245. data/pgpool2/sql/pgpool-recovery/pgpool_recovery.control +5 -0
  246. data/pgpool2/sql/pgpool-recovery/uninstall_pgpool-recovery.sql +3 -0
  247. data/pgpool2/sql/pgpool-regclass/pgpool-regclass.c +206 -0
  248. data/pgpool2/sql/pgpool-regclass/pgpool-regclass.sql.in +4 -0
  249. data/pgpool2/sql/pgpool-regclass/pgpool_regclass--1.0.sql +7 -0
  250. data/pgpool2/sql/pgpool-regclass/pgpool_regclass.control +5 -0
  251. data/pgpool2/sql/pgpool-regclass/uninstall_pgpool-regclass.sql +1 -0
  252. data/pgpool2/sql/system_db.sql +38 -0
  253. data/pgpool2/strlcpy.c +85 -0
  254. data/pgpool2/test/C/test_extended.c +98 -0
  255. data/pgpool2/test/jdbc/.cvsignore +2 -0
  256. data/pgpool2/test/jdbc/AutoCommitTest.java +45 -0
  257. data/pgpool2/test/jdbc/BatchTest.java +55 -0
  258. data/pgpool2/test/jdbc/ColumnTest.java +60 -0
  259. data/pgpool2/test/jdbc/CreateTempTableTest.java +48 -0
  260. data/pgpool2/test/jdbc/InsertTest.java +34 -0
  261. data/pgpool2/test/jdbc/LockTest.java +36 -0
  262. data/pgpool2/test/jdbc/PgpoolTest.java +75 -0
  263. data/pgpool2/test/jdbc/README.euc_jp +73 -0
  264. data/pgpool2/test/jdbc/RunTest.java +83 -0
  265. data/pgpool2/test/jdbc/SelectTest.java +37 -0
  266. data/pgpool2/test/jdbc/UpdateTest.java +32 -0
  267. data/pgpool2/test/jdbc/expected/CreateTempTable +1 -0
  268. data/pgpool2/test/jdbc/expected/autocommit +10 -0
  269. data/pgpool2/test/jdbc/expected/batch +1 -0
  270. data/pgpool2/test/jdbc/expected/column +100 -0
  271. data/pgpool2/test/jdbc/expected/insert +1 -0
  272. data/pgpool2/test/jdbc/expected/lock +100 -0
  273. data/pgpool2/test/jdbc/expected/select +2 -0
  274. data/pgpool2/test/jdbc/expected/update +1 -0
  275. data/pgpool2/test/jdbc/pgpool.properties +7 -0
  276. data/pgpool2/test/jdbc/prepare.sql +54 -0
  277. data/pgpool2/test/jdbc/run.sh +6 -0
  278. data/pgpool2/test/parser/.cvsignore +6 -0
  279. data/pgpool2/test/parser/README +32 -0
  280. data/pgpool2/test/parser/expected/copy.out +17 -0
  281. data/pgpool2/test/parser/expected/create.out +64 -0
  282. data/pgpool2/test/parser/expected/cursor.out +37 -0
  283. data/pgpool2/test/parser/expected/delete.out +10 -0
  284. data/pgpool2/test/parser/expected/drop.out +12 -0
  285. data/pgpool2/test/parser/expected/insert.out +13 -0
  286. data/pgpool2/test/parser/expected/misc.out +28 -0
  287. data/pgpool2/test/parser/expected/prepare.out +4 -0
  288. data/pgpool2/test/parser/expected/privileges.out +31 -0
  289. data/pgpool2/test/parser/expected/scanner.out +30 -0
  290. data/pgpool2/test/parser/expected/select.out +89 -0
  291. data/pgpool2/test/parser/expected/transaction.out +38 -0
  292. data/pgpool2/test/parser/expected/update.out +11 -0
  293. data/pgpool2/test/parser/expected/v84.out +37 -0
  294. data/pgpool2/test/parser/expected/v90.out +25 -0
  295. data/pgpool2/test/parser/expected/var.out +22 -0
  296. data/pgpool2/test/parser/input/alter.sql +2 -0
  297. data/pgpool2/test/parser/input/copy.sql +17 -0
  298. data/pgpool2/test/parser/input/create.sql +64 -0
  299. data/pgpool2/test/parser/input/cursor.sql +37 -0
  300. data/pgpool2/test/parser/input/delete.sql +10 -0
  301. data/pgpool2/test/parser/input/drop.sql +12 -0
  302. data/pgpool2/test/parser/input/insert.sql +13 -0
  303. data/pgpool2/test/parser/input/misc.sql +28 -0
  304. data/pgpool2/test/parser/input/prepare.sql +4 -0
  305. data/pgpool2/test/parser/input/privileges.sql +31 -0
  306. data/pgpool2/test/parser/input/scanner.sql +34 -0
  307. data/pgpool2/test/parser/input/select.sql +89 -0
  308. data/pgpool2/test/parser/input/transaction.sql +38 -0
  309. data/pgpool2/test/parser/input/update.sql +11 -0
  310. data/pgpool2/test/parser/input/v84.sql +37 -0
  311. data/pgpool2/test/parser/input/v90.sql +38 -0
  312. data/pgpool2/test/parser/input/var.sql +22 -0
  313. data/pgpool2/test/parser/main.c +96 -0
  314. data/pgpool2/test/parser/parse_schedule +16 -0
  315. data/pgpool2/test/parser/pool.h +13 -0
  316. data/pgpool2/test/parser/run-test +62 -0
  317. data/pgpool2/test/pdo-test/README.euc_jp +58 -0
  318. data/pgpool2/test/pdo-test/SQLlist/test1.sql +3 -0
  319. data/pgpool2/test/pdo-test/SQLlist/test2.sql +3 -0
  320. data/pgpool2/test/pdo-test/collections.inc +11 -0
  321. data/pgpool2/test/pdo-test/def.inc +7 -0
  322. data/pgpool2/test/pdo-test/log.txt +0 -0
  323. data/pgpool2/test/pdo-test/mod/database.inc +36 -0
  324. data/pgpool2/test/pdo-test/mod/def.inc +0 -0
  325. data/pgpool2/test/pdo-test/mod/errorhandler.inc +27 -0
  326. data/pgpool2/test/pdo-test/pdotest.php +11 -0
  327. data/pgpool2/test/pdo-test/regsql.inc +56 -0
  328. data/pgpool2/test/pgpool_setup +898 -0
  329. data/pgpool2/test/regression/README +39 -0
  330. data/pgpool2/test/regression/clean.sh +21 -0
  331. data/pgpool2/test/regression/libs.sh +16 -0
  332. data/pgpool2/test/regression/regress.sh +166 -0
  333. data/pgpool2/test/regression/tests/001.load_balance/test.sh +128 -0
  334. data/pgpool2/test/regression/tests/002.native_replication/PgTester.java +47 -0
  335. data/pgpool2/test/regression/tests/002.native_replication/create.sql +6 -0
  336. data/pgpool2/test/regression/tests/002.native_replication/test.sh +71 -0
  337. data/pgpool2/test/regression/tests/003.failover/expected.r +6 -0
  338. data/pgpool2/test/regression/tests/003.failover/expected.s +6 -0
  339. data/pgpool2/test/regression/tests/003.failover/test.sh +45 -0
  340. data/pgpool2/test/regression/tests/004.watchdog/master.conf +12 -0
  341. data/pgpool2/test/regression/tests/004.watchdog/standby.conf +19 -0
  342. data/pgpool2/test/regression/tests/004.watchdog/test.sh +52 -0
  343. data/pgpool2/test/regression/tests/050.bug58/test.sh +50 -0
  344. data/pgpool2/test/regression/tests/051.bug60/bug.sql +12 -0
  345. data/pgpool2/test/regression/tests/051.bug60/database-clean.sql +6 -0
  346. data/pgpool2/test/regression/tests/051.bug60/database-setup.sql +28 -0
  347. data/pgpool2/test/regression/tests/051.bug60/test.sh +79 -0
  348. data/pgpool2/test/regression/tests/052.do_query/test.sh +44 -0
  349. data/pgpool2/test/regression/tests/053.insert_lock_hangs/test.sh +81 -0
  350. data/pgpool2/test/regression/tests/054.postgres_fdw/test.sh +67 -0
  351. data/pgpool2/test/regression/tests/055.backend_all_down/test.sh +52 -0
  352. data/pgpool2/test/regression/tests/056.bug63/jdbctest2.java +66 -0
  353. data/pgpool2/test/regression/tests/056.bug63/test.sh +47 -0
  354. data/pgpool2/test/regression/tests/057.bug61/test.sh +40 -0
  355. data/pgpool2/test/regression/tests/058.bug68/jdbctest3.java +45 -0
  356. data/pgpool2/test/regression/tests/058.bug68/test.sh +47 -0
  357. data/pgpool2/test/timestamp/expected/insert.out +16 -0
  358. data/pgpool2/test/timestamp/expected/misc.out +3 -0
  359. data/pgpool2/test/timestamp/expected/update.out +6 -0
  360. data/pgpool2/test/timestamp/input/insert.sql +16 -0
  361. data/pgpool2/test/timestamp/input/misc.sql +3 -0
  362. data/pgpool2/test/timestamp/input/update.sql +6 -0
  363. data/pgpool2/test/timestamp/main.c +129 -0
  364. data/pgpool2/test/timestamp/parse_schedule +3 -0
  365. data/pgpool2/test/timestamp/run-test +69 -0
  366. data/pgpool2/version.h +1 -0
  367. data/pgpool2/watchdog/Makefile.am +17 -0
  368. data/pgpool2/watchdog/Makefile.in +505 -0
  369. data/pgpool2/watchdog/test/stab.c +266 -0
  370. data/pgpool2/watchdog/test/test.c +85 -0
  371. data/pgpool2/watchdog/test/wd_child_t.c +87 -0
  372. data/pgpool2/watchdog/test/wd_lifecheck_t.c +87 -0
  373. data/pgpool2/watchdog/test/wd_packet_t.c +87 -0
  374. data/pgpool2/watchdog/test/wd_ping_t.c +20 -0
  375. data/pgpool2/watchdog/watchdog.c +408 -0
  376. data/pgpool2/watchdog/watchdog.h +209 -0
  377. data/pgpool2/watchdog/wd_child.c +444 -0
  378. data/pgpool2/watchdog/wd_ext.h +123 -0
  379. data/pgpool2/watchdog/wd_heartbeat.c +577 -0
  380. data/pgpool2/watchdog/wd_if.c +216 -0
  381. data/pgpool2/watchdog/wd_init.c +126 -0
  382. data/pgpool2/watchdog/wd_interlock.c +347 -0
  383. data/pgpool2/watchdog/wd_lifecheck.c +512 -0
  384. data/pgpool2/watchdog/wd_list.c +429 -0
  385. data/pgpool2/watchdog/wd_packet.c +1159 -0
  386. data/pgpool2/watchdog/wd_ping.c +330 -0
  387. data/pgpool2/ylwrap +223 -0
  388. data/pgsql/presto_client.py +346 -0
  389. data/pgsql/prestogres.py +156 -0
  390. data/pgsql/setup_functions.sql +21 -0
  391. data/pgsql/setup_language.sql +3 -0
  392. data/prestogres.gemspec +23 -0
  393. metadata +496 -0
@@ -0,0 +1,664 @@
1
+ # ----------------------------
2
+ # pgPool-II configuration file
3
+ # ----------------------------
4
+ #
5
+ # This file consists of lines of the form:
6
+ #
7
+ # name = value
8
+ #
9
+ # Whitespace may be used. Comments are introduced with "#" anywhere on a line.
10
+ # The complete list of parameter names and allowed values can be found in the
11
+ # pgPool-II documentation.
12
+ #
13
+ # This file is read on server startup and when the server receives a SIGHUP
14
+ # signal. If you edit the file on a running system, you have to SIGHUP the
15
+ # server for the changes to take effect, or use "pgpool reload". Some
16
+ # parameters, which are marked below, require a server shutdown and restart to
17
+ # take effect.
18
+ #
19
+
20
+
21
+ #------------------------------------------------------------------------------
22
+ # CONNECTIONS
23
+ #------------------------------------------------------------------------------
24
+
25
+ # - pgpool Connection Settings -
26
+
27
+ listen_addresses = 'localhost'
28
+ # Host name or IP address to listen on:
29
+ # '*' for all, '' for no TCP/IP connections
30
+ # (change requires restart)
31
+ port = 9999
32
+ # Port number
33
+ # (change requires restart)
34
+ socket_dir = '/tmp'
35
+ # Unix domain socket path
36
+ # The Debian package defaults to
37
+ # /var/run/postgresql
38
+ # (change requires restart)
39
+
40
+
41
+ # - pgpool Communication Manager Connection Settings -
42
+
43
+ pcp_port = 9898
44
+ # Port number for pcp
45
+ # (change requires restart)
46
+ pcp_socket_dir = '/tmp'
47
+ # Unix domain socket path for pcp
48
+ # The Debian package defaults to
49
+ # /var/run/postgresql
50
+ # (change requires restart)
51
+
52
+ # - Backend Connection Settings -
53
+
54
+ backend_hostname0 = 'host1'
55
+ # Host name or IP address to connect to for backend 0
56
+ backend_port0 = 5432
57
+ # Port number for backend 0
58
+ backend_weight0 = 1
59
+ # Weight for backend 0 (only in load balancing mode)
60
+ backend_data_directory0 = '/data'
61
+ # Data directory for backend 0
62
+ backend_flag0 = 'ALLOW_TO_FAILOVER'
63
+ # Controls various backend behavior
64
+ # ALLOW_TO_FAILOVER or DISALLOW_TO_FAILOVER
65
+ #backend_hostname1 = 'host2'
66
+ #backend_port1 = 5433
67
+ #backend_weight1 = 1
68
+ #backend_data_directory1 = '/data1'
69
+ #backend_flag1 = 'ALLOW_TO_FAILOVER'
70
+
71
+ # - Authentication -
72
+
73
+ enable_pool_hba = off
74
+ # Use pool_hba.conf for client authentication
75
+ pool_passwd = 'pool_passwd'
76
+ # File name of pool_passwd for md5 authentication.
77
+ # "" disables pool_passwd.
78
+ # (change requires restart)
79
+ authentication_timeout = 60
80
+ # Delay in seconds to complete client authentication
81
+ # 0 means no timeout.
82
+
83
+ # - SSL Connections -
84
+
85
+ ssl = off
86
+ # Enable SSL support
87
+ # (change requires restart)
88
+ #ssl_key = './server.key'
89
+ # Path to the SSL private key file
90
+ # (change requires restart)
91
+ #ssl_cert = './server.cert'
92
+ # Path to the SSL public certificate file
93
+ # (change requires restart)
94
+ #ssl_ca_cert = ''
95
+ # Path to a single PEM format file
96
+ # containing CA root certificate(s)
97
+ # (change requires restart)
98
+ #ssl_ca_cert_dir = ''
99
+ # Directory containing CA root certificate(s)
100
+ # (change requires restart)
101
+
102
+
103
+ #------------------------------------------------------------------------------
104
+ # POOLS
105
+ #------------------------------------------------------------------------------
106
+
107
+ # - Pool size -
108
+
109
+ num_init_children = 32
110
+ # Number of pools
111
+ # (change requires restart)
112
+ max_pool = 4
113
+ # Number of connections per pool
114
+ # (change requires restart)
115
+
116
+ # - Life time -
117
+
118
+ child_life_time = 300
119
+ # Pool exits after being idle for this many seconds
120
+ child_max_connections = 0
121
+ # Pool exits after receiving that many connections
122
+ # 0 means no exit
123
+ connection_life_time = 0
124
+ # Connection to backend closes after being idle for this many seconds
125
+ # 0 means no close
126
+ client_idle_limit = 0
127
+ # Client is disconnected after being idle for that many seconds
128
+ # (even inside an explicit transactions!)
129
+ # 0 means no disconnection
130
+
131
+
132
+ #------------------------------------------------------------------------------
133
+ # LOGS
134
+ #------------------------------------------------------------------------------
135
+
136
+ # - Where to log -
137
+
138
+ log_destination = 'stderr'
139
+ # Where to log
140
+ # Valid values are combinations of stderr,
141
+ # and syslog. Default to stderr.
142
+
143
+ # - What to log -
144
+
145
+ print_timestamp = on
146
+ # Print timestamp on each line
147
+ # (change requires restart)
148
+
149
+ log_connections = off
150
+ # Log connections
151
+ log_hostname = off
152
+ # Hostname will be shown in ps status
153
+ # and in logs if connections are logged
154
+ log_statement = off
155
+ # Log all statements
156
+ log_per_node_statement = off
157
+ # Log all statements
158
+ # with node and backend informations
159
+ log_standby_delay = 'if_over_threshold'
160
+ # Log standby delay
161
+ # Valid values are combinations of always,
162
+ # if_over_threshold, none
163
+
164
+ # - Syslog specific -
165
+
166
+ syslog_facility = 'LOCAL0'
167
+ # Syslog local facility. Default to LOCAL0
168
+ syslog_ident = 'pgpool'
169
+ # Syslog program identification string
170
+ # Default to 'pgpool'
171
+
172
+ # - Debug -
173
+
174
+ debug_level = 0
175
+ # Debug message verbosity level
176
+ # 0 means no message, 1 or more mean verbose
177
+
178
+
179
+ #------------------------------------------------------------------------------
180
+ # FILE LOCATIONS
181
+ #------------------------------------------------------------------------------
182
+
183
+ pid_file_name = '/var/run/pgpool/pgpool.pid'
184
+ # PID file name
185
+ # (change requires restart)
186
+ logdir = '/tmp'
187
+ # Directory of pgPool status file
188
+ # (change requires restart)
189
+
190
+
191
+ #------------------------------------------------------------------------------
192
+ # CONNECTION POOLING
193
+ #------------------------------------------------------------------------------
194
+
195
+ connection_cache = on
196
+ # Activate connection pools
197
+ # (change requires restart)
198
+
199
+ # Semicolon separated list of queries
200
+ # to be issued at the end of a session
201
+ # The default is for 8.3 and later
202
+ reset_query_list = 'ABORT; DISCARD ALL'
203
+ # The following one is for 8.2 and before
204
+ #reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
205
+
206
+
207
+ #------------------------------------------------------------------------------
208
+ # REPLICATION MODE
209
+ #------------------------------------------------------------------------------
210
+
211
+ replication_mode = off
212
+ # Activate replication mode
213
+ # (change requires restart)
214
+ replicate_select = off
215
+ # Replicate SELECT statements
216
+ # when in replication or parallel mode
217
+ # replicate_select is higher priority than
218
+ # load_balance_mode.
219
+
220
+ insert_lock = off
221
+ # Automatically locks a dummy row or a table
222
+ # with INSERT statements to keep SERIAL data
223
+ # consistency
224
+ # Without SERIAL, no lock will be issued
225
+ lobj_lock_table = ''
226
+ # When rewriting lo_creat command in
227
+ # replication mode, specify table name to
228
+ # lock
229
+
230
+ # - Degenerate handling -
231
+
232
+ replication_stop_on_mismatch = off
233
+ # On disagreement with the packet kind
234
+ # sent from backend, degenerate the node
235
+ # which is most likely "minority"
236
+ # If off, just force to exit this session
237
+
238
+ failover_if_affected_tuples_mismatch = off
239
+ # On disagreement with the number of affected
240
+ # tuples in UPDATE/DELETE queries, then
241
+ # degenerate the node which is most likely
242
+ # "minority".
243
+ # If off, just abort the transaction to
244
+ # keep the consistency
245
+
246
+
247
+ #------------------------------------------------------------------------------
248
+ # LOAD BALANCING MODE
249
+ #------------------------------------------------------------------------------
250
+
251
+ load_balance_mode = on
252
+ # Activate load balancing mode
253
+ # (change requires restart)
254
+ ignore_leading_white_space = on
255
+ # Ignore leading white spaces of each query
256
+ white_function_list = ''
257
+ # Comma separated list of function names
258
+ # that don't write to database
259
+ # Regexp are accepted
260
+ black_function_list = 'currval,lastval,nextval,setval'
261
+ # Comma separated list of function names
262
+ # that write to database
263
+ # Regexp are accepted
264
+
265
+
266
+ #------------------------------------------------------------------------------
267
+ # MASTER/SLAVE MODE
268
+ #------------------------------------------------------------------------------
269
+
270
+ master_slave_mode = on
271
+ # Activate master/slave mode
272
+ # (change requires restart)
273
+ master_slave_sub_mode = 'stream'
274
+ # Master/slave sub mode
275
+ # Valid values are combinations slony or
276
+ # stream. Default is slony.
277
+ # (change requires restart)
278
+
279
+ # - Streaming -
280
+
281
+ sr_check_period = 10
282
+ # Streaming replication check period
283
+ # Disabled (0) by default
284
+ sr_check_user = 'nobody'
285
+ # Streaming replication check user
286
+ # This is neccessary even if you disable streaming
287
+ # replication delay check by sr_check_period = 0
288
+ sr_check_password = ''
289
+ # Password for streaming replication check user
290
+ delay_threshold = 10000000
291
+ # Threshold before not dispatching query to standby node
292
+ # Unit is in bytes
293
+ # Disabled (0) by default
294
+
295
+ # - Special commands -
296
+
297
+ follow_master_command = ''
298
+ # Executes this command after master failover
299
+ # Special values:
300
+ # %d = node id
301
+ # %h = host name
302
+ # %p = port number
303
+ # %D = database cluster path
304
+ # %m = new master node id
305
+ # %H = hostname of the new master node
306
+ # %M = old master node id
307
+ # %P = old primary node id
308
+ # %r = new master port number
309
+ # %R = new master database cluster path
310
+ # %% = '%' character
311
+
312
+
313
+ #------------------------------------------------------------------------------
314
+ # PARALLEL MODE
315
+ #------------------------------------------------------------------------------
316
+
317
+ parallel_mode = off
318
+ # Activates parallel query mode
319
+ # (change requires restart)
320
+ pgpool2_hostname = ''
321
+ # Set pgpool2 hostname
322
+ # (change requires restart)
323
+
324
+ # - System DB info -
325
+
326
+ #system_db_hostname = 'localhost'
327
+ # (change requires restart)
328
+ #system_db_port = 5432
329
+ # (change requires restart)
330
+ #system_db_dbname = 'pgpool'
331
+ # (change requires restart)
332
+ #system_db_schema = 'pgpool_catalog'
333
+ # (change requires restart)
334
+ #system_db_user = 'pgpool'
335
+ # (change requires restart)
336
+ #system_db_password = ''
337
+ # (change requires restart)
338
+
339
+
340
+ #------------------------------------------------------------------------------
341
+ # HEALTH CHECK
342
+ #------------------------------------------------------------------------------
343
+
344
+ health_check_period = 0
345
+ # Health check period
346
+ # Disabled (0) by default
347
+ health_check_timeout = 20
348
+ # Health check timeout
349
+ # 0 means no timeout
350
+ health_check_user = 'nobody'
351
+ # Health check user
352
+ health_check_password = ''
353
+ # Password for health check user
354
+ health_check_max_retries = 0
355
+ # Maximum number of times to retry a failed health check before giving up.
356
+ health_check_retry_delay = 1
357
+ # Amount of time to wait (in seconds) between retries.
358
+
359
+
360
+ #------------------------------------------------------------------------------
361
+ # FAILOVER AND FAILBACK
362
+ #------------------------------------------------------------------------------
363
+
364
+ failover_command = ''
365
+ # Executes this command at failover
366
+ # Special values:
367
+ # %d = node id
368
+ # %h = host name
369
+ # %p = port number
370
+ # %D = database cluster path
371
+ # %m = new master node id
372
+ # %H = hostname of the new master node
373
+ # %M = old master node id
374
+ # %P = old primary node id
375
+ # %r = new master port number
376
+ # %R = new master database cluster path
377
+ # %% = '%' character
378
+ failback_command = ''
379
+ # Executes this command at failback.
380
+ # Special values:
381
+ # %d = node id
382
+ # %h = host name
383
+ # %p = port number
384
+ # %D = database cluster path
385
+ # %m = new master node id
386
+ # %H = hostname of the new master node
387
+ # %M = old master node id
388
+ # %P = old primary node id
389
+ # %r = new master port number
390
+ # %R = new master database cluster path
391
+ # %% = '%' character
392
+
393
+ fail_over_on_backend_error = on
394
+ # Initiates failover when reading/writing to the
395
+ # backend communication socket fails
396
+ # If set to off, pgpool will report an
397
+ # error and disconnect the session.
398
+
399
+ search_primary_node_timeout = 10
400
+ # Timeout in seconds to search for the
401
+ # primary node when a failover occurs.
402
+ # 0 means no timeout, keep searching
403
+ # for a primary node forever.
404
+
405
+ #------------------------------------------------------------------------------
406
+ # ONLINE RECOVERY
407
+ #------------------------------------------------------------------------------
408
+
409
+ recovery_user = 'nobody'
410
+ # Online recovery user
411
+ recovery_password = ''
412
+ # Online recovery password
413
+ recovery_1st_stage_command = ''
414
+ # Executes a command in first stage
415
+ recovery_2nd_stage_command = ''
416
+ # Executes a command in second stage
417
+ recovery_timeout = 90
418
+ # Timeout in seconds to wait for the
419
+ # recovering node's postmaster to start up
420
+ # 0 means no wait
421
+ client_idle_limit_in_recovery = 0
422
+ # Client is disconnected after being idle
423
+ # for that many seconds in the second stage
424
+ # of online recovery
425
+ # 0 means no disconnection
426
+ # -1 means immediate disconnection
427
+
428
+
429
+ #------------------------------------------------------------------------------
430
+ # WATCHDOG
431
+ #------------------------------------------------------------------------------
432
+
433
+ # - Enabling -
434
+
435
+ use_watchdog = off
436
+ # Activates watchdog
437
+ # (change requires restart)
438
+
439
+ # -Connection to up stream servers -
440
+
441
+ trusted_servers = ''
442
+ # trusted server list which are used
443
+ # to confirm network connection
444
+ # (hostA,hostB,hostC,...)
445
+ # (change requires restart)
446
+ ping_path = '/bin'
447
+ # ping command path
448
+ # (change requires restart)
449
+
450
+ # - Watchdog communication Settings -
451
+
452
+ wd_hostname = ''
453
+ # Host name or IP address of this watchdog
454
+ # (change requires restart)
455
+ wd_port = 9000
456
+ # port number for watchdog service
457
+ # (change requires restart)
458
+ wd_authkey = ''
459
+ # Authentication key for watchdog communication
460
+ # (change requires restart)
461
+
462
+ # - Virtual IP control Setting -
463
+
464
+ delegate_IP = ''
465
+ # delegate IP address
466
+ # If this is empty, virtual IP never bring up.
467
+ # (change requires restart)
468
+ ifconfig_path = '/sbin'
469
+ # ifconfig command path
470
+ # (change requires restart)
471
+ if_up_cmd = 'ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
472
+ # startup delegate IP command
473
+ # (change requires restart)
474
+ if_down_cmd = 'ifconfig eth0:0 down'
475
+ # shutdown delegate IP command
476
+ # (change requires restart)
477
+
478
+ arping_path = '/usr/sbin' # arping command path
479
+ # (change requires restart)
480
+
481
+ arping_cmd = 'arping -U $_IP_$ -w 1'
482
+ # arping command
483
+ # (change requires restart)
484
+
485
+ # - Behaivor on escalation Setting -
486
+
487
+ clear_memqcache_on_escalation = on
488
+ # Clear all the query cache on shared memory
489
+ # when standby pgpool escalate to active pgpool
490
+ # (= virtual IP holder).
491
+ # This should be off if client connects to pgpool
492
+ # not using virtual IP.
493
+ # (change requires restart)
494
+ wd_escalation_command = ''
495
+ # Executes this command at escalation on new active pgpool.
496
+ # (change requires restart)
497
+
498
+ # - Lifecheck Setting -
499
+
500
+ # -- common --
501
+
502
+ wd_lifecheck_method = 'heartbeat'
503
+ # Method of watchdog lifecheck ('heartbeat' or 'query')
504
+ # (change requires restart)
505
+ wd_interval = 10
506
+ # lifecheck interval (sec) > 0
507
+ # (change requires restart)
508
+
509
+ # -- heartbeat mode --
510
+
511
+ wd_heartbeat_port = 9694
512
+ # Port number for receiving heartbeat signal
513
+ # (change requires restart)
514
+ wd_heartbeat_keepalive = 2
515
+ # Interval time of sending heartbeat signal (sec)
516
+ # (change requires restart)
517
+ wd_heartbeat_deadtime = 30
518
+ # Deadtime interval for heartbeat signal (sec)
519
+ # (change requires restart)
520
+ heartbeat_destination0 = 'host0_ip1'
521
+ # Host name or IP address of destination 0
522
+ # for sending heartbeat signal.
523
+ # (change requires restart)
524
+ heartbeat_destination_port0 = 9694
525
+ # Port number of destination 0 for sending
526
+ # heartbeat signal. Usually this is the
527
+ # same as wd_heartbeat_port.
528
+ # (change requires restart)
529
+ heartbeat_device0 = ''
530
+ # Name of NIC device (such like 'eth0')
531
+ # used for sending/receiving heartbeat
532
+ # signal to/from destination 0.
533
+ # This works only when this is not empty
534
+ # and pgpool has root privilege.
535
+ # (change requires restart)
536
+
537
+ #heartbeat_destination1 = 'host0_ip2'
538
+ #heartbeat_destination_port1 = 9694
539
+ #heartbeat_device1 = ''
540
+
541
+ # -- query mode --
542
+
543
+ wd_life_point = 3
544
+ # lifecheck retry times
545
+ # (change requires restart)
546
+ wd_lifecheck_query = 'SELECT 1'
547
+ # lifecheck query to pgpool from watchdog
548
+ # (change requires restart)
549
+ wd_lifecheck_dbname = 'template1'
550
+ # Database name connected for lifecheck
551
+ # (change requires restart)
552
+ wd_lifecheck_user = 'nobody'
553
+ # watchdog user monitoring pgpools in lifecheck
554
+ # (change requires restart)
555
+ wd_lifecheck_password = ''
556
+ # Password for watchdog user in lifecheck
557
+ # (change requires restart)
558
+
559
+ # - Other pgpool Connection Settings -
560
+
561
+ #other_pgpool_hostname0 = 'host0'
562
+ # Host name or IP address to connect to for other pgpool 0
563
+ # (change requires restart)
564
+ #other_pgpool_port0 = 5432
565
+ # Port number for othet pgpool 0
566
+ # (change requires restart)
567
+ #other_wd_port0 = 9000
568
+ # Port number for othet watchdog 0
569
+ # (change requires restart)
570
+ #other_pgpool_hostname1 = 'host1'
571
+ #other_pgpool_port1 = 5432
572
+ #other_wd_port1 = 9000
573
+
574
+
575
+ #------------------------------------------------------------------------------
576
+ # OTHERS
577
+ #------------------------------------------------------------------------------
578
+ relcache_expire = 0
579
+ # Life time of relation cache in seconds.
580
+ # 0 means no cache expiration(the default).
581
+ # The relation cache is used for cache the
582
+ # query result against PostgreSQL system
583
+ # catalog to obtain various information
584
+ # including table structures or if it's a
585
+ # temporary table or not. The cache is
586
+ # maintained in a pgpool child local memory
587
+ # and being kept as long as it survives.
588
+ # If someone modify the table by using
589
+ # ALTER TABLE or some such, the relcache is
590
+ # not consistent anymore.
591
+ # For this purpose, cache_expiration
592
+ # controls the life time of the cache.
593
+ relcache_size = 256
594
+ # Number of relation cache
595
+ # entry. If you see frequently:
596
+ # "pool_search_relcache: cache replacement happend"
597
+ # in the pgpool log, you might want to increate this number.
598
+
599
+ check_temp_table = on
600
+ # If on, enable temporary table check in SELECT statements.
601
+ # This initiates queries against system catalog of primary/master
602
+ # thus increases load of master.
603
+ # If you are absolutely sure that your system never uses temporary tables
604
+ # and you want to save access to primary/master, you could turn this off.
605
+ # Default is on.
606
+
607
+
608
+ #------------------------------------------------------------------------------
609
+ # ON MEMORY QUERY MEMORY CACHE
610
+ #------------------------------------------------------------------------------
611
+ memory_cache_enabled = off
612
+ # If on, use the memory cache functionality, off by default
613
+ memqcache_method = 'shmem'
614
+ # Cache storage method. either 'shmem'(shared memory) or
615
+ # 'memcached'. 'shmem' by default
616
+ # (change requires restart)
617
+ memqcache_memcached_host = 'localhost'
618
+ # Memcached host name or IP address. Mandatory if
619
+ # memqcache_method = 'memcached'.
620
+ # Defaults to localhost.
621
+ # (change requires restart)
622
+ memqcache_memcached_port = 11211
623
+ # Memcached port number. Mondatory if memqcache_method = 'memcached'.
624
+ # Defaults to 11211.
625
+ # (change requires restart)
626
+ memqcache_total_size = 67108864
627
+ # Total memory size in bytes for storing memory cache.
628
+ # Mandatory if memqcache_method = 'shmem'.
629
+ # Defaults to 64MB.
630
+ # (change requires restart)
631
+ memqcache_max_num_cache = 1000000
632
+ # Total number of cache entries. Mandatory
633
+ # if memqcache_method = 'shmem'.
634
+ # Each cache entry consumes 48 bytes on shared memory.
635
+ # Defaults to 1,000,000(45.8MB).
636
+ # (change requires restart)
637
+ memqcache_expire = 0
638
+ # Memory cache entry life time specified in seconds.
639
+ # 0 means infinite life time. 0 by default.
640
+ # (change requires restart)
641
+ memqcache_auto_cache_invalidation = on
642
+ # If on, invalidation of query cache is triggered by corresponding
643
+ # DDL/DML/DCL(and memqcache_expire). If off, it is only triggered
644
+ # by memqcache_expire. on by default.
645
+ # (change requires restart)
646
+ memqcache_maxcache = 409600
647
+ # Maximum SELECT result size in bytes.
648
+ # Must be smaller than memqcache_cache_block_size. Defaults to 400KB.
649
+ # (change requires restart)
650
+ memqcache_cache_block_size = 1048576
651
+ # Cache block size in bytes. Mandatory if memqcache_method = 'shmem'.
652
+ # Defaults to 1MB.
653
+ # (change requires restart)
654
+ memqcache_oiddir = '/var/log/pgpool/oiddir'
655
+ # Temporary work directory to record table oids
656
+ # (change requires restart)
657
+ white_memqcache_table_list = ''
658
+ # Comma separated list of table names to memcache
659
+ # that don't write to database
660
+ # Regexp are accepted
661
+ black_memqcache_table_list = ''
662
+ # Comma separated list of table names not to memcache
663
+ # that don't write to database
664
+ # Regexp are accepted