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,74 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * gramparse.h
4
+ * Shared definitions for the "raw" parser (flex and bison phases only)
5
+ *
6
+ * NOTE: this file is only meant to be included in the core parsing files,
7
+ * ie, parser.c, gram.y, scan.l, and keywords.c. Definitions that are needed
8
+ * outside the core parser should be in parser.h.
9
+ *
10
+ *
11
+ * Portions Copyright (c) 2003-2012, PgPool Global Development Group
12
+ * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
13
+ * Portions Copyright (c) 1994, Regents of the University of California
14
+ *
15
+ * src/include/parser/gramparse.h
16
+ *
17
+ *-------------------------------------------------------------------------
18
+ */
19
+
20
+ #ifndef GRAMPARSE_H
21
+ #define GRAMPARSE_H
22
+
23
+ #include "parsenodes.h"
24
+ #include "scanner.h"
25
+
26
+ /*
27
+ * NB: include gram.h only AFTER including scanner.h, because scanner.h
28
+ * is what #defines YYLTYPE.
29
+ */
30
+ #include "gram.h"
31
+
32
+ /*
33
+ * The YY_EXTRA data that a flex scanner allows us to pass around. Private
34
+ * state needed for raw parsing/lexing goes here.
35
+ */
36
+ typedef struct base_yy_extra_type
37
+ {
38
+ /*
39
+ * Fields used by the core scanner.
40
+ */
41
+ core_yy_extra_type core_yy_extra;
42
+
43
+ /*
44
+ * State variables for base_yylex().
45
+ */
46
+ bool have_lookahead; /* is lookahead info valid? */
47
+ int lookahead_token; /* one-token lookahead */
48
+ core_YYSTYPE lookahead_yylval; /* yylval for lookahead token */
49
+ YYLTYPE lookahead_yylloc; /* yylloc for lookahead token */
50
+
51
+ /*
52
+ * State variables that belong to the grammar.
53
+ */
54
+ List *parsetree; /* final parse result is delivered here */
55
+ } base_yy_extra_type;
56
+
57
+ /*
58
+ * In principle we should use yyget_extra() to fetch the yyextra field
59
+ * from a yyscanner struct. However, flex always puts that field first,
60
+ * and this is sufficiently performance-critical to make it seem worth
61
+ * cheating a bit to use an inline macro.
62
+ */
63
+ #define pg_yyget_extra(yyscanner) (*((base_yy_extra_type **) (yyscanner)))
64
+
65
+
66
+ /* from parser.c */
67
+ extern int base_yylex(YYSTYPE *lvalp, YYLTYPE *llocp,
68
+ core_yyscan_t yyscanner);
69
+
70
+ /* from gram.y */
71
+ extern void parser_init(base_yy_extra_type *yyext);
72
+ extern int base_yyparse(core_yyscan_t yyscanner);
73
+
74
+ #endif /* GRAMPARSE_H */
@@ -0,0 +1,32 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * keywords.c
4
+ * lexical token lookup for key words in PostgreSQL
5
+ *
6
+ *
7
+ * Portions Copyright (c) 2003-2013, PgPool Global Development Group
8
+ * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
9
+ * Portions Copyright (c) 1994, Regents of the University of California
10
+ *
11
+ *
12
+ * IDENTIFICATION
13
+ * src/backend/parser/keywords.c
14
+ *
15
+ *-------------------------------------------------------------------------
16
+ */
17
+
18
+ #include "parsenodes.h"
19
+ #include "gramparse.h" /* required before parser/parse.h! */
20
+ #include "keywords.h"
21
+ #include "gram.h"
22
+
23
+ #define PG_KEYWORD(a,b,c) {a,b,c},
24
+
25
+
26
+ const ScanKeyword ScanKeywords[] = {
27
+ #include "kwlist.h"
28
+ };
29
+
30
+ /* End of ScanKeywords, for use in kwlookup.c and elsewhere */
31
+ const ScanKeyword *LastScanKeyword = endof(ScanKeywords);
32
+ const int NumScanKeywords = lengthof(ScanKeywords);
@@ -0,0 +1,39 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * keywords.h
4
+ * lexical token lookup for key words in PostgreSQL
5
+ *
6
+ *
7
+ * Portions Copyright (c) 2003-2002, PgPool Global Development Group
8
+ * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
9
+ * Portions Copyright (c) 1994, Regents of the University of California
10
+ *
11
+ * src/include/parser/keywords.h
12
+ *
13
+ *-------------------------------------------------------------------------
14
+ */
15
+ #ifndef KEYWORDS_H
16
+ #define KEYWORDS_H
17
+
18
+ /* Keyword categories --- should match lists in gram.y */
19
+ #define UNRESERVED_KEYWORD 0
20
+ #define COL_NAME_KEYWORD 1
21
+ #define TYPE_FUNC_NAME_KEYWORD 2
22
+ #define RESERVED_KEYWORD 3
23
+
24
+
25
+ typedef struct ScanKeyword
26
+ {
27
+ const char *name; /* in lower case */
28
+ int16 value; /* grammar's token code */
29
+ int16 category; /* see codes above */
30
+ } ScanKeyword;
31
+
32
+ extern PGDLLIMPORT const ScanKeyword ScanKeywords[];
33
+ extern PGDLLIMPORT const int NumScanKeywords;
34
+
35
+ extern const ScanKeyword *ScanKeywordLookup(const char *text,
36
+ const ScanKeyword *keywords,
37
+ int num_keywords);
38
+
39
+ #endif /* KEYWORDS_H */
@@ -0,0 +1,425 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * kwlist.h
4
+ *
5
+ * The keyword list is kept in its own source file for possible use by
6
+ * automatic tools. The exact representation of a keyword is determined
7
+ * by the PG_KEYWORD macro, which is not defined in this file; it can
8
+ * be defined by the caller for special purposes.
9
+ *
10
+ * Portions Copyright (c) 2003-2013, PgPool Global Development Group
11
+ * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
12
+ * Portions Copyright (c) 1994, Regents of the University of California
13
+ *
14
+ * IDENTIFICATION
15
+ * src/include/parser/kwlist.h
16
+ *
17
+ *-------------------------------------------------------------------------
18
+ */
19
+
20
+ /* there is deliberately not an #ifndef KWLIST_H here */
21
+
22
+ /*
23
+ * List of keyword (name, token-value, category) entries.
24
+ *
25
+ * !!WARNING!!: This list must be sorted by ASCII name, because binary
26
+ * search is used to locate entries.
27
+ */
28
+
29
+ /* name, value, category */
30
+ PG_KEYWORD("abort", ABORT_P, UNRESERVED_KEYWORD)
31
+ PG_KEYWORD("absolute", ABSOLUTE_P, UNRESERVED_KEYWORD)
32
+ PG_KEYWORD("access", ACCESS, UNRESERVED_KEYWORD)
33
+ PG_KEYWORD("action", ACTION, UNRESERVED_KEYWORD)
34
+ PG_KEYWORD("add", ADD_P, UNRESERVED_KEYWORD)
35
+ PG_KEYWORD("admin", ADMIN, UNRESERVED_KEYWORD)
36
+ PG_KEYWORD("after", AFTER, UNRESERVED_KEYWORD)
37
+ PG_KEYWORD("aggregate", AGGREGATE, UNRESERVED_KEYWORD)
38
+ PG_KEYWORD("all", ALL, RESERVED_KEYWORD)
39
+ PG_KEYWORD("also", ALSO, UNRESERVED_KEYWORD)
40
+ PG_KEYWORD("alter", ALTER, UNRESERVED_KEYWORD)
41
+ PG_KEYWORD("always", ALWAYS, UNRESERVED_KEYWORD)
42
+ PG_KEYWORD("analyse", ANALYSE, RESERVED_KEYWORD) /* British spelling */
43
+ PG_KEYWORD("analyze", ANALYZE, RESERVED_KEYWORD)
44
+ PG_KEYWORD("and", AND, RESERVED_KEYWORD)
45
+ PG_KEYWORD("any", ANY, RESERVED_KEYWORD)
46
+ PG_KEYWORD("array", ARRAY, RESERVED_KEYWORD)
47
+ PG_KEYWORD("as", AS, RESERVED_KEYWORD)
48
+ PG_KEYWORD("asc", ASC, RESERVED_KEYWORD)
49
+ PG_KEYWORD("assertion", ASSERTION, UNRESERVED_KEYWORD)
50
+ PG_KEYWORD("assignment", ASSIGNMENT, UNRESERVED_KEYWORD)
51
+ PG_KEYWORD("asymmetric", ASYMMETRIC, RESERVED_KEYWORD)
52
+ PG_KEYWORD("at", AT, UNRESERVED_KEYWORD)
53
+ PG_KEYWORD("attribute", ATTRIBUTE, UNRESERVED_KEYWORD)
54
+ PG_KEYWORD("authorization", AUTHORIZATION, TYPE_FUNC_NAME_KEYWORD)
55
+ PG_KEYWORD("backward", BACKWARD, UNRESERVED_KEYWORD)
56
+ PG_KEYWORD("before", BEFORE, UNRESERVED_KEYWORD)
57
+ PG_KEYWORD("begin", BEGIN_P, UNRESERVED_KEYWORD)
58
+ PG_KEYWORD("between", BETWEEN, COL_NAME_KEYWORD)
59
+ PG_KEYWORD("bigint", BIGINT, COL_NAME_KEYWORD)
60
+ PG_KEYWORD("binary", BINARY, TYPE_FUNC_NAME_KEYWORD)
61
+ PG_KEYWORD("bit", BIT, COL_NAME_KEYWORD)
62
+ PG_KEYWORD("boolean", BOOLEAN_P, COL_NAME_KEYWORD)
63
+ PG_KEYWORD("both", BOTH, RESERVED_KEYWORD)
64
+ PG_KEYWORD("by", BY, UNRESERVED_KEYWORD)
65
+ PG_KEYWORD("cache", CACHE, UNRESERVED_KEYWORD)
66
+ PG_KEYWORD("called", CALLED, UNRESERVED_KEYWORD)
67
+ PG_KEYWORD("cascade", CASCADE, UNRESERVED_KEYWORD)
68
+ PG_KEYWORD("cascaded", CASCADED, UNRESERVED_KEYWORD)
69
+ PG_KEYWORD("case", CASE, RESERVED_KEYWORD)
70
+ PG_KEYWORD("cast", CAST, RESERVED_KEYWORD)
71
+ PG_KEYWORD("catalog", CATALOG_P, UNRESERVED_KEYWORD)
72
+ PG_KEYWORD("chain", CHAIN, UNRESERVED_KEYWORD)
73
+ PG_KEYWORD("char", CHAR_P, COL_NAME_KEYWORD)
74
+ PG_KEYWORD("character", CHARACTER, COL_NAME_KEYWORD)
75
+ PG_KEYWORD("characteristics", CHARACTERISTICS, UNRESERVED_KEYWORD)
76
+ PG_KEYWORD("check", CHECK, RESERVED_KEYWORD)
77
+ PG_KEYWORD("checkpoint", CHECKPOINT, UNRESERVED_KEYWORD)
78
+ PG_KEYWORD("class", CLASS, UNRESERVED_KEYWORD)
79
+ PG_KEYWORD("close", CLOSE, UNRESERVED_KEYWORD)
80
+ PG_KEYWORD("cluster", CLUSTER, UNRESERVED_KEYWORD)
81
+ PG_KEYWORD("coalesce", COALESCE, COL_NAME_KEYWORD)
82
+ PG_KEYWORD("collate", COLLATE, RESERVED_KEYWORD)
83
+ PG_KEYWORD("collation", COLLATION, TYPE_FUNC_NAME_KEYWORD)
84
+ PG_KEYWORD("column", COLUMN, RESERVED_KEYWORD)
85
+ PG_KEYWORD("comment", COMMENT, UNRESERVED_KEYWORD)
86
+ PG_KEYWORD("comments", COMMENTS, UNRESERVED_KEYWORD)
87
+ PG_KEYWORD("commit", COMMIT, UNRESERVED_KEYWORD)
88
+ PG_KEYWORD("committed", COMMITTED, UNRESERVED_KEYWORD)
89
+ PG_KEYWORD("concurrently", CONCURRENTLY, TYPE_FUNC_NAME_KEYWORD)
90
+ PG_KEYWORD("configuration", CONFIGURATION, UNRESERVED_KEYWORD)
91
+ PG_KEYWORD("connection", CONNECTION, UNRESERVED_KEYWORD)
92
+ PG_KEYWORD("constraint", CONSTRAINT, RESERVED_KEYWORD)
93
+ PG_KEYWORD("constraints", CONSTRAINTS, UNRESERVED_KEYWORD)
94
+ PG_KEYWORD("content", CONTENT_P, UNRESERVED_KEYWORD)
95
+ PG_KEYWORD("continue", CONTINUE_P, UNRESERVED_KEYWORD)
96
+ PG_KEYWORD("conversion", CONVERSION_P, UNRESERVED_KEYWORD)
97
+ PG_KEYWORD("copy", COPY, UNRESERVED_KEYWORD)
98
+ PG_KEYWORD("cost", COST, UNRESERVED_KEYWORD)
99
+ PG_KEYWORD("create", CREATE, RESERVED_KEYWORD)
100
+ PG_KEYWORD("cross", CROSS, TYPE_FUNC_NAME_KEYWORD)
101
+ PG_KEYWORD("csv", CSV, UNRESERVED_KEYWORD)
102
+ PG_KEYWORD("current", CURRENT_P, UNRESERVED_KEYWORD)
103
+ PG_KEYWORD("current_catalog", CURRENT_CATALOG, RESERVED_KEYWORD)
104
+ PG_KEYWORD("current_date", CURRENT_DATE, RESERVED_KEYWORD)
105
+ PG_KEYWORD("current_role", CURRENT_ROLE, RESERVED_KEYWORD)
106
+ PG_KEYWORD("current_schema", CURRENT_SCHEMA, TYPE_FUNC_NAME_KEYWORD)
107
+ PG_KEYWORD("current_time", CURRENT_TIME, RESERVED_KEYWORD)
108
+ PG_KEYWORD("current_timestamp", CURRENT_TIMESTAMP, RESERVED_KEYWORD)
109
+ PG_KEYWORD("current_user", CURRENT_USER, RESERVED_KEYWORD)
110
+ PG_KEYWORD("cursor", CURSOR, UNRESERVED_KEYWORD)
111
+ PG_KEYWORD("cycle", CYCLE, UNRESERVED_KEYWORD)
112
+ PG_KEYWORD("data", DATA_P, UNRESERVED_KEYWORD)
113
+ PG_KEYWORD("database", DATABASE, UNRESERVED_KEYWORD)
114
+ PG_KEYWORD("day", DAY_P, UNRESERVED_KEYWORD)
115
+ PG_KEYWORD("deallocate", DEALLOCATE, UNRESERVED_KEYWORD)
116
+ PG_KEYWORD("dec", DEC, COL_NAME_KEYWORD)
117
+ PG_KEYWORD("decimal", DECIMAL_P, COL_NAME_KEYWORD)
118
+ PG_KEYWORD("declare", DECLARE, UNRESERVED_KEYWORD)
119
+ PG_KEYWORD("default", DEFAULT, RESERVED_KEYWORD)
120
+ PG_KEYWORD("defaults", DEFAULTS, UNRESERVED_KEYWORD)
121
+ PG_KEYWORD("deferrable", DEFERRABLE, RESERVED_KEYWORD)
122
+ PG_KEYWORD("deferred", DEFERRED, UNRESERVED_KEYWORD)
123
+ PG_KEYWORD("definer", DEFINER, UNRESERVED_KEYWORD)
124
+ PG_KEYWORD("delete", DELETE_P, UNRESERVED_KEYWORD)
125
+ PG_KEYWORD("delimiter", DELIMITER, UNRESERVED_KEYWORD)
126
+ PG_KEYWORD("delimiters", DELIMITERS, UNRESERVED_KEYWORD)
127
+ PG_KEYWORD("desc", DESC, RESERVED_KEYWORD)
128
+ PG_KEYWORD("dictionary", DICTIONARY, UNRESERVED_KEYWORD)
129
+ PG_KEYWORD("disable", DISABLE_P, UNRESERVED_KEYWORD)
130
+ PG_KEYWORD("discard", DISCARD, UNRESERVED_KEYWORD)
131
+ PG_KEYWORD("distinct", DISTINCT, RESERVED_KEYWORD)
132
+ PG_KEYWORD("do", DO, RESERVED_KEYWORD)
133
+ PG_KEYWORD("document", DOCUMENT_P, UNRESERVED_KEYWORD)
134
+ PG_KEYWORD("domain", DOMAIN_P, UNRESERVED_KEYWORD)
135
+ PG_KEYWORD("double", DOUBLE_P, UNRESERVED_KEYWORD)
136
+ PG_KEYWORD("drop", DROP, UNRESERVED_KEYWORD)
137
+ PG_KEYWORD("each", EACH, UNRESERVED_KEYWORD)
138
+ PG_KEYWORD("else", ELSE, RESERVED_KEYWORD)
139
+ PG_KEYWORD("enable", ENABLE_P, UNRESERVED_KEYWORD)
140
+ PG_KEYWORD("encoding", ENCODING, UNRESERVED_KEYWORD)
141
+ PG_KEYWORD("encrypted", ENCRYPTED, UNRESERVED_KEYWORD)
142
+ PG_KEYWORD("end", END_P, RESERVED_KEYWORD)
143
+ PG_KEYWORD("enum", ENUM_P, UNRESERVED_KEYWORD)
144
+ PG_KEYWORD("escape", ESCAPE, UNRESERVED_KEYWORD)
145
+ PG_KEYWORD("except", EXCEPT, RESERVED_KEYWORD)
146
+ PG_KEYWORD("exclude", EXCLUDE, UNRESERVED_KEYWORD)
147
+ PG_KEYWORD("excluding", EXCLUDING, UNRESERVED_KEYWORD)
148
+ PG_KEYWORD("exclusive", EXCLUSIVE, UNRESERVED_KEYWORD)
149
+ PG_KEYWORD("execute", EXECUTE, UNRESERVED_KEYWORD)
150
+ PG_KEYWORD("exists", EXISTS, COL_NAME_KEYWORD)
151
+ PG_KEYWORD("explain", EXPLAIN, UNRESERVED_KEYWORD)
152
+ PG_KEYWORD("extension", EXTENSION, UNRESERVED_KEYWORD)
153
+ PG_KEYWORD("external", EXTERNAL, UNRESERVED_KEYWORD)
154
+ PG_KEYWORD("extract", EXTRACT, COL_NAME_KEYWORD)
155
+ PG_KEYWORD("false", FALSE_P, RESERVED_KEYWORD)
156
+ PG_KEYWORD("family", FAMILY, UNRESERVED_KEYWORD)
157
+ PG_KEYWORD("fetch", FETCH, RESERVED_KEYWORD)
158
+ PG_KEYWORD("first", FIRST_P, UNRESERVED_KEYWORD)
159
+ PG_KEYWORD("float", FLOAT_P, COL_NAME_KEYWORD)
160
+ PG_KEYWORD("following", FOLLOWING, UNRESERVED_KEYWORD)
161
+ PG_KEYWORD("for", FOR, RESERVED_KEYWORD)
162
+ PG_KEYWORD("force", FORCE, UNRESERVED_KEYWORD)
163
+ PG_KEYWORD("foreign", FOREIGN, RESERVED_KEYWORD)
164
+ PG_KEYWORD("forward", FORWARD, UNRESERVED_KEYWORD)
165
+ PG_KEYWORD("freeze", FREEZE, TYPE_FUNC_NAME_KEYWORD)
166
+ PG_KEYWORD("from", FROM, RESERVED_KEYWORD)
167
+ PG_KEYWORD("full", FULL, TYPE_FUNC_NAME_KEYWORD)
168
+ PG_KEYWORD("function", FUNCTION, UNRESERVED_KEYWORD)
169
+ PG_KEYWORD("functions", FUNCTIONS, UNRESERVED_KEYWORD)
170
+ PG_KEYWORD("global", GLOBAL, UNRESERVED_KEYWORD)
171
+ PG_KEYWORD("grant", GRANT, RESERVED_KEYWORD)
172
+ PG_KEYWORD("granted", GRANTED, UNRESERVED_KEYWORD)
173
+ PG_KEYWORD("greatest", GREATEST, COL_NAME_KEYWORD)
174
+ PG_KEYWORD("group", GROUP_P, RESERVED_KEYWORD)
175
+ PG_KEYWORD("handler", HANDLER, UNRESERVED_KEYWORD)
176
+ PG_KEYWORD("having", HAVING, RESERVED_KEYWORD)
177
+ PG_KEYWORD("header", HEADER_P, UNRESERVED_KEYWORD)
178
+ PG_KEYWORD("hold", HOLD, UNRESERVED_KEYWORD)
179
+ PG_KEYWORD("hour", HOUR_P, UNRESERVED_KEYWORD)
180
+ PG_KEYWORD("identity", IDENTITY_P, UNRESERVED_KEYWORD)
181
+ PG_KEYWORD("if", IF_P, UNRESERVED_KEYWORD)
182
+ PG_KEYWORD("ilike", ILIKE, TYPE_FUNC_NAME_KEYWORD)
183
+ PG_KEYWORD("immediate", IMMEDIATE, UNRESERVED_KEYWORD)
184
+ PG_KEYWORD("immutable", IMMUTABLE, UNRESERVED_KEYWORD)
185
+ PG_KEYWORD("implicit", IMPLICIT_P, UNRESERVED_KEYWORD)
186
+ PG_KEYWORD("in", IN_P, RESERVED_KEYWORD)
187
+ PG_KEYWORD("including", INCLUDING, UNRESERVED_KEYWORD)
188
+ PG_KEYWORD("increment", INCREMENT, UNRESERVED_KEYWORD)
189
+ PG_KEYWORD("index", INDEX, UNRESERVED_KEYWORD)
190
+ PG_KEYWORD("indexes", INDEXES, UNRESERVED_KEYWORD)
191
+ PG_KEYWORD("inherit", INHERIT, UNRESERVED_KEYWORD)
192
+ PG_KEYWORD("inherits", INHERITS, UNRESERVED_KEYWORD)
193
+ PG_KEYWORD("initially", INITIALLY, RESERVED_KEYWORD)
194
+ PG_KEYWORD("inline", INLINE_P, UNRESERVED_KEYWORD)
195
+ PG_KEYWORD("inner", INNER_P, TYPE_FUNC_NAME_KEYWORD)
196
+ PG_KEYWORD("inout", INOUT, COL_NAME_KEYWORD)
197
+ PG_KEYWORD("input", INPUT_P, UNRESERVED_KEYWORD)
198
+ PG_KEYWORD("insensitive", INSENSITIVE, UNRESERVED_KEYWORD)
199
+ PG_KEYWORD("insert", INSERT, UNRESERVED_KEYWORD)
200
+ PG_KEYWORD("instead", INSTEAD, UNRESERVED_KEYWORD)
201
+ PG_KEYWORD("int", INT_P, COL_NAME_KEYWORD)
202
+ PG_KEYWORD("integer", INTEGER, COL_NAME_KEYWORD)
203
+ PG_KEYWORD("intersect", INTERSECT, RESERVED_KEYWORD)
204
+ PG_KEYWORD("interval", INTERVAL, COL_NAME_KEYWORD)
205
+ PG_KEYWORD("into", INTO, RESERVED_KEYWORD)
206
+ PG_KEYWORD("invoker", INVOKER, UNRESERVED_KEYWORD)
207
+ PG_KEYWORD("is", IS, TYPE_FUNC_NAME_KEYWORD)
208
+ PG_KEYWORD("isnull", ISNULL, TYPE_FUNC_NAME_KEYWORD)
209
+ PG_KEYWORD("isolation", ISOLATION, UNRESERVED_KEYWORD)
210
+ PG_KEYWORD("join", JOIN, TYPE_FUNC_NAME_KEYWORD)
211
+ PG_KEYWORD("key", KEY, UNRESERVED_KEYWORD)
212
+ PG_KEYWORD("label", LABEL, UNRESERVED_KEYWORD)
213
+ PG_KEYWORD("language", LANGUAGE, UNRESERVED_KEYWORD)
214
+ PG_KEYWORD("large", LARGE_P, UNRESERVED_KEYWORD)
215
+ PG_KEYWORD("last", LAST_P, UNRESERVED_KEYWORD)
216
+ PG_KEYWORD("lc_collate", LC_COLLATE_P, UNRESERVED_KEYWORD)
217
+ PG_KEYWORD("lc_ctype", LC_CTYPE_P, UNRESERVED_KEYWORD)
218
+ PG_KEYWORD("leading", LEADING, RESERVED_KEYWORD)
219
+ PG_KEYWORD("leakproof", LEAKPROOF, UNRESERVED_KEYWORD)
220
+ PG_KEYWORD("least", LEAST, COL_NAME_KEYWORD)
221
+ PG_KEYWORD("left", LEFT, TYPE_FUNC_NAME_KEYWORD)
222
+ PG_KEYWORD("level", LEVEL, UNRESERVED_KEYWORD)
223
+ PG_KEYWORD("like", LIKE, TYPE_FUNC_NAME_KEYWORD)
224
+ PG_KEYWORD("limit", LIMIT, RESERVED_KEYWORD)
225
+ PG_KEYWORD("listen", LISTEN, UNRESERVED_KEYWORD)
226
+ PG_KEYWORD("load", LOAD, UNRESERVED_KEYWORD)
227
+ PG_KEYWORD("local", LOCAL, UNRESERVED_KEYWORD)
228
+ PG_KEYWORD("localtime", LOCALTIME, RESERVED_KEYWORD)
229
+ PG_KEYWORD("localtimestamp", LOCALTIMESTAMP, RESERVED_KEYWORD)
230
+ PG_KEYWORD("location", LOCATION, UNRESERVED_KEYWORD)
231
+ PG_KEYWORD("lock", LOCK_P, UNRESERVED_KEYWORD)
232
+ PG_KEYWORD("mapping", MAPPING, UNRESERVED_KEYWORD)
233
+ PG_KEYWORD("match", MATCH, UNRESERVED_KEYWORD)
234
+ PG_KEYWORD("maxvalue", MAXVALUE, UNRESERVED_KEYWORD)
235
+ PG_KEYWORD("minute", MINUTE_P, UNRESERVED_KEYWORD)
236
+ PG_KEYWORD("minvalue", MINVALUE, UNRESERVED_KEYWORD)
237
+ PG_KEYWORD("mode", MODE, UNRESERVED_KEYWORD)
238
+ PG_KEYWORD("month", MONTH_P, UNRESERVED_KEYWORD)
239
+ PG_KEYWORD("move", MOVE, UNRESERVED_KEYWORD)
240
+ PG_KEYWORD("name", NAME_P, UNRESERVED_KEYWORD)
241
+ PG_KEYWORD("names", NAMES, UNRESERVED_KEYWORD)
242
+ PG_KEYWORD("national", NATIONAL, COL_NAME_KEYWORD)
243
+ PG_KEYWORD("natural", NATURAL, TYPE_FUNC_NAME_KEYWORD)
244
+ PG_KEYWORD("nchar", NCHAR, COL_NAME_KEYWORD)
245
+ PG_KEYWORD("next", NEXT, UNRESERVED_KEYWORD)
246
+ PG_KEYWORD("no", NO, UNRESERVED_KEYWORD)
247
+ PG_KEYWORD("none", NONE, COL_NAME_KEYWORD)
248
+ PG_KEYWORD("not", NOT, RESERVED_KEYWORD)
249
+ PG_KEYWORD("nothing", NOTHING, UNRESERVED_KEYWORD)
250
+ PG_KEYWORD("notify", NOTIFY, UNRESERVED_KEYWORD)
251
+ PG_KEYWORD("notnull", NOTNULL, TYPE_FUNC_NAME_KEYWORD)
252
+ PG_KEYWORD("nowait", NOWAIT, UNRESERVED_KEYWORD)
253
+ PG_KEYWORD("null", NULL_P, RESERVED_KEYWORD)
254
+ PG_KEYWORD("nullif", NULLIF, COL_NAME_KEYWORD)
255
+ PG_KEYWORD("nulls", NULLS_P, UNRESERVED_KEYWORD)
256
+ PG_KEYWORD("numeric", NUMERIC, COL_NAME_KEYWORD)
257
+ PG_KEYWORD("object", OBJECT_P, UNRESERVED_KEYWORD)
258
+ PG_KEYWORD("of", OF, UNRESERVED_KEYWORD)
259
+ PG_KEYWORD("off", OFF, UNRESERVED_KEYWORD)
260
+ PG_KEYWORD("offset", OFFSET, RESERVED_KEYWORD)
261
+ PG_KEYWORD("oids", OIDS, UNRESERVED_KEYWORD)
262
+ PG_KEYWORD("on", ON, RESERVED_KEYWORD)
263
+ PG_KEYWORD("only", ONLY, RESERVED_KEYWORD)
264
+ PG_KEYWORD("operator", OPERATOR, UNRESERVED_KEYWORD)
265
+ PG_KEYWORD("option", OPTION, UNRESERVED_KEYWORD)
266
+ PG_KEYWORD("options", OPTIONS, UNRESERVED_KEYWORD)
267
+ PG_KEYWORD("or", OR, RESERVED_KEYWORD)
268
+ PG_KEYWORD("order", ORDER, RESERVED_KEYWORD)
269
+ PG_KEYWORD("out", OUT_P, COL_NAME_KEYWORD)
270
+ PG_KEYWORD("outer", OUTER_P, TYPE_FUNC_NAME_KEYWORD)
271
+ PG_KEYWORD("over", OVER, TYPE_FUNC_NAME_KEYWORD)
272
+ PG_KEYWORD("overlaps", OVERLAPS, TYPE_FUNC_NAME_KEYWORD)
273
+ PG_KEYWORD("overlay", OVERLAY, COL_NAME_KEYWORD)
274
+ PG_KEYWORD("owned", OWNED, UNRESERVED_KEYWORD)
275
+ PG_KEYWORD("owner", OWNER, UNRESERVED_KEYWORD)
276
+ PG_KEYWORD("parser", PARSER, UNRESERVED_KEYWORD)
277
+ PG_KEYWORD("partial", PARTIAL, UNRESERVED_KEYWORD)
278
+ PG_KEYWORD("partition", PARTITION, UNRESERVED_KEYWORD)
279
+ PG_KEYWORD("passing", PASSING, UNRESERVED_KEYWORD)
280
+ PG_KEYWORD("password", PASSWORD, UNRESERVED_KEYWORD)
281
+ PG_KEYWORD("placing", PLACING, RESERVED_KEYWORD)
282
+ PG_KEYWORD("plans", PLANS, UNRESERVED_KEYWORD)
283
+ PG_KEYWORD("position", POSITION, COL_NAME_KEYWORD)
284
+ PG_KEYWORD("preceding", PRECEDING, UNRESERVED_KEYWORD)
285
+ PG_KEYWORD("precision", PRECISION, COL_NAME_KEYWORD)
286
+ PG_KEYWORD("prepare", PREPARE, UNRESERVED_KEYWORD)
287
+ PG_KEYWORD("prepared", PREPARED, UNRESERVED_KEYWORD)
288
+ PG_KEYWORD("preserve", PRESERVE, UNRESERVED_KEYWORD)
289
+ PG_KEYWORD("primary", PRIMARY, RESERVED_KEYWORD)
290
+ PG_KEYWORD("prior", PRIOR, UNRESERVED_KEYWORD)
291
+ PG_KEYWORD("privileges", PRIVILEGES, UNRESERVED_KEYWORD)
292
+ PG_KEYWORD("procedural", PROCEDURAL, UNRESERVED_KEYWORD)
293
+ PG_KEYWORD("procedure", PROCEDURE, UNRESERVED_KEYWORD)
294
+ PG_KEYWORD("quote", QUOTE, UNRESERVED_KEYWORD)
295
+ PG_KEYWORD("range", RANGE, UNRESERVED_KEYWORD)
296
+ PG_KEYWORD("read", READ, UNRESERVED_KEYWORD)
297
+ PG_KEYWORD("real", REAL, COL_NAME_KEYWORD)
298
+ PG_KEYWORD("reassign", REASSIGN, UNRESERVED_KEYWORD)
299
+ PG_KEYWORD("recheck", RECHECK, UNRESERVED_KEYWORD)
300
+ PG_KEYWORD("recursive", RECURSIVE, UNRESERVED_KEYWORD)
301
+ PG_KEYWORD("ref", REF, UNRESERVED_KEYWORD)
302
+ PG_KEYWORD("references", REFERENCES, RESERVED_KEYWORD)
303
+ PG_KEYWORD("reindex", REINDEX, UNRESERVED_KEYWORD)
304
+ PG_KEYWORD("relative", RELATIVE_P, UNRESERVED_KEYWORD)
305
+ PG_KEYWORD("release", RELEASE, UNRESERVED_KEYWORD)
306
+ PG_KEYWORD("rename", RENAME, UNRESERVED_KEYWORD)
307
+ PG_KEYWORD("repeatable", REPEATABLE, UNRESERVED_KEYWORD)
308
+ PG_KEYWORD("replace", REPLACE, UNRESERVED_KEYWORD)
309
+ PG_KEYWORD("replica", REPLICA, UNRESERVED_KEYWORD)
310
+ PG_KEYWORD("reset", RESET, UNRESERVED_KEYWORD)
311
+ PG_KEYWORD("restart", RESTART, UNRESERVED_KEYWORD)
312
+ PG_KEYWORD("restrict", RESTRICT, UNRESERVED_KEYWORD)
313
+ PG_KEYWORD("returning", RETURNING, RESERVED_KEYWORD)
314
+ PG_KEYWORD("returns", RETURNS, UNRESERVED_KEYWORD)
315
+ PG_KEYWORD("revoke", REVOKE, UNRESERVED_KEYWORD)
316
+ PG_KEYWORD("right", RIGHT, TYPE_FUNC_NAME_KEYWORD)
317
+ PG_KEYWORD("role", ROLE, UNRESERVED_KEYWORD)
318
+ PG_KEYWORD("rollback", ROLLBACK, UNRESERVED_KEYWORD)
319
+ PG_KEYWORD("row", ROW, COL_NAME_KEYWORD)
320
+ PG_KEYWORD("rows", ROWS, UNRESERVED_KEYWORD)
321
+ PG_KEYWORD("rule", RULE, UNRESERVED_KEYWORD)
322
+ PG_KEYWORD("savepoint", SAVEPOINT, UNRESERVED_KEYWORD)
323
+ PG_KEYWORD("schema", SCHEMA, UNRESERVED_KEYWORD)
324
+ PG_KEYWORD("scroll", SCROLL, UNRESERVED_KEYWORD)
325
+ PG_KEYWORD("search", SEARCH, UNRESERVED_KEYWORD)
326
+ PG_KEYWORD("second", SECOND_P, UNRESERVED_KEYWORD)
327
+ PG_KEYWORD("security", SECURITY, UNRESERVED_KEYWORD)
328
+ PG_KEYWORD("select", SELECT, RESERVED_KEYWORD)
329
+ PG_KEYWORD("sequence", SEQUENCE, UNRESERVED_KEYWORD)
330
+ PG_KEYWORD("sequences", SEQUENCES, UNRESERVED_KEYWORD)
331
+ PG_KEYWORD("serializable", SERIALIZABLE, UNRESERVED_KEYWORD)
332
+ PG_KEYWORD("server", SERVER, UNRESERVED_KEYWORD)
333
+ PG_KEYWORD("session", SESSION, UNRESERVED_KEYWORD)
334
+ PG_KEYWORD("session_user", SESSION_USER, RESERVED_KEYWORD)
335
+ PG_KEYWORD("set", SET, UNRESERVED_KEYWORD)
336
+ PG_KEYWORD("setof", SETOF, COL_NAME_KEYWORD)
337
+ PG_KEYWORD("share", SHARE, UNRESERVED_KEYWORD)
338
+ PG_KEYWORD("show", SHOW, UNRESERVED_KEYWORD)
339
+ PG_KEYWORD("similar", SIMILAR, TYPE_FUNC_NAME_KEYWORD)
340
+ PG_KEYWORD("simple", SIMPLE, UNRESERVED_KEYWORD)
341
+ PG_KEYWORD("smallint", SMALLINT, COL_NAME_KEYWORD)
342
+ PG_KEYWORD("snapshot", SNAPSHOT, UNRESERVED_KEYWORD)
343
+ PG_KEYWORD("some", SOME, RESERVED_KEYWORD)
344
+ PG_KEYWORD("stable", STABLE, UNRESERVED_KEYWORD)
345
+ PG_KEYWORD("standalone", STANDALONE_P, UNRESERVED_KEYWORD)
346
+ PG_KEYWORD("start", START, UNRESERVED_KEYWORD)
347
+ PG_KEYWORD("statement", STATEMENT, UNRESERVED_KEYWORD)
348
+ PG_KEYWORD("statistics", STATISTICS, UNRESERVED_KEYWORD)
349
+ PG_KEYWORD("stdin", STDIN, UNRESERVED_KEYWORD)
350
+ PG_KEYWORD("stdout", STDOUT, UNRESERVED_KEYWORD)
351
+ PG_KEYWORD("storage", STORAGE, UNRESERVED_KEYWORD)
352
+ PG_KEYWORD("strict", STRICT_P, UNRESERVED_KEYWORD)
353
+ PG_KEYWORD("strip", STRIP_P, UNRESERVED_KEYWORD)
354
+ PG_KEYWORD("substring", SUBSTRING, COL_NAME_KEYWORD)
355
+ PG_KEYWORD("symmetric", SYMMETRIC, RESERVED_KEYWORD)
356
+ PG_KEYWORD("sysid", SYSID, UNRESERVED_KEYWORD)
357
+ PG_KEYWORD("system", SYSTEM_P, UNRESERVED_KEYWORD)
358
+ PG_KEYWORD("table", TABLE, RESERVED_KEYWORD)
359
+ PG_KEYWORD("tables", TABLES, UNRESERVED_KEYWORD)
360
+ PG_KEYWORD("tablespace", TABLESPACE, UNRESERVED_KEYWORD)
361
+ PG_KEYWORD("temp", TEMP, UNRESERVED_KEYWORD)
362
+ PG_KEYWORD("template", TEMPLATE, UNRESERVED_KEYWORD)
363
+ PG_KEYWORD("temporary", TEMPORARY, UNRESERVED_KEYWORD)
364
+ PG_KEYWORD("text", TEXT_P, UNRESERVED_KEYWORD)
365
+ PG_KEYWORD("then", THEN, RESERVED_KEYWORD)
366
+ PG_KEYWORD("time", TIME, COL_NAME_KEYWORD)
367
+ PG_KEYWORD("timestamp", TIMESTAMP, COL_NAME_KEYWORD)
368
+ PG_KEYWORD("to", TO, RESERVED_KEYWORD)
369
+ PG_KEYWORD("trailing", TRAILING, RESERVED_KEYWORD)
370
+ PG_KEYWORD("transaction", TRANSACTION, UNRESERVED_KEYWORD)
371
+ PG_KEYWORD("treat", TREAT, COL_NAME_KEYWORD)
372
+ PG_KEYWORD("trigger", TRIGGER, UNRESERVED_KEYWORD)
373
+ PG_KEYWORD("trim", TRIM, COL_NAME_KEYWORD)
374
+ PG_KEYWORD("true", TRUE_P, RESERVED_KEYWORD)
375
+ PG_KEYWORD("truncate", TRUNCATE, UNRESERVED_KEYWORD)
376
+ PG_KEYWORD("trusted", TRUSTED, UNRESERVED_KEYWORD)
377
+ PG_KEYWORD("type", TYPE_P, UNRESERVED_KEYWORD)
378
+ PG_KEYWORD("types", TYPES_P, UNRESERVED_KEYWORD)
379
+ PG_KEYWORD("unbounded", UNBOUNDED, UNRESERVED_KEYWORD)
380
+ PG_KEYWORD("uncommitted", UNCOMMITTED, UNRESERVED_KEYWORD)
381
+ PG_KEYWORD("unencrypted", UNENCRYPTED, UNRESERVED_KEYWORD)
382
+ PG_KEYWORD("union", UNION, RESERVED_KEYWORD)
383
+ PG_KEYWORD("unique", UNIQUE, RESERVED_KEYWORD)
384
+ PG_KEYWORD("unknown", UNKNOWN, UNRESERVED_KEYWORD)
385
+ PG_KEYWORD("unlisten", UNLISTEN, UNRESERVED_KEYWORD)
386
+ PG_KEYWORD("unlogged", UNLOGGED, UNRESERVED_KEYWORD)
387
+ PG_KEYWORD("until", UNTIL, UNRESERVED_KEYWORD)
388
+ PG_KEYWORD("update", UPDATE, UNRESERVED_KEYWORD)
389
+ PG_KEYWORD("user", USER, RESERVED_KEYWORD)
390
+ PG_KEYWORD("using", USING, RESERVED_KEYWORD)
391
+ PG_KEYWORD("vacuum", VACUUM, UNRESERVED_KEYWORD)
392
+ PG_KEYWORD("valid", VALID, UNRESERVED_KEYWORD)
393
+ PG_KEYWORD("validate", VALIDATE, UNRESERVED_KEYWORD)
394
+ PG_KEYWORD("validator", VALIDATOR, UNRESERVED_KEYWORD)
395
+ PG_KEYWORD("value", VALUE_P, UNRESERVED_KEYWORD)
396
+ PG_KEYWORD("values", VALUES, COL_NAME_KEYWORD)
397
+ PG_KEYWORD("varchar", VARCHAR, COL_NAME_KEYWORD)
398
+ PG_KEYWORD("variadic", VARIADIC, RESERVED_KEYWORD)
399
+ PG_KEYWORD("varying", VARYING, UNRESERVED_KEYWORD)
400
+ PG_KEYWORD("verbose", VERBOSE, TYPE_FUNC_NAME_KEYWORD)
401
+ PG_KEYWORD("version", VERSION_P, UNRESERVED_KEYWORD)
402
+ PG_KEYWORD("view", VIEW, UNRESERVED_KEYWORD)
403
+ PG_KEYWORD("volatile", VOLATILE, UNRESERVED_KEYWORD)
404
+ PG_KEYWORD("when", WHEN, RESERVED_KEYWORD)
405
+ PG_KEYWORD("where", WHERE, RESERVED_KEYWORD)
406
+ PG_KEYWORD("whitespace", WHITESPACE_P, UNRESERVED_KEYWORD)
407
+ PG_KEYWORD("window", WINDOW, RESERVED_KEYWORD)
408
+ PG_KEYWORD("with", WITH, RESERVED_KEYWORD)
409
+ PG_KEYWORD("without", WITHOUT, UNRESERVED_KEYWORD)
410
+ PG_KEYWORD("work", WORK, UNRESERVED_KEYWORD)
411
+ PG_KEYWORD("wrapper", WRAPPER, UNRESERVED_KEYWORD)
412
+ PG_KEYWORD("write", WRITE, UNRESERVED_KEYWORD)
413
+ PG_KEYWORD("xml", XML_P, UNRESERVED_KEYWORD)
414
+ PG_KEYWORD("xmlattributes", XMLATTRIBUTES, COL_NAME_KEYWORD)
415
+ PG_KEYWORD("xmlconcat", XMLCONCAT, COL_NAME_KEYWORD)
416
+ PG_KEYWORD("xmlelement", XMLELEMENT, COL_NAME_KEYWORD)
417
+ PG_KEYWORD("xmlexists", XMLEXISTS, COL_NAME_KEYWORD)
418
+ PG_KEYWORD("xmlforest", XMLFOREST, COL_NAME_KEYWORD)
419
+ PG_KEYWORD("xmlparse", XMLPARSE, COL_NAME_KEYWORD)
420
+ PG_KEYWORD("xmlpi", XMLPI, COL_NAME_KEYWORD)
421
+ PG_KEYWORD("xmlroot", XMLROOT, COL_NAME_KEYWORD)
422
+ PG_KEYWORD("xmlserialize", XMLSERIALIZE, COL_NAME_KEYWORD)
423
+ PG_KEYWORD("year", YEAR_P, UNRESERVED_KEYWORD)
424
+ PG_KEYWORD("yes", YES_P, UNRESERVED_KEYWORD)
425
+ PG_KEYWORD("zone", ZONE, UNRESERVED_KEYWORD)