postgast 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1086) hide show
  1. postgast-0.0.1/.gitignore +212 -0
  2. postgast-0.0.1/LICENSE +24 -0
  3. postgast-0.0.1/PKG-INFO +122 -0
  4. postgast-0.0.1/README.md +81 -0
  5. postgast-0.0.1/hatch_build.py +75 -0
  6. postgast-0.0.1/postgast/libpg_query.so +0 -0
  7. postgast-0.0.1/pyproject.toml +227 -0
  8. postgast-0.0.1/src/postgast/__init__.py +51 -0
  9. postgast-0.0.1/src/postgast/deparse.py +48 -0
  10. postgast-0.0.1/src/postgast/errors.py +94 -0
  11. postgast-0.0.1/src/postgast/fingerprint.py +52 -0
  12. postgast-0.0.1/src/postgast/helpers.py +399 -0
  13. postgast-0.0.1/src/postgast/native.py +217 -0
  14. postgast-0.0.1/src/postgast/normalize.py +35 -0
  15. postgast-0.0.1/src/postgast/parse.py +43 -0
  16. postgast-0.0.1/src/postgast/pg_query_pb2.py +734 -0
  17. postgast-0.0.1/src/postgast/pg_query_pb2.pyi +6836 -0
  18. postgast-0.0.1/src/postgast/py.typed +5 -0
  19. postgast-0.0.1/src/postgast/scan.py +44 -0
  20. postgast-0.0.1/src/postgast/split.py +58 -0
  21. postgast-0.0.1/src/postgast/walk.py +121 -0
  22. postgast-0.0.1/vendor/libpg_query/.git +1 -0
  23. postgast-0.0.1/vendor/libpg_query/.gitattributes +2 -0
  24. postgast-0.0.1/vendor/libpg_query/.github/workflows/ci.yml +122 -0
  25. postgast-0.0.1/vendor/libpg_query/.gitignore +23 -0
  26. postgast-0.0.1/vendor/libpg_query/.ruby-version +1 -0
  27. postgast-0.0.1/vendor/libpg_query/CHANGELOG.md +491 -0
  28. postgast-0.0.1/vendor/libpg_query/LICENSE +29 -0
  29. postgast-0.0.1/vendor/libpg_query/Makefile +354 -0
  30. postgast-0.0.1/vendor/libpg_query/Makefile.msvc +120 -0
  31. postgast-0.0.1/vendor/libpg_query/README.md +299 -0
  32. postgast-0.0.1/vendor/libpg_query/examples/normalize.c +22 -0
  33. postgast-0.0.1/vendor/libpg_query/examples/normalize_error.c +23 -0
  34. postgast-0.0.1/vendor/libpg_query/examples/scan.c +60 -0
  35. postgast-0.0.1/vendor/libpg_query/examples/simple.c +40 -0
  36. postgast-0.0.1/vendor/libpg_query/examples/simple_error.c +23 -0
  37. postgast-0.0.1/vendor/libpg_query/examples/simple_plpgsql.c +32 -0
  38. postgast-0.0.1/vendor/libpg_query/patches/01_parser_additional_param_ref_support.patch +237 -0
  39. postgast-0.0.1/vendor/libpg_query/patches/03_lexer_track_yyllocend.patch +98 -0
  40. postgast-0.0.1/vendor/libpg_query/patches/04_lexer_comments_as_tokens.patch +129 -0
  41. postgast-0.0.1/vendor/libpg_query/patches/05_limit_option_enum_value_default.patch +36 -0
  42. postgast-0.0.1/vendor/libpg_query/patches/06_alloc_set_delete_free_list.patch +53 -0
  43. postgast-0.0.1/vendor/libpg_query/patches/07_plpgsql_start_finish_datums.patch +53 -0
  44. postgast-0.0.1/vendor/libpg_query/patches/08_avoid_zero_length_delimiter_in_regression_tests.patch +134 -0
  45. postgast-0.0.1/vendor/libpg_query/patches/09_allow_param_junk.patch +23 -0
  46. postgast-0.0.1/vendor/libpg_query/patches/10_avoid_namespace_hashtab_impl_gen.patch +23 -0
  47. postgast-0.0.1/vendor/libpg_query/patches/11_ifndef_namedatalen.patch +14 -0
  48. postgast-0.0.1/vendor/libpg_query/pg_query.h +177 -0
  49. postgast-0.0.1/vendor/libpg_query/postgres_deparse.h +34 -0
  50. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.pb-c.c +44999 -0
  51. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.pb-c.h +12869 -0
  52. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.pb-c.o +0 -0
  53. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.pb.cc +117712 -0
  54. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.pb.h +168618 -0
  55. postgast-0.0.1/vendor/libpg_query/protobuf/pg_query.proto +4157 -0
  56. postgast-0.0.1/vendor/libpg_query/scripts/extract_headers.rb +262 -0
  57. postgast-0.0.1/vendor/libpg_query/scripts/extract_source.rb +775 -0
  58. postgast-0.0.1/vendor/libpg_query/scripts/generate_fingerprint_outfuncs.rb +408 -0
  59. postgast-0.0.1/vendor/libpg_query/scripts/generate_fingerprint_tests.rb +37 -0
  60. postgast-0.0.1/vendor/libpg_query/scripts/generate_protobuf_and_funcs.rb +497 -0
  61. postgast-0.0.1/vendor/libpg_query/scripts/pg_config_overrides.h +163 -0
  62. postgast-0.0.1/vendor/libpg_query/scripts/update_summary_tests_list.rb +14 -0
  63. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_enum_defs.c +3003 -0
  64. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_fingerprint_conds.c +1032 -0
  65. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_fingerprint_defs.c +14978 -0
  66. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_json_helper.c +61 -0
  67. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_outfuncs_conds.c +806 -0
  68. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_outfuncs_defs.c +2884 -0
  69. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_readfuncs_conds.c +261 -0
  70. postgast-0.0.1/vendor/libpg_query/src/include/pg_query_readfuncs_defs.c +3403 -0
  71. postgast-0.0.1/vendor/libpg_query/src/pg_query.c +113 -0
  72. postgast-0.0.1/vendor/libpg_query/src/pg_query.o +0 -0
  73. postgast-0.0.1/vendor/libpg_query/src/pg_query_deparse.c +197 -0
  74. postgast-0.0.1/vendor/libpg_query/src/pg_query_deparse.o +0 -0
  75. postgast-0.0.1/vendor/libpg_query/src/pg_query_fingerprint.c +407 -0
  76. postgast-0.0.1/vendor/libpg_query/src/pg_query_fingerprint.h +10 -0
  77. postgast-0.0.1/vendor/libpg_query/src/pg_query_fingerprint.o +0 -0
  78. postgast-0.0.1/vendor/libpg_query/src/pg_query_internal.h +25 -0
  79. postgast-0.0.1/vendor/libpg_query/src/pg_query_is_utility_stmt.c +70 -0
  80. postgast-0.0.1/vendor/libpg_query/src/pg_query_is_utility_stmt.o +0 -0
  81. postgast-0.0.1/vendor/libpg_query/src/pg_query_json_plpgsql.c +782 -0
  82. postgast-0.0.1/vendor/libpg_query/src/pg_query_json_plpgsql.h +9 -0
  83. postgast-0.0.1/vendor/libpg_query/src/pg_query_json_plpgsql.o +0 -0
  84. postgast-0.0.1/vendor/libpg_query/src/pg_query_normalize.c +688 -0
  85. postgast-0.0.1/vendor/libpg_query/src/pg_query_normalize.o +0 -0
  86. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs.h +11 -0
  87. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs_json.c +354 -0
  88. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs_json.o +0 -0
  89. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs_protobuf.c +298 -0
  90. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs_protobuf.o +0 -0
  91. postgast-0.0.1/vendor/libpg_query/src/pg_query_outfuncs_protobuf_cpp.cc +269 -0
  92. postgast-0.0.1/vendor/libpg_query/src/pg_query_parse.c +190 -0
  93. postgast-0.0.1/vendor/libpg_query/src/pg_query_parse.o +0 -0
  94. postgast-0.0.1/vendor/libpg_query/src/pg_query_parse_plpgsql.c +524 -0
  95. postgast-0.0.1/vendor/libpg_query/src/pg_query_parse_plpgsql.o +0 -0
  96. postgast-0.0.1/vendor/libpg_query/src/pg_query_raw_tree_walker_supports.c +117 -0
  97. postgast-0.0.1/vendor/libpg_query/src/pg_query_raw_tree_walker_supports.o +0 -0
  98. postgast-0.0.1/vendor/libpg_query/src/pg_query_readfuncs.h +11 -0
  99. postgast-0.0.1/vendor/libpg_query/src/pg_query_readfuncs_protobuf.c +177 -0
  100. postgast-0.0.1/vendor/libpg_query/src/pg_query_readfuncs_protobuf.o +0 -0
  101. postgast-0.0.1/vendor/libpg_query/src/pg_query_scan.c +174 -0
  102. postgast-0.0.1/vendor/libpg_query/src/pg_query_scan.o +0 -0
  103. postgast-0.0.1/vendor/libpg_query/src/pg_query_split.c +222 -0
  104. postgast-0.0.1/vendor/libpg_query/src/pg_query_split.o +0 -0
  105. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary.c +941 -0
  106. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary.h +109 -0
  107. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary.o +0 -0
  108. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary_statement_type.c +797 -0
  109. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary_statement_type.o +0 -0
  110. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary_truncate.c +530 -0
  111. postgast-0.0.1/vendor/libpg_query/src/pg_query_summary_truncate.o +0 -0
  112. postgast-0.0.1/vendor/libpg_query/src/postgres/COPYRIGHT +23 -0
  113. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/amapi.h +303 -0
  114. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/attmap.h +54 -0
  115. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/attnum.h +64 -0
  116. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/brin_internal.h +116 -0
  117. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/brin_tuple.h +112 -0
  118. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/clog.h +62 -0
  119. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/commit_ts.h +73 -0
  120. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/detoast.h +82 -0
  121. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/genam.h +246 -0
  122. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/gin.h +91 -0
  123. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/htup.h +89 -0
  124. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/htup_details.h +811 -0
  125. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/itup.h +170 -0
  126. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/parallel.h +81 -0
  127. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/printtup.h +35 -0
  128. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/relation.h +28 -0
  129. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/relscan.h +191 -0
  130. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/rmgr.h +62 -0
  131. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/rmgrlist.h +49 -0
  132. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/sdir.h +67 -0
  133. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/skey.h +151 -0
  134. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/slru.h +218 -0
  135. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/stratnum.h +85 -0
  136. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/sysattr.h +29 -0
  137. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/table.h +28 -0
  138. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tableam.h +2117 -0
  139. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tidstore.h +50 -0
  140. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/toast_compression.h +73 -0
  141. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/transam.h +418 -0
  142. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tsmapi.h +82 -0
  143. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tupconvert.h +54 -0
  144. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tupdesc.h +154 -0
  145. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/tupmacs.h +207 -0
  146. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/twophase.h +65 -0
  147. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xact.h +530 -0
  148. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlog.h +311 -0
  149. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlog_internal.h +405 -0
  150. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogbackup.h +43 -0
  151. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogdefs.h +83 -0
  152. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogprefetcher.h +55 -0
  153. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogreader.h +444 -0
  154. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogrecord.h +248 -0
  155. postgast-0.0.1/vendor/libpg_query/src/postgres/include/access/xlogrecovery.h +158 -0
  156. postgast-0.0.1/vendor/libpg_query/src/postgres/include/archive/archive_module.h +67 -0
  157. postgast-0.0.1/vendor/libpg_query/src/postgres/include/c.h +1374 -0
  158. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/catalog.h +47 -0
  159. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/catversion.h +62 -0
  160. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/dependency.h +228 -0
  161. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/genbki.h +149 -0
  162. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/index.h +218 -0
  163. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/indexing.h +54 -0
  164. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/namespace.h +189 -0
  165. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/objectaccess.h +267 -0
  166. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/objectaddress.h +93 -0
  167. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_aggregate.h +182 -0
  168. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_aggregate_d.h +78 -0
  169. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_am.h +66 -0
  170. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_am_d.h +47 -0
  171. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_attribute.h +240 -0
  172. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_attribute_d.h +62 -0
  173. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_authid.h +66 -0
  174. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_authid_d.h +60 -0
  175. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_class.h +235 -0
  176. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_class_d.h +134 -0
  177. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_collation.h +106 -0
  178. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_collation_d.h +66 -0
  179. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_constraint.h +278 -0
  180. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_constraint_d.h +74 -0
  181. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_control.h +260 -0
  182. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_conversion.h +79 -0
  183. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_conversion_d.h +38 -0
  184. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_database.h +129 -0
  185. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_database_d.h +53 -0
  186. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_depend.h +77 -0
  187. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_depend_d.h +36 -0
  188. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_event_trigger.h +60 -0
  189. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_event_trigger_d.h +36 -0
  190. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_index.h +92 -0
  191. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_index_d.h +59 -0
  192. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_language.h +75 -0
  193. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_language_d.h +41 -0
  194. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_namespace.h +67 -0
  195. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_namespace_d.h +36 -0
  196. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_opclass.h +91 -0
  197. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_opclass_d.h +51 -0
  198. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_operator.h +124 -0
  199. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_operator_d.h +142 -0
  200. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_opfamily.h +67 -0
  201. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_opfamily_d.h +51 -0
  202. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_partitioned_table.h +76 -0
  203. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_partitioned_table_d.h +36 -0
  204. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_proc.h +223 -0
  205. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_proc_d.h +101 -0
  206. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_publication.h +161 -0
  207. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_publication_d.h +38 -0
  208. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_replication_origin.h +65 -0
  209. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_replication_origin_d.h +33 -0
  210. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_statistic.h +288 -0
  211. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_statistic_d.h +199 -0
  212. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_statistic_ext.h +91 -0
  213. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_statistic_ext_d.h +45 -0
  214. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_transform.h +51 -0
  215. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_transform_d.h +34 -0
  216. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_trigger.h +153 -0
  217. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_trigger_d.h +109 -0
  218. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_config.h +56 -0
  219. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_config_d.h +34 -0
  220. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_dict.h +62 -0
  221. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_dict_d.h +35 -0
  222. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_parser.h +63 -0
  223. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_parser_d.h +37 -0
  224. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_template.h +54 -0
  225. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_ts_template_d.h +34 -0
  226. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_type.h +407 -0
  227. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/pg_type_d.h +324 -0
  228. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/storage.h +50 -0
  229. postgast-0.0.1/vendor/libpg_query/src/postgres/include/catalog/syscache_ids.h +104 -0
  230. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/async.h +49 -0
  231. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/dbcommands.h +37 -0
  232. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/defrem.h +161 -0
  233. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/event_trigger.h +97 -0
  234. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/explain.h +145 -0
  235. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/prepare.h +61 -0
  236. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/tablespace.h +69 -0
  237. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/trigger.h +306 -0
  238. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/user.h +43 -0
  239. postgast-0.0.1/vendor/libpg_query/src/postgres/include/commands/vacuum.h +388 -0
  240. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/cryptohash.h +39 -0
  241. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/file_perm.h +56 -0
  242. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/file_utils.h +65 -0
  243. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/hashfn.h +119 -0
  244. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/hashfn_unstable.h +407 -0
  245. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/int.h +512 -0
  246. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/keywords.h +29 -0
  247. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/kwlookup.h +44 -0
  248. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/pg_prng.h +62 -0
  249. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/relpath.h +97 -0
  250. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/scram-common.h +70 -0
  251. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/sha2.h +32 -0
  252. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/string.h +44 -0
  253. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/unicode_east_asian_fw_table.h +124 -0
  254. postgast-0.0.1/vendor/libpg_query/src/postgres/include/common/unicode_nonspacing_table.h +326 -0
  255. postgast-0.0.1/vendor/libpg_query/src/postgres/include/copyfuncs.funcs.c +5261 -0
  256. postgast-0.0.1/vendor/libpg_query/src/postgres/include/copyfuncs.switch.c +989 -0
  257. postgast-0.0.1/vendor/libpg_query/src/postgres/include/datatype/timestamp.h +269 -0
  258. postgast-0.0.1/vendor/libpg_query/src/postgres/include/equalfuncs.funcs.c +3310 -0
  259. postgast-0.0.1/vendor/libpg_query/src/postgres/include/equalfuncs.switch.c +836 -0
  260. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/execdesc.h +70 -0
  261. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/executor.h +685 -0
  262. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/functions.h +56 -0
  263. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/instrument.h +120 -0
  264. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/spi.h +207 -0
  265. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/tablefunc.h +67 -0
  266. postgast-0.0.1/vendor/libpg_query/src/postgres/include/executor/tuptable.h +523 -0
  267. postgast-0.0.1/vendor/libpg_query/src/postgres/include/fmgr.h +800 -0
  268. postgast-0.0.1/vendor/libpg_query/src/postgres/include/foreign/fdwapi.h +294 -0
  269. postgast-0.0.1/vendor/libpg_query/src/postgres/include/funcapi.h +360 -0
  270. postgast-0.0.1/vendor/libpg_query/src/postgres/include/gram.h +1168 -0
  271. postgast-0.0.1/vendor/libpg_query/src/postgres/include/gramparse.h +75 -0
  272. postgast-0.0.1/vendor/libpg_query/src/postgres/include/jit/jit.h +106 -0
  273. postgast-0.0.1/vendor/libpg_query/src/postgres/include/kwlist_d.h +1164 -0
  274. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/auth.h +37 -0
  275. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/crypt.h +47 -0
  276. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/hba.h +186 -0
  277. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/libpq-be.h +361 -0
  278. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/libpq.h +143 -0
  279. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/pqcomm.h +169 -0
  280. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/pqformat.h +209 -0
  281. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/pqsignal.h +54 -0
  282. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/protocol.h +89 -0
  283. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/sasl.h +136 -0
  284. postgast-0.0.1/vendor/libpg_query/src/postgres/include/libpq/scram.h +37 -0
  285. postgast-0.0.1/vendor/libpg_query/src/postgres/include/mb/pg_wchar.h +795 -0
  286. postgast-0.0.1/vendor/libpg_query/src/postgres/include/mb/stringinfo_mb.h +24 -0
  287. postgast-0.0.1/vendor/libpg_query/src/postgres/include/miscadmin.h +528 -0
  288. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/bitmapset.h +140 -0
  289. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/execnodes.h +2853 -0
  290. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/extensible.h +164 -0
  291. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/lockoptions.h +61 -0
  292. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/makefuncs.h +127 -0
  293. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/memnodes.h +152 -0
  294. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/miscnodes.h +56 -0
  295. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/nodeFuncs.h +222 -0
  296. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/nodes.h +435 -0
  297. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/nodetags.h +491 -0
  298. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/params.h +170 -0
  299. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/parsenodes.h +4233 -0
  300. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/pathnodes.h +3437 -0
  301. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/pg_list.h +686 -0
  302. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/plannodes.h +1593 -0
  303. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/primnodes.h +2339 -0
  304. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/print.h +34 -0
  305. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/queryjumble.h +86 -0
  306. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/replnodes.h +132 -0
  307. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/supportnodes.h +346 -0
  308. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/tidbitmap.h +75 -0
  309. postgast-0.0.1/vendor/libpg_query/src/postgres/include/nodes/value.h +90 -0
  310. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/cost.h +216 -0
  311. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/geqo.h +90 -0
  312. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/geqo_gene.h +45 -0
  313. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/optimizer.h +205 -0
  314. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/paths.h +271 -0
  315. postgast-0.0.1/vendor/libpg_query/src/postgres/include/optimizer/planmain.h +123 -0
  316. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/analyze.h +66 -0
  317. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/kwlist.h +518 -0
  318. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_agg.h +65 -0
  319. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_coerce.h +105 -0
  320. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_expr.h +25 -0
  321. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_func.h +74 -0
  322. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_node.h +358 -0
  323. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_oper.h +68 -0
  324. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_relation.h +129 -0
  325. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parse_type.h +61 -0
  326. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parser.h +68 -0
  327. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/parsetree.h +61 -0
  328. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/scanner.h +152 -0
  329. postgast-0.0.1/vendor/libpg_query/src/postgres/include/parser/scansup.h +27 -0
  330. postgast-0.0.1/vendor/libpg_query/src/postgres/include/partitioning/partdefs.h +26 -0
  331. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_config.h +986 -0
  332. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_config_ext.h +8 -0
  333. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_config_manual.h +387 -0
  334. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_config_os.h +8 -0
  335. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_getopt.h +56 -0
  336. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pg_trace.h +17 -0
  337. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pgstat.h +780 -0
  338. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pgtime.h +94 -0
  339. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pl_gram.h +385 -0
  340. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pl_reserved_kwlist.h +52 -0
  341. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pl_reserved_kwlist_d.h +114 -0
  342. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pl_unreserved_kwlist.h +112 -0
  343. postgast-0.0.1/vendor/libpg_query/src/postgres/include/pl_unreserved_kwlist_d.h +246 -0
  344. postgast-0.0.1/vendor/libpg_query/src/postgres/include/plerrcodes.h +998 -0
  345. postgast-0.0.1/vendor/libpg_query/src/postgres/include/plpgsql.h +1342 -0
  346. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/arch-arm.h +32 -0
  347. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/arch-hppa.h +17 -0
  348. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/arch-ppc.h +256 -0
  349. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/arch-x86.h +254 -0
  350. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/fallback.h +170 -0
  351. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/generic-gcc.h +331 -0
  352. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/generic-msvc.h +119 -0
  353. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/generic-sunpro.h +121 -0
  354. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics/generic.h +437 -0
  355. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/atomics.h +606 -0
  356. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/pg_bitutils.h +421 -0
  357. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/pg_bswap.h +161 -0
  358. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/pg_crc32c.h +110 -0
  359. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/pg_iovec.h +123 -0
  360. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/simd.h +422 -0
  361. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/arpa/inet.h +3 -0
  362. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/dlfcn.h +1 -0
  363. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/grp.h +1 -0
  364. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/netdb.h +7 -0
  365. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/netinet/in.h +3 -0
  366. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/netinet/tcp.h +7 -0
  367. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/pwd.h +3 -0
  368. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/sys/resource.h +20 -0
  369. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/sys/select.h +3 -0
  370. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/sys/socket.h +34 -0
  371. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/sys/un.h +17 -0
  372. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32/sys/wait.h +3 -0
  373. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32.h +59 -0
  374. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/dirent.h +34 -0
  375. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/sys/file.h +1 -0
  376. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/sys/param.h +1 -0
  377. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/sys/time.h +1 -0
  378. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/unistd.h +9 -0
  379. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_msvc/utime.h +3 -0
  380. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port/win32_port.h +582 -0
  381. postgast-0.0.1/vendor/libpg_query/src/postgres/include/port.h +555 -0
  382. postgast-0.0.1/vendor/libpg_query/src/postgres/include/portability/instr_time.h +197 -0
  383. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postgres.h +579 -0
  384. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postgres_ext.h +73 -0
  385. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/autovacuum.h +69 -0
  386. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/bgworker.h +164 -0
  387. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/bgworker_internals.h +60 -0
  388. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/bgwriter.h +45 -0
  389. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/interrupt.h +32 -0
  390. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/pgarch.h +36 -0
  391. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/postmaster.h +101 -0
  392. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/startup.h +41 -0
  393. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/syslogger.h +101 -0
  394. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/walsummarizer.h +35 -0
  395. postgast-0.0.1/vendor/libpg_query/src/postgres/include/postmaster/walwriter.h +23 -0
  396. postgast-0.0.1/vendor/libpg_query/src/postgres/include/regex/regex.h +272 -0
  397. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/logicallauncher.h +34 -0
  398. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/logicalproto.h +274 -0
  399. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/logicalworker.h +33 -0
  400. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/origin.h +73 -0
  401. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/reorderbuffer.h +754 -0
  402. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/slot.h +291 -0
  403. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/slotsync.h +38 -0
  404. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/syncrep.h +109 -0
  405. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/walreceiver.h +504 -0
  406. postgast-0.0.1/vendor/libpg_query/src/postgres/include/replication/walsender.h +76 -0
  407. postgast-0.0.1/vendor/libpg_query/src/postgres/include/rewrite/prs2lock.h +46 -0
  408. postgast-0.0.1/vendor/libpg_query/src/postgres/include/rewrite/rewriteHandler.h +41 -0
  409. postgast-0.0.1/vendor/libpg_query/src/postgres/include/rewrite/rewriteManip.h +96 -0
  410. postgast-0.0.1/vendor/libpg_query/src/postgres/include/rewrite/rewriteSupport.h +26 -0
  411. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/block.h +108 -0
  412. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/buf.h +46 -0
  413. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/bufmgr.h +411 -0
  414. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/bufpage.h +510 -0
  415. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/condition_variable.h +73 -0
  416. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/dsm.h +61 -0
  417. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/dsm_impl.h +79 -0
  418. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/fd.h +219 -0
  419. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/fileset.h +40 -0
  420. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/ipc.h +87 -0
  421. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/item.h +19 -0
  422. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/itemid.h +184 -0
  423. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/itemptr.h +245 -0
  424. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/large_object.h +100 -0
  425. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/latch.h +196 -0
  426. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/lmgr.h +126 -0
  427. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/lock.h +624 -0
  428. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/lockdefs.h +61 -0
  429. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/lwlock.h +228 -0
  430. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/lwlocknames.h +47 -0
  431. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/off.h +57 -0
  432. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/pg_sema.h +61 -0
  433. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/pg_shmem.h +93 -0
  434. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/pmsignal.h +105 -0
  435. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/predicate.h +83 -0
  436. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/proc.h +488 -0
  437. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/procarray.h +103 -0
  438. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/proclist_types.h +53 -0
  439. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/procnumber.h +43 -0
  440. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/procsignal.h +75 -0
  441. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/read_stream.h +65 -0
  442. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/relfilelocator.h +100 -0
  443. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/s_lock.h +847 -0
  444. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/sharedfileset.h +37 -0
  445. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/shm_mq.h +86 -0
  446. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/shm_toc.h +58 -0
  447. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/shmem.h +59 -0
  448. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/sinval.h +153 -0
  449. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/smgr.h +130 -0
  450. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/spin.h +77 -0
  451. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/standby.h +109 -0
  452. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/standbydefs.h +74 -0
  453. postgast-0.0.1/vendor/libpg_query/src/postgres/include/storage/sync.h +66 -0
  454. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/cmdtag.h +62 -0
  455. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/cmdtaglist.h +219 -0
  456. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/deparse_utility.h +108 -0
  457. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/dest.h +148 -0
  458. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/fastpath.h +20 -0
  459. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/pquery.h +51 -0
  460. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/tcopprot.h +98 -0
  461. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tcop/utility.h +112 -0
  462. postgast-0.0.1/vendor/libpg_query/src/postgres/include/tsearch/ts_cache.h +96 -0
  463. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/acl.h +290 -0
  464. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/aclchk_internal.h +45 -0
  465. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/array.h +481 -0
  466. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/ascii.h +84 -0
  467. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/backend_progress.h +46 -0
  468. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/backend_status.h +340 -0
  469. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/builtins.h +139 -0
  470. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/bytea.h +28 -0
  471. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/catcache.h +231 -0
  472. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/date.h +118 -0
  473. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/datetime.h +367 -0
  474. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/datum.h +76 -0
  475. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/dsa.h +166 -0
  476. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/elog.h +541 -0
  477. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/errcodes.h +352 -0
  478. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/expandeddatum.h +170 -0
  479. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/expandedrecord.h +241 -0
  480. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/float.h +357 -0
  481. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/fmgroids.h +3347 -0
  482. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/fmgrprotos.h +2904 -0
  483. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/fmgrtab.h +49 -0
  484. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/guc.h +456 -0
  485. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/guc_hooks.h +182 -0
  486. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/guc_tables.h +323 -0
  487. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/hsearch.h +153 -0
  488. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/injection_point.h +44 -0
  489. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/inval.h +68 -0
  490. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/logtape.h +77 -0
  491. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/lsyscache.h +215 -0
  492. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/memdebug.h +82 -0
  493. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/memutils.h +193 -0
  494. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/memutils_internal.h +176 -0
  495. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/memutils_memorychunk.h +253 -0
  496. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/numeric.h +110 -0
  497. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/palloc.h +151 -0
  498. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/partcache.h +103 -0
  499. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/pg_locale.h +141 -0
  500. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/pgstat_internal.h +827 -0
  501. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/plancache.h +238 -0
  502. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/portal.h +252 -0
  503. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/probes.h +114 -0
  504. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/ps_status.h +47 -0
  505. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/queryenvironment.h +74 -0
  506. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/regproc.h +39 -0
  507. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/rel.h +711 -0
  508. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/relcache.h +155 -0
  509. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/reltrigger.h +81 -0
  510. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/resowner.h +167 -0
  511. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/ruleutils.h +52 -0
  512. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/sharedtuplestore.h +61 -0
  513. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/snapmgr.h +130 -0
  514. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/snapshot.h +219 -0
  515. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/sortsupport.h +391 -0
  516. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/syscache.h +136 -0
  517. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/timeout.h +96 -0
  518. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/timestamp.h +147 -0
  519. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/tuplesort.h +472 -0
  520. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/tuplestore.h +88 -0
  521. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/typcache.h +210 -0
  522. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/varlena.h +53 -0
  523. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/wait_event.h +108 -0
  524. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/wait_event_types.h +218 -0
  525. postgast-0.0.1/vendor/libpg_query/src/postgres/include/utils/xml.h +94 -0
  526. postgast-0.0.1/vendor/libpg_query/src/postgres/include/varatt.h +358 -0
  527. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_catalog_namespace.c +1272 -0
  528. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_catalog_namespace.o +0 -0
  529. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_catalog_pg_proc.c +143 -0
  530. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_catalog_pg_proc.o +0 -0
  531. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_commands_define.c +126 -0
  532. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_commands_define.o +0 -0
  533. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_bitmapset.c +582 -0
  534. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_bitmapset.o +0 -0
  535. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_copyfuncs.c +222 -0
  536. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_copyfuncs.o +0 -0
  537. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_equalfuncs.c +275 -0
  538. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_equalfuncs.o +0 -0
  539. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_extensible.c +76 -0
  540. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_extensible.o +0 -0
  541. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_list.c +1064 -0
  542. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_list.o +0 -0
  543. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_makefuncs.c +551 -0
  544. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_makefuncs.o +0 -0
  545. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_nodeFuncs.c +1664 -0
  546. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_nodeFuncs.o +0 -0
  547. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_value.c +93 -0
  548. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_nodes_value.o +0 -0
  549. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_gram.c +53848 -0
  550. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_gram.o +0 -0
  551. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_parser.c +542 -0
  552. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_parser.o +0 -0
  553. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_scan.c +10892 -0
  554. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_scan.o +0 -0
  555. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_scansup.c +137 -0
  556. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_parser_scansup.o +0 -0
  557. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_storage_ipc_ipc.c +201 -0
  558. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_storage_ipc_ipc.o +0 -0
  559. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_tcop_postgres.c +828 -0
  560. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_tcop_postgres.o +0 -0
  561. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_activity_pgstat_database.c +140 -0
  562. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_activity_pgstat_database.o +0 -0
  563. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_datum.c +338 -0
  564. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_datum.o +0 -0
  565. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_expandeddatum.c +98 -0
  566. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_expandeddatum.o +0 -0
  567. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_format_type.c +140 -0
  568. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_format_type.o +0 -0
  569. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_numutils.c +488 -0
  570. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_numutils.o +0 -0
  571. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_ruleutils.c +1924 -0
  572. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_adt_ruleutils.o +0 -0
  573. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_error_assert.c +73 -0
  574. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_error_assert.o +0 -0
  575. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_error_elog.c +1959 -0
  576. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_error_elog.o +0 -0
  577. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_fmgr_fmgr.c +599 -0
  578. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_fmgr_fmgr.o +0 -0
  579. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_init_globals.c +183 -0
  580. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_init_globals.o +0 -0
  581. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mb_mbutils.c +814 -0
  582. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mb_mbutils.o +0 -0
  583. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_misc_guc_tables.c +502 -0
  584. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_misc_guc_tables.o +0 -0
  585. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_alignedalloc.c +181 -0
  586. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_alignedalloc.o +0 -0
  587. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_aset.c +1769 -0
  588. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_aset.o +0 -0
  589. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_bump.c +728 -0
  590. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_bump.o +0 -0
  591. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_generation.c +1115 -0
  592. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_generation.o +0 -0
  593. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_mcxt.c +1534 -0
  594. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_mcxt.o +0 -0
  595. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_slab.c +1079 -0
  596. postgast-0.0.1/vendor/libpg_query/src/postgres/src_backend_utils_mmgr_slab.o +0 -0
  597. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_encnames.c +160 -0
  598. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_encnames.o +0 -0
  599. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_hashfn.c +420 -0
  600. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_hashfn.o +0 -0
  601. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_keywords.c +52 -0
  602. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_keywords.o +0 -0
  603. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_kwlist_d.h +1173 -0
  604. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_kwlookup.c +91 -0
  605. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_kwlookup.o +0 -0
  606. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_psprintf.c +158 -0
  607. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_psprintf.o +0 -0
  608. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_stringinfo.c +373 -0
  609. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_stringinfo.o +0 -0
  610. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_wchar.c +2278 -0
  611. postgast-0.0.1/vendor/libpg_query/src/postgres/src_common_wchar.o +0 -0
  612. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_comp.c +1254 -0
  613. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_comp.o +0 -0
  614. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_funcs.c +862 -0
  615. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_funcs.o +0 -0
  616. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_gram.c +6573 -0
  617. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_gram.o +0 -0
  618. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_handler.c +107 -0
  619. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_handler.o +0 -0
  620. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_reserved_kwlist_d.h +123 -0
  621. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_scanner.c +689 -0
  622. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_scanner.o +0 -0
  623. postgast-0.0.1/vendor/libpg_query/src/postgres/src_pl_plpgsql_src_pl_unreserved_kwlist_d.h +255 -0
  624. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_pg_bitutils.c +454 -0
  625. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_pg_bitutils.o +0 -0
  626. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_pgstrcasecmp.c +139 -0
  627. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_pgstrcasecmp.o +0 -0
  628. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_qsort.c +28 -0
  629. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_qsort.o +0 -0
  630. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_snprintf.c +1468 -0
  631. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_snprintf.o +0 -0
  632. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_strerror.c +312 -0
  633. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_strerror.o +0 -0
  634. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_strlcpy.c +79 -0
  635. postgast-0.0.1/vendor/libpg_query/src/postgres/src_port_strlcpy.o +0 -0
  636. postgast-0.0.1/vendor/libpg_query/src/postgres_deparse.c +12107 -0
  637. postgast-0.0.1/vendor/libpg_query/src/postgres_deparse.o +0 -0
  638. postgast-0.0.1/vendor/libpg_query/srcdata/all_known_enums.json +76 -0
  639. postgast-0.0.1/vendor/libpg_query/srcdata/enum_defs.json +6948 -0
  640. postgast-0.0.1/vendor/libpg_query/srcdata/nodetypes.json +476 -0
  641. postgast-0.0.1/vendor/libpg_query/srcdata/struct_defs.json +11452 -0
  642. postgast-0.0.1/vendor/libpg_query/srcdata/typedefs.json +142 -0
  643. postgast-0.0.1/vendor/libpg_query/test/complex.c +10359 -0
  644. postgast-0.0.1/vendor/libpg_query/test/concurrency.c +61 -0
  645. postgast-0.0.1/vendor/libpg_query/test/deparse.c +667 -0
  646. postgast-0.0.1/vendor/libpg_query/test/deparse_tests.c +422 -0
  647. postgast-0.0.1/vendor/libpg_query/test/fingerprint.c +53 -0
  648. postgast-0.0.1/vendor/libpg_query/test/fingerprint_opts.c +54 -0
  649. postgast-0.0.1/vendor/libpg_query/test/fingerprint_opts_tests.c +34 -0
  650. postgast-0.0.1/vendor/libpg_query/test/fingerprint_tests.c +162 -0
  651. postgast-0.0.1/vendor/libpg_query/test/framework/main.c +260 -0
  652. postgast-0.0.1/vendor/libpg_query/test/framework/main.h +93 -0
  653. postgast-0.0.1/vendor/libpg_query/test/fuzz/fuzz_parser.c +21 -0
  654. postgast-0.0.1/vendor/libpg_query/test/is_utility_stmt.c +125 -0
  655. postgast-0.0.1/vendor/libpg_query/test/normalize.c +35 -0
  656. postgast-0.0.1/vendor/libpg_query/test/normalize_tests.c +57 -0
  657. postgast-0.0.1/vendor/libpg_query/test/normalize_utility.c +35 -0
  658. postgast-0.0.1/vendor/libpg_query/test/normalize_utility_tests.c +58 -0
  659. postgast-0.0.1/vendor/libpg_query/test/parse.c +35 -0
  660. postgast-0.0.1/vendor/libpg_query/test/parse_opts.c +36 -0
  661. postgast-0.0.1/vendor/libpg_query/test/parse_opts_tests.c +40 -0
  662. postgast-0.0.1/vendor/libpg_query/test/parse_plpgsql.c +62 -0
  663. postgast-0.0.1/vendor/libpg_query/test/parse_protobuf.c +38 -0
  664. postgast-0.0.1/vendor/libpg_query/test/parse_protobuf_opts.c +33 -0
  665. postgast-0.0.1/vendor/libpg_query/test/parse_tests.c +76 -0
  666. postgast-0.0.1/vendor/libpg_query/test/plpgsql_samples.expected.json +31 -0
  667. postgast-0.0.1/vendor/libpg_query/test/plpgsql_samples.sql +612 -0
  668. postgast-0.0.1/vendor/libpg_query/test/scan.c +69 -0
  669. postgast-0.0.1/vendor/libpg_query/test/scan_tests.c +101 -0
  670. postgast-0.0.1/vendor/libpg_query/test/split.c +105 -0
  671. postgast-0.0.1/vendor/libpg_query/test/split_tests.c +20 -0
  672. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/case.sql +7 -0
  673. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/comment_multiline.sql +5 -0
  674. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/complex_depesz.sql +34 -0
  675. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/complex_gitlab.sql +56 -0
  676. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/complex_mattm.sql +26 -0
  677. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/ddl_alter_table_add_constraint.sql +2 -0
  678. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/ddl_create_index.sql +3 -0
  679. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/ddl_create_table.sql +14 -0
  680. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/ddl_create_trigger.sql +1 -0
  681. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/ddl_create_type.sql +6 -0
  682. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/insert_long.sql +9 -0
  683. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/nested_cte.sql +11 -0
  684. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/simple.sql +10 -0
  685. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/union.sql +30 -0
  686. postgast-0.0.1/vendor/libpg_query/test/sql/deparse/union_2.sql +9 -0
  687. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/01-numbers.psql +1 -0
  688. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/02-string.psql +1 -0
  689. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/03-sql-functions.psql +6 -0
  690. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/04-functions.psql +6 -0
  691. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/06-column-aliases.psql +1 -0
  692. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/07-casts.psql +1 -0
  693. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/08-fields-in-table.psql +2 -0
  694. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/09-operators.psql +4 -0
  695. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/10-operators.psql +4 -0
  696. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/11-weird-operator.psql +2 -0
  697. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/12-boolean-operation.psql +2 -0
  698. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/13-joins.psql +5 -0
  699. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/14-star.psql +2 -0
  700. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/15-where.psql +5 -0
  701. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/16-groupby.psql +3 -0
  702. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/17-orderby.psql +5 -0
  703. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/18-limitoffset.psql +4 -0
  704. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/19-having.psql +6 -0
  705. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/20-case.psql +12 -0
  706. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/21-in.psql +6 -0
  707. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/22-subselect.psql +20 -0
  708. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/23-null.psql +2 -0
  709. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/24-range-function.psql +2 -0
  710. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/25-coalesce.psql +2 -0
  711. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/26-range-subselect.psql +6 -0
  712. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/27-distinct.psql +4 -0
  713. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/28-distinct-on.psql +5 -0
  714. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/29-param-ref.psql +2 -0
  715. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/30-array.psql +3 -0
  716. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/31-indirection.psql +4 -0
  717. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/32-collate.psql +3 -0
  718. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/33-window-functions.psql +13 -0
  719. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/34-framed-functions.psql +37 -0
  720. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/35-setops.psql +15 -0
  721. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/36-values.psql +5 -0
  722. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/37-cte.psql +12 -0
  723. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/38-rcte.psql +9 -0
  724. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/39-any.psql +3 -0
  725. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/40-all.psql +3 -0
  726. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/41-special-a-expr.psql +10 -0
  727. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/42-minimax.psql +4 -0
  728. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/43-rowexpr.psql +5 -0
  729. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/44-bitstring.psql +3 -0
  730. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/45-grouping-sets.psql +3 -0
  731. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/46-cube.psql +3 -0
  732. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/47-rollup.psql +3 -0
  733. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/48-sublink-any-all.psql +9 -0
  734. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/08-selects.d/49-variadic-func-call.psql +6 -0
  735. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/01-basic.psql +2 -0
  736. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/02-with-columns.psql +2 -0
  737. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/03-many-columns.psql +3 -0
  738. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/04-with-schema.psql +2 -0
  739. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/05-multirow.psql +4 -0
  740. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/06-returning-all.psql +3 -0
  741. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/07-returning-some.psql +3 -0
  742. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/08-default.psql +2 -0
  743. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/09-inserts.d/09-cte.psql +6 -0
  744. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/01-single-column-no-where.psql +2 -0
  745. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/02-many-columns-and-where.psql +6 -0
  746. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/03-with.psql +4 -0
  747. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/04-returning-all.psql +4 -0
  748. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/05-returning-some.psql +4 -0
  749. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/06-multi-assign-simple.psql +2 -0
  750. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/07-multi-assign-long.psql +7 -0
  751. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/08-multi-assign-mix.psql +5 -0
  752. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/09-cte.psql +7 -0
  753. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/10-updates.d/10-complex-where.psql +7 -0
  754. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/01-simple.psql +1 -0
  755. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/02-where.psql +2 -0
  756. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/03-using.psql +3 -0
  757. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/04-returning-all.psql +2 -0
  758. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/05-returning-some.psql +2 -0
  759. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/06-cte.psql +6 -0
  760. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/11-deletes.d/07-complex-where.psql +6 -0
  761. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/01-base.psql +3 -0
  762. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/01-base.sql +1 -0
  763. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/02-analyze.psql +2 -0
  764. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/02-analyze.sql +1 -0
  765. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/03-verbose.psql +2 -0
  766. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/03-verbose.sql +1 -0
  767. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/04-analyze-verbose.psql +2 -0
  768. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/04-analyze-verbose.sql +1 -0
  769. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/05-other.psql +2 -0
  770. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/12-explains.d/05-other.sql +1 -0
  771. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/01-system.psql +2 -0
  772. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/01-system.sql +1 -0
  773. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/02-bernoulli.psql +2 -0
  774. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/02-bernoulli.sql +1 -0
  775. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/03-repeatable.psql +2 -0
  776. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/13-tablesample.d/03-repeatable.sql +1 -0
  777. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/01-simple.psql +1 -0
  778. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/02-concat.psql +1 -0
  779. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/03-forest.psql +1 -0
  780. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/04-parse.psql +3 -0
  781. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/05-pi.psql +1 -0
  782. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/06-root.psql +5 -0
  783. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/07-serialize.psql +3 -0
  784. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/14-xml.d/08-is-document.psql +1 -0
  785. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/01-lateral.psql +12 -0
  786. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/02-current-row.psql +11 -0
  787. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/03-filtered-aggregates.psql +2 -0
  788. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/04-cast-of-expression.psql +3 -0
  789. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/05-literal-new-line.psql +2 -0
  790. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/06-aggregate-filter-inside-case.psql +7 -0
  791. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/07-missing-ordinality-and-order-by.psql +2 -0
  792. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/08-missing-dot-before-start.psql +1 -0
  793. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/09-missing-dot-before-column.psql +1 -0
  794. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/10-missing-not.psql +1 -0
  795. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/16-bugs.d/11-distinct-aggregate.psql +2 -0
  796. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/01-for-update.psql +5 -0
  797. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/02-for-no-key-update.psql +5 -0
  798. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/03-for-share.psql +5 -0
  799. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/04-for-key-share.psql +5 -0
  800. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/05-of-table.psql +7 -0
  801. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/06-of-tables.psql +7 -0
  802. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/07-nowait.psql +5 -0
  803. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/08-skip-locked.psql +5 -0
  804. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/17-locking-selects.d/09-multi.psql +8 -0
  805. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/01-basic-nothing.psql +3 -0
  806. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/02-constraint-nothing.psql +3 -0
  807. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/03-columns-nothing.psql +3 -0
  808. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/04-expr-complex.psql +3 -0
  809. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/05-simple-update.psql +4 -0
  810. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/06-update-multicolumn.psql +4 -0
  811. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/18-conflicts.d/07-update-complex.psql +18 -0
  812. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/01-rollback.sql +1 -0
  813. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/02-rollback_and_chain.sql +1 -0
  814. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/03-commit.sql +1 -0
  815. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/04-commit_and_chain.sql +1 -0
  816. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/05-start_transaction.sql +1 -0
  817. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/06-start_transaction_isolation_level_serializable.sql +1 -0
  818. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/07-start_transaction_isolation_level_repeatable_read.sql +1 -0
  819. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/08-start_transaction_isolation_level_read_committed.sql +1 -0
  820. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/09-start_transaction_isolation_level_read_uncommitted.sql +1 -0
  821. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/10-start_transaction_read_write.sql +1 -0
  822. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/11-start_transaction_read_only.sql +1 -0
  823. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/12-start_transaction_deferrable.sql +1 -0
  824. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/13-start_transaction_not_deferrable.sql +1 -0
  825. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/14-start_transaction_isolation_level_serializable,_deferrable.sql +1 -0
  826. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/15-begin.sql +1 -0
  827. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/16-begin_isolation_level_serializable.sql +1 -0
  828. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/17-begin_isolation_level_repeatable_read.sql +1 -0
  829. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/18-begin_isolation_level_read_committed.sql +1 -0
  830. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/19-begin_isolation_level_read_uncommitted.sql +1 -0
  831. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/20-begin_read_write.sql +1 -0
  832. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/21-begin_read_only.sql +1 -0
  833. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/22-begin_deferrable.sql +1 -0
  834. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/23-begin_not_deferrable.sql +1 -0
  835. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/19-transactions.d/24-begin_isolation_level_serializable,_deferrable.sql +1 -0
  836. postgast-0.0.1/vendor/libpg_query/test/sql/deparse-depesz/README.md +33 -0
  837. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_array.sql +150 -0
  838. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_cache.sql +50 -0
  839. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_call.sql +591 -0
  840. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_control.sql +502 -0
  841. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_copy.sql +58 -0
  842. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_domain.sql +279 -0
  843. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_misc.sql +39 -0
  844. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_record.sql +571 -0
  845. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_simple.sql +116 -0
  846. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_transaction.sql +636 -0
  847. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_trap.sql +175 -0
  848. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_trigger.sql +24 -0
  849. postgast-0.0.1/vendor/libpg_query/test/sql/plpgsql_regress/plpgsql_varprops.sql +247 -0
  850. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/advisory_lock.sql +148 -0
  851. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/aggregates.sql +1599 -0
  852. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/alter_generic.sql +616 -0
  853. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/alter_operator.sql +225 -0
  854. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/alter_table.sql +3113 -0
  855. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/amutils.sql +99 -0
  856. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/arrays.sql +851 -0
  857. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/async.sql +23 -0
  858. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/bit.sql +253 -0
  859. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/bitmapops.sql +41 -0
  860. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/boolean.sql +272 -0
  861. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/box.sql +289 -0
  862. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/brin.sql +525 -0
  863. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/brin_bloom.sql +376 -0
  864. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/brin_multi.sql +706 -0
  865. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/btree_index.sql +284 -0
  866. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/case.sql +270 -0
  867. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/char.sql +94 -0
  868. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/circle.sql +57 -0
  869. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/cluster.sql +324 -0
  870. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/collate.icu.utf8.sql +879 -0
  871. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/collate.linux.utf8.sql +464 -0
  872. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/collate.sql +310 -0
  873. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/collate.utf8.sql +67 -0
  874. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/collate.windows.win1252.sql +415 -0
  875. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/combocid.sql +111 -0
  876. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/comments.sql +42 -0
  877. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/compression.sql +155 -0
  878. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/constraints.sql +645 -0
  879. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/conversion.sql +373 -0
  880. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/copy.sql +322 -0
  881. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/copy2.sql +684 -0
  882. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/copydml.sql +95 -0
  883. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/copyselect.sql +96 -0
  884. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_aggregate.sql +330 -0
  885. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_am.sql +367 -0
  886. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_cast.sql +75 -0
  887. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_function_c.sql +35 -0
  888. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_function_sql.sql +421 -0
  889. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_index.sql +1315 -0
  890. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_index_spgist.sql +437 -0
  891. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_misc.sql +258 -0
  892. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_operator.sql +268 -0
  893. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_procedure.sql +289 -0
  894. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_role.sql +216 -0
  895. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_schema.sql +70 -0
  896. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_table.sql +740 -0
  897. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_table_like.sql +225 -0
  898. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_type.sql +299 -0
  899. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/create_view.sql +843 -0
  900. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/database.sql +24 -0
  901. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/date.sql +375 -0
  902. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/dbsize.sql +72 -0
  903. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/delete.sql +25 -0
  904. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/dependency.sql +116 -0
  905. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/domain.sql +891 -0
  906. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/drop_if_exists.sql +304 -0
  907. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/drop_operator.sql +56 -0
  908. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/enum.sql +348 -0
  909. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/equivclass.sql +271 -0
  910. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/errors.sql +370 -0
  911. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/event_trigger.sql +640 -0
  912. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/event_trigger_login.sql +24 -0
  913. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/explain.sql +171 -0
  914. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/expressions.sql +211 -0
  915. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/fast_default.sql +617 -0
  916. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/float4.sql +360 -0
  917. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/float8.sql +514 -0
  918. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/foreign_data.sql +868 -0
  919. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/foreign_key.sql +2231 -0
  920. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/functional_deps.sql +210 -0
  921. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/generated.sql +710 -0
  922. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/geometry.sql +531 -0
  923. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/gin.sql +183 -0
  924. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/gist.sql +188 -0
  925. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/groupingsets.sql +592 -0
  926. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/guc.sql +355 -0
  927. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/hash_func.sql +264 -0
  928. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/hash_index.sql +323 -0
  929. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/hash_part.sql +90 -0
  930. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/horology.sql +689 -0
  931. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/identity.sql +539 -0
  932. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/incremental_sort.sql +294 -0
  933. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/index_including.sql +238 -0
  934. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/index_including_gist.sql +90 -0
  935. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/indexing.sql +921 -0
  936. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/indirect_toast.sql +82 -0
  937. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/inet.sql +263 -0
  938. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/infinite_recurse.sql +29 -0
  939. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/inherit.sql +1163 -0
  940. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/init_privs.sql +10 -0
  941. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/insert.sql +676 -0
  942. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/insert_conflict.sql +591 -0
  943. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/int2.sql +157 -0
  944. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/int4.sql +212 -0
  945. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/int8.sql +294 -0
  946. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/interval.sql +800 -0
  947. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/join.sql +2967 -0
  948. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/join_hash.sql +625 -0
  949. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/json.sql +864 -0
  950. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/json_encoding.sql +82 -0
  951. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/jsonb.sql +1558 -0
  952. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/jsonb_jsonpath.sql +1138 -0
  953. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/jsonpath.sql +267 -0
  954. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/jsonpath_encoding.sql +59 -0
  955. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/largeobject.sql +327 -0
  956. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/limit.sql +204 -0
  957. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/line.sql +54 -0
  958. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/lock.sql +200 -0
  959. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/lseg.sql +28 -0
  960. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/macaddr.sql +49 -0
  961. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/macaddr8.sql +95 -0
  962. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/maintain_every.sql +26 -0
  963. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/matview.sql +316 -0
  964. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/md5.sql +36 -0
  965. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/memoize.sql +221 -0
  966. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/merge.sql +1839 -0
  967. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/misc.sql +275 -0
  968. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/misc_functions.sql +275 -0
  969. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/misc_sanity.sql +74 -0
  970. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/money.sql +148 -0
  971. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/multirangetypes.sql +884 -0
  972. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/mvcc.sql +44 -0
  973. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/name.sql +87 -0
  974. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/namespace.sql +100 -0
  975. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/numeric.sql +1531 -0
  976. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/numeric_big.sql +1366 -0
  977. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/numerology.sql +194 -0
  978. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/object_address.sql +297 -0
  979. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/oid.sql +57 -0
  980. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/oidjoins.sql +49 -0
  981. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/opr_sanity.sql +1421 -0
  982. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/partition_aggregate.sql +336 -0
  983. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/partition_info.sql +129 -0
  984. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/partition_join.sql +1222 -0
  985. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/partition_prune.sql +1335 -0
  986. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/password.sql +116 -0
  987. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/path.sql +50 -0
  988. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/pg_lsn.sql +60 -0
  989. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/plancache.sql +225 -0
  990. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/plpgsql.sql +4776 -0
  991. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/point.sql +102 -0
  992. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/polygon.sql +148 -0
  993. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/polymorphism.sql +1137 -0
  994. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/portals.sql +607 -0
  995. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/portals_p2.sql +98 -0
  996. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/predicate.sql +185 -0
  997. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/prepare.sql +84 -0
  998. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/prepared_xacts.sql +164 -0
  999. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/privileges.sql +2002 -0
  1000. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/psql.sql +1893 -0
  1001. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/psql_crosstab.sql +124 -0
  1002. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/publication.sql +1190 -0
  1003. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/random.sql +279 -0
  1004. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/rangefuncs.sql +827 -0
  1005. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/rangetypes.sql +700 -0
  1006. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/regex.sql +158 -0
  1007. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/regproc.sql +155 -0
  1008. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/reindex_catalog.sql +52 -0
  1009. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/reloptions.sql +139 -0
  1010. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/replica_identity.sql +128 -0
  1011. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/returning.sql +186 -0
  1012. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/roleattributes.sql +98 -0
  1013. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/rowsecurity.sql +2362 -0
  1014. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/rowtypes.sql +564 -0
  1015. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/rules.sql +1430 -0
  1016. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sanity_check.sql +21 -0
  1017. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/security_label.sql +45 -0
  1018. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select.sql +264 -0
  1019. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_distinct.sql +223 -0
  1020. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_distinct_on.sql +44 -0
  1021. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_having.sql +50 -0
  1022. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_implicit.sql +156 -0
  1023. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_into.sql +138 -0
  1024. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_parallel.sql +552 -0
  1025. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/select_views.sql +155 -0
  1026. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sequence.sql +416 -0
  1027. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/spgist.sql +91 -0
  1028. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sqljson.sql +509 -0
  1029. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sqljson_jsontable.sql +563 -0
  1030. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sqljson_queryfuncs.sql +502 -0
  1031. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/stats.sql +868 -0
  1032. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/stats_ext.sql +1785 -0
  1033. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/strings.sql +864 -0
  1034. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/subscription.sql +348 -0
  1035. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/subselect.sql +1097 -0
  1036. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/sysviews.sql +90 -0
  1037. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tablesample.sql +110 -0
  1038. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tablespace.sql +439 -0
  1039. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/temp.sql +313 -0
  1040. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/test_setup.sql +296 -0
  1041. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/text.sql +114 -0
  1042. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tid.sql +72 -0
  1043. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tidrangescan.sql +101 -0
  1044. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tidscan.sql +104 -0
  1045. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/time.sql +79 -0
  1046. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/timestamp.sql +426 -0
  1047. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/timestamptz.sql +674 -0
  1048. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/timetz.sql +108 -0
  1049. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/transactions.sql +644 -0
  1050. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/triggers.sql +2878 -0
  1051. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/truncate.sql +329 -0
  1052. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tsdicts.sql +283 -0
  1053. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tsearch.sql +895 -0
  1054. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tsrf.sql +185 -0
  1055. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tstypes.sql +281 -0
  1056. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/tuplesort.sql +307 -0
  1057. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/txid.sql +102 -0
  1058. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/type_sanity.sql +568 -0
  1059. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/typed_table.sql +75 -0
  1060. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/unicode.sql +38 -0
  1061. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/union.sql +579 -0
  1062. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/updatable_views.sql +2082 -0
  1063. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/update.sql +672 -0
  1064. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/uuid.sql +103 -0
  1065. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/vacuum.sql +421 -0
  1066. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/vacuum_parallel.sql +46 -0
  1067. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/varchar.sql +73 -0
  1068. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/window.sql +1960 -0
  1069. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/with.sql +1720 -0
  1070. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/write_parallel.sql +43 -0
  1071. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/xid.sql +171 -0
  1072. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/xml.sql +681 -0
  1073. postgast-0.0.1/vendor/libpg_query/test/sql/postgres_regress/xmlmap.sql +63 -0
  1074. postgast-0.0.1/vendor/libpg_query/test/summary.c +257 -0
  1075. postgast-0.0.1/vendor/libpg_query/test/summary_tests.c +1075 -0
  1076. postgast-0.0.1/vendor/libpg_query/test/summary_tests_list.c +94 -0
  1077. postgast-0.0.1/vendor/libpg_query/test/summary_truncate.c +202 -0
  1078. postgast-0.0.1/vendor/libpg_query/test/valgrind.supp +43 -0
  1079. postgast-0.0.1/vendor/libpg_query/testdata/fingerprint.json +393 -0
  1080. postgast-0.0.1/vendor/libpg_query/tmp/.gitkeep +0 -0
  1081. postgast-0.0.1/vendor/libpg_query/vendor/protobuf-c/protobuf-c.c +3667 -0
  1082. postgast-0.0.1/vendor/libpg_query/vendor/protobuf-c/protobuf-c.h +1110 -0
  1083. postgast-0.0.1/vendor/libpg_query/vendor/protobuf-c/protobuf-c.o +0 -0
  1084. postgast-0.0.1/vendor/libpg_query/vendor/xxhash/xxhash.c +43 -0
  1085. postgast-0.0.1/vendor/libpg_query/vendor/xxhash/xxhash.h +5445 -0
  1086. postgast-0.0.1/vendor/libpg_query/vendor/xxhash/xxhash.o +0 -0
@@ -0,0 +1,212 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions (except vendored submodule)
7
+ *.so
8
+ !vendor/**/*.so
9
+
10
+ # Vendored native libraries placed by build hook (not checked in)
11
+ src/postgast/libpg_query.*
12
+ src/postgast/pg_query.dll
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py.cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+ cover/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+ db.sqlite3-journal
68
+
69
+ # Flask stuff:
70
+ instance/
71
+ .webassets-cache
72
+
73
+ # Scrapy stuff:
74
+ .scrapy
75
+
76
+ # Sphinx documentation
77
+ docs/_build/
78
+
79
+ # PyBuilder
80
+ .pybuilder/
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # IPython
87
+ profile_default/
88
+ ipython_config.py
89
+
90
+ # pyenv
91
+ # For a library or package, you might want to ignore these files since the code is
92
+ # intended to run in multiple environments; otherwise, check them in:
93
+ # .python-version
94
+
95
+ # pipenv
96
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
97
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
98
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
99
+ # install all needed dependencies.
100
+ #Pipfile.lock
101
+
102
+ # UV
103
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
104
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
105
+ # commonly ignored for libraries.
106
+ #uv.lock
107
+
108
+ # poetry
109
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
110
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
111
+ # commonly ignored for libraries.
112
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
113
+ #poetry.lock
114
+ #poetry.toml
115
+
116
+ # pdm
117
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
118
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
119
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
120
+ #pdm.lock
121
+ #pdm.toml
122
+ .pdm-python
123
+ .pdm-build/
124
+
125
+ # pixi
126
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
127
+ #pixi.lock
128
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
129
+ # in the .venv directory. It is recommended not to include this directory in version control.
130
+ .pixi
131
+
132
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
133
+ __pypackages__/
134
+
135
+ # Celery stuff
136
+ celerybeat-schedule
137
+ celerybeat.pid
138
+
139
+ # SageMath parsed files
140
+ *.sage.py
141
+
142
+ # Environments
143
+ .env
144
+ .envrc
145
+ .venv
146
+ env/
147
+ venv/
148
+ ENV/
149
+ env.bak/
150
+ venv.bak/
151
+
152
+ # Spyder project settings
153
+ .spyderproject
154
+ .spyproject
155
+
156
+ # Rope project settings
157
+ .ropeproject
158
+
159
+ # mkdocs documentation
160
+ /site
161
+
162
+ # mypy
163
+ .mypy_cache/
164
+ .dmypy.json
165
+ dmypy.json
166
+
167
+ # Pyre type checker
168
+ .pyre/
169
+
170
+ # pytype static type analyzer
171
+ .pytype/
172
+
173
+ # Cython debug symbols
174
+ cython_debug/
175
+
176
+ # PyCharm
177
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
178
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
179
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
180
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
181
+ #.idea/
182
+
183
+ # Abstra
184
+ # Abstra is an AI-powered process automation framework.
185
+ # Ignore directories containing user credentials, local state, and settings.
186
+ # Learn more at https://abstra.io/docs
187
+ .abstra/
188
+
189
+ # Visual Studio Code
190
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
191
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
192
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
193
+ # you could uncomment the following to ignore the entire vscode folder
194
+ # .vscode/
195
+
196
+ # Ruff stuff:
197
+ .ruff_cache/
198
+
199
+ # PyPI configuration file
200
+ .pypirc
201
+
202
+ # Cursor
203
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
204
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
205
+ # refer to https://docs.cursor.com/context/ignore-files
206
+ .cursorignore
207
+ .cursorindexingignore
208
+
209
+ # Marimo
210
+ marimo/_static/
211
+ marimo/_lsp/
212
+ __marimo__/
postgast-0.0.1/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2026, Edward Jones
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.4
2
+ Name: postgast
3
+ Version: 0.0.1
4
+ Summary: Python bindings to libpg_query — parse, deparse, normalize, fingerprint, split, and scan PostgreSQL SQL
5
+ Project-URL: Homepage, https://github.com/eddieland/postgast
6
+ Project-URL: Repository, https://github.com/eddieland/postgast
7
+ Project-URL: Issues, https://github.com/eddieland/postgast/issues
8
+ Project-URL: Changelog, https://github.com/eddieland/postgast/releases
9
+ Project-URL: Documentation, https://postgast.readthedocs.io
10
+ Author-email: Edward Jones <edwardrjones97@gmail.com>
11
+ License-Expression: BSD-2-Clause
12
+ License-File: LICENSE
13
+ Keywords: ast,libpg_query,parser,postgresql,sql
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: BSD License
17
+ Classifier: Operating System :: MacOS
18
+ Classifier: Operating System :: Microsoft :: Windows
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Topic :: Database
28
+ Classifier: Topic :: Software Development :: Libraries
29
+ Classifier: Typing :: Typed
30
+ Requires-Python: >=3.10
31
+ Requires-Dist: protobuf
32
+ Provides-Extra: docs
33
+ Requires-Dist: furo>=2024.8; extra == 'docs'
34
+ Requires-Dist: sphinx-autodoc-typehints>=2.0; extra == 'docs'
35
+ Requires-Dist: sphinx-copybutton>=0.5; extra == 'docs'
36
+ Requires-Dist: sphinx>=8.0; extra == 'docs'
37
+ Provides-Extra: recipes
38
+ Requires-Dist: marimo>=0.10; extra == 'recipes'
39
+ Requires-Dist: pyzmq>=27.1.0; extra == 'recipes'
40
+ Description-Content-Type: text/markdown
41
+
42
+ # postgast
43
+
44
+ [![PyPI](https://img.shields.io/pypi/v/postgast)](https://pypi.org/project/postgast/)
45
+ [![Python](https://img.shields.io/pypi/pyversions/postgast)](https://pypi.org/project/postgast/)
46
+ [![License](https://img.shields.io/pypi/l/postgast)](https://github.com/eddieland/postgast/blob/main/LICENSE)
47
+ [![CI](https://img.shields.io/github/actions/workflow/status/eddieland/postgast/ci.yml?label=CI)](https://github.com/eddieland/postgast/actions/workflows/ci.yml)
48
+ [![Coverage](https://codecov.io/gh/eddieland/postgast/graph/badge.svg)](https://codecov.io/gh/eddieland/postgast)
49
+ [![Docs](https://readthedocs.org/projects/postgast/badge/?version=latest)](https://postgast.readthedocs.io)
50
+ [![Downloads](https://img.shields.io/pypi/dm/postgast)](https://pypi.org/project/postgast/)
51
+
52
+ BSD-licensed Python bindings to [libpg_query](https://github.com/pganalyze/libpg_query), the PostgreSQL parser extracted
53
+ as a standalone C library.
54
+
55
+ Parse, deparse, normalize, fingerprint, split, and scan PostgreSQL SQL statements from Python with a minimal dependency
56
+ footprint — just `protobuf` and the vendored C library.
57
+
58
+ ## Features
59
+
60
+ | Feature | Status | Description |
61
+ | ---------------- | ----------------------------------------- | -------------------------------------------------------------------------- |
62
+ | **Parse** | [Available](openspec/specs/parse/) | SQL text to protobuf AST |
63
+ | **Deparse** | [Available](openspec/specs/deparse/) | AST back to SQL text |
64
+ | **Normalize** | [Available](openspec/specs/normalize/) | Replace constants with parameter placeholders |
65
+ | **Fingerprint** | [Available](openspec/specs/fingerprint/) | Identify structurally equivalent statements |
66
+ | **Split** | [Available](openspec/specs/split/) | Split multi-statement strings (respects strings, comments, dollar-quoting) |
67
+ | **Scan** | [Available](openspec/specs/scan/) | Tokenize SQL with keyword classification |
68
+ | **Tree Walking** | [Available](openspec/specs/tree-walking/) | Walk/visit AST nodes with depth-first traversal and visitor pattern |
69
+ | **AST Helpers** | [Available](openspec/specs/ast-helpers/) | Extract tables, columns, functions; generate DROP from CREATE DDL |
70
+
71
+ Built on `libpg_query` 17-latest (PostgreSQL 17 parser).
72
+
73
+ ## Installation
74
+
75
+ ```bash
76
+ pip install postgast
77
+ ```
78
+
79
+ ## Quick Start
80
+
81
+ ```python
82
+ import postgast
83
+
84
+ # Parse a query into an AST
85
+ tree = postgast.parse("SELECT id, name FROM users WHERE active = true")
86
+
87
+ # Deparse an AST back to SQL
88
+ sql = postgast.deparse(tree)
89
+
90
+ # Normalize a query (replace constants with placeholders)
91
+ normalized = postgast.normalize("SELECT * FROM users WHERE id = 42")
92
+ # => "SELECT * FROM users WHERE id = $1"
93
+
94
+ # Fingerprint a query
95
+ fp = postgast.fingerprint("SELECT * FROM users WHERE id = 42")
96
+
97
+ # Split a multi-statement string
98
+ stmts = postgast.split("SELECT 1; SELECT 2;")
99
+ # => ["SELECT 1", "SELECT 2"]
100
+ ```
101
+
102
+ ## Motivation
103
+
104
+ [pglast](https://github.com/lelit/pglast) is an excellent library that wraps `libpg_query` for Python, but it is
105
+ licensed under GPLv3, which makes it unusable in many commercial and permissively-licensed projects. `postgast` provides
106
+ a BSD-licensed alternative that leans directly on `libpg_query`'s C API via `ctypes`, keeping the implementation minimal
107
+ and the dependency footprint small.
108
+
109
+ ## How It Works
110
+
111
+ `postgast` calls `libpg_query`'s C functions directly through Python's `ctypes` module. Parse results are returned as
112
+ protobuf messages, deserialized into Python objects. There is no Cython, no Rust, and no C extension module to compile —
113
+ just a vendored shared library and pure Python on top.
114
+
115
+ ## License
116
+
117
+ BSD 2-Clause. See [LICENSE](LICENSE) for details.
118
+
119
+ `libpg_query` is licensed under the
120
+ [BSD 3-Clause License](https://github.com/pganalyze/libpg_query/blob/17-latest/LICENSE). Portions of the PostgreSQL
121
+ source code used by `libpg_query` are licensed under the
122
+ [PostgreSQL License](https://www.postgresql.org/about/licence/).
@@ -0,0 +1,81 @@
1
+ # postgast
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/postgast)](https://pypi.org/project/postgast/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/postgast)](https://pypi.org/project/postgast/)
5
+ [![License](https://img.shields.io/pypi/l/postgast)](https://github.com/eddieland/postgast/blob/main/LICENSE)
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/eddieland/postgast/ci.yml?label=CI)](https://github.com/eddieland/postgast/actions/workflows/ci.yml)
7
+ [![Coverage](https://codecov.io/gh/eddieland/postgast/graph/badge.svg)](https://codecov.io/gh/eddieland/postgast)
8
+ [![Docs](https://readthedocs.org/projects/postgast/badge/?version=latest)](https://postgast.readthedocs.io)
9
+ [![Downloads](https://img.shields.io/pypi/dm/postgast)](https://pypi.org/project/postgast/)
10
+
11
+ BSD-licensed Python bindings to [libpg_query](https://github.com/pganalyze/libpg_query), the PostgreSQL parser extracted
12
+ as a standalone C library.
13
+
14
+ Parse, deparse, normalize, fingerprint, split, and scan PostgreSQL SQL statements from Python with a minimal dependency
15
+ footprint — just `protobuf` and the vendored C library.
16
+
17
+ ## Features
18
+
19
+ | Feature | Status | Description |
20
+ | ---------------- | ----------------------------------------- | -------------------------------------------------------------------------- |
21
+ | **Parse** | [Available](openspec/specs/parse/) | SQL text to protobuf AST |
22
+ | **Deparse** | [Available](openspec/specs/deparse/) | AST back to SQL text |
23
+ | **Normalize** | [Available](openspec/specs/normalize/) | Replace constants with parameter placeholders |
24
+ | **Fingerprint** | [Available](openspec/specs/fingerprint/) | Identify structurally equivalent statements |
25
+ | **Split** | [Available](openspec/specs/split/) | Split multi-statement strings (respects strings, comments, dollar-quoting) |
26
+ | **Scan** | [Available](openspec/specs/scan/) | Tokenize SQL with keyword classification |
27
+ | **Tree Walking** | [Available](openspec/specs/tree-walking/) | Walk/visit AST nodes with depth-first traversal and visitor pattern |
28
+ | **AST Helpers** | [Available](openspec/specs/ast-helpers/) | Extract tables, columns, functions; generate DROP from CREATE DDL |
29
+
30
+ Built on `libpg_query` 17-latest (PostgreSQL 17 parser).
31
+
32
+ ## Installation
33
+
34
+ ```bash
35
+ pip install postgast
36
+ ```
37
+
38
+ ## Quick Start
39
+
40
+ ```python
41
+ import postgast
42
+
43
+ # Parse a query into an AST
44
+ tree = postgast.parse("SELECT id, name FROM users WHERE active = true")
45
+
46
+ # Deparse an AST back to SQL
47
+ sql = postgast.deparse(tree)
48
+
49
+ # Normalize a query (replace constants with placeholders)
50
+ normalized = postgast.normalize("SELECT * FROM users WHERE id = 42")
51
+ # => "SELECT * FROM users WHERE id = $1"
52
+
53
+ # Fingerprint a query
54
+ fp = postgast.fingerprint("SELECT * FROM users WHERE id = 42")
55
+
56
+ # Split a multi-statement string
57
+ stmts = postgast.split("SELECT 1; SELECT 2;")
58
+ # => ["SELECT 1", "SELECT 2"]
59
+ ```
60
+
61
+ ## Motivation
62
+
63
+ [pglast](https://github.com/lelit/pglast) is an excellent library that wraps `libpg_query` for Python, but it is
64
+ licensed under GPLv3, which makes it unusable in many commercial and permissively-licensed projects. `postgast` provides
65
+ a BSD-licensed alternative that leans directly on `libpg_query`'s C API via `ctypes`, keeping the implementation minimal
66
+ and the dependency footprint small.
67
+
68
+ ## How It Works
69
+
70
+ `postgast` calls `libpg_query`'s C functions directly through Python's `ctypes` module. Parse results are returned as
71
+ protobuf messages, deserialized into Python objects. There is no Cython, no Rust, and no C extension module to compile —
72
+ just a vendored shared library and pure Python on top.
73
+
74
+ ## License
75
+
76
+ BSD 2-Clause. See [LICENSE](LICENSE) for details.
77
+
78
+ `libpg_query` is licensed under the
79
+ [BSD 3-Clause License](https://github.com/pganalyze/libpg_query/blob/17-latest/LICENSE). Portions of the PostgreSQL
80
+ source code used by `libpg_query` are licensed under the
81
+ [PostgreSQL License](https://www.postgresql.org/about/licence/).
@@ -0,0 +1,75 @@
1
+ """Custom hatchling build hook that compiles libpg_query and bundles the shared library."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import platform
7
+ import subprocess
8
+ from pathlib import Path
9
+ from typing import Any
10
+
11
+ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
12
+
13
+ _LIB_NAMES = {
14
+ "Linux": "libpg_query.so",
15
+ "Darwin": "libpg_query.dylib",
16
+ "Windows": "pg_query.dll",
17
+ }
18
+
19
+
20
+ class CustomBuildHook(BuildHookInterface):
21
+ """Build hook that compiles libpg_query and includes it in the wheel."""
22
+
23
+ PLUGIN_NAME = "custom"
24
+
25
+ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
26
+ """Compile libpg_query and inject the shared library into the wheel.
27
+
28
+ Set ``POSTGAST_SKIP_NATIVE_BUILD=1`` to skip compilation (useful in CI
29
+ where the native library is built in a separate step).
30
+ """
31
+ if os.environ.get("POSTGAST_SKIP_NATIVE_BUILD"):
32
+ self.app.display_warning("POSTGAST_SKIP_NATIVE_BUILD is set — skipping native library build.")
33
+ return
34
+
35
+ root = Path(self.root)
36
+ libpg_query_dir = root / "vendor" / "libpg_query"
37
+
38
+ makefile = libpg_query_dir / "Makefile"
39
+ if not makefile.exists():
40
+ self.app.display_warning(
41
+ "vendor/libpg_query/Makefile not found — skipping native library build. "
42
+ "Run 'git submodule update --init' to fetch the source."
43
+ )
44
+ return
45
+
46
+ system = platform.system()
47
+ lib_name = _LIB_NAMES.get(system)
48
+ if lib_name is None:
49
+ msg = f"Unsupported platform: {system}"
50
+ raise RuntimeError(msg)
51
+
52
+ # Compile the shared library.
53
+ if system == "Windows":
54
+ subprocess.check_call(["nmake", "/F", "Makefile.msvc"], cwd=libpg_query_dir)
55
+ else:
56
+ subprocess.check_call(["make", "build_shared"], cwd=libpg_query_dir)
57
+
58
+ lib_path = libpg_query_dir / lib_name
59
+ if not lib_path.exists():
60
+ msg = f"Expected shared library not found after build: {lib_path}"
61
+ raise RuntimeError(msg)
62
+
63
+ # Include the shared library in the wheel alongside the postgast package.
64
+ build_data["force_include"][str(lib_path)] = f"postgast/{lib_name}"
65
+
66
+ # Mark as platform-specific wheel (not pure Python).
67
+ build_data["infer_tag"] = True
68
+ build_data["pure_python"] = False
69
+
70
+ def clean(self, versions: list[str]) -> None:
71
+ """Remove compiled artifacts from the vendor directory."""
72
+ root = Path(self.root)
73
+ libpg_query_dir = root / "vendor" / "libpg_query"
74
+ if libpg_query_dir.exists():
75
+ subprocess.call(["make", "clean"], cwd=libpg_query_dir)
Binary file