yb_ddl_parser 0.1.0

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 (926) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +177 -0
  3. data/LICENSES/Apache-2.0.txt +4 -0
  4. data/LICENSES/PostgreSQL.txt +24 -0
  5. data/README.md +93 -0
  6. data/THIRD_PARTY_NOTICES.md +47 -0
  7. data/VERSION +1 -0
  8. data/ext/yb_ddl_parser/extconf.rb +41 -0
  9. data/ext/yb_ddl_parser/vendor/compat/postgres/pg_config.h +1021 -0
  10. data/ext/yb_ddl_parser/vendor/compat/postgres/pg_config_ext.h +8 -0
  11. data/ext/yb_ddl_parser/vendor/compat/postgres/pg_config_os.h +8 -0
  12. data/ext/yb_ddl_parser/vendor/compat/postgres/yb/yql/pggate/util/ybc_util.h +53 -0
  13. data/ext/yb_ddl_parser/vendor/compat/postgres/yb/yql/pggate/ybc_dist_trace.h +12 -0
  14. data/ext/yb_ddl_parser/vendor/compat/postgres/yb/yql/pggate/ybc_gflags.h +17 -0
  15. data/ext/yb_ddl_parser/vendor/compat/postgres/yb/yql/pggate/ybc_pg_typedefs.h +184 -0
  16. data/ext/yb_ddl_parser/vendor/compat/postgres/yb/yql/pggate/ybc_pggate.h +6 -0
  17. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/nodes/list.c +1676 -0
  18. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/nodes/makefuncs.c +824 -0
  19. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/nodes/nodes.c +31 -0
  20. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/nodes/outfuncs.c +4948 -0
  21. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/nodes/value.c +83 -0
  22. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/parser/gram.c +52142 -0
  23. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/parser/gram.h +1135 -0
  24. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/parser/parser.c +501 -0
  25. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/parser/scan.c +9319 -0
  26. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/backend/parser/scansup.c +127 -0
  27. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/common/keywords.c +48 -0
  28. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/common/kwlist_d.h +1128 -0
  29. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/common/kwlookup.c +85 -0
  30. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/amapi.h +399 -0
  31. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/amvalidate.h +40 -0
  32. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/attmap.h +53 -0
  33. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/attnum.h +64 -0
  34. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin.h +55 -0
  35. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_internal.h +115 -0
  36. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_page.h +96 -0
  37. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_pageops.h +38 -0
  38. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_revmap.h +41 -0
  39. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_tuple.h +112 -0
  40. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/brin_xlog.h +151 -0
  41. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/bufmask.h +32 -0
  42. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/clog.h +63 -0
  43. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/commit_ts.h +74 -0
  44. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/detoast.h +82 -0
  45. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/genam.h +267 -0
  46. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/generic_xlog.h +45 -0
  47. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gin.h +78 -0
  48. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gin_private.h +500 -0
  49. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/ginblock.h +346 -0
  50. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/ginxlog.h +216 -0
  51. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gist.h +248 -0
  52. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gist_private.h +571 -0
  53. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gistscan.h +24 -0
  54. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/gistxlog.h +114 -0
  55. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/hash.h +485 -0
  56. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/hash_xlog.h +267 -0
  57. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/heapam.h +242 -0
  58. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/heapam_xlog.h +420 -0
  59. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/heaptoast.h +151 -0
  60. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/hio.h +43 -0
  61. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/htup.h +90 -0
  62. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/htup_details.h +812 -0
  63. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/itup.h +181 -0
  64. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/multixact.h +164 -0
  65. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/nbtree.h +1293 -0
  66. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/nbtxlog.h +351 -0
  67. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/parallel.h +82 -0
  68. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/printsimple.h +23 -0
  69. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/printtup.h +35 -0
  70. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/relation.h +28 -0
  71. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/reloptions.h +275 -0
  72. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/relscan.h +242 -0
  73. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/rewriteheap.h +57 -0
  74. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/rmgr.h +62 -0
  75. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/rmgrlist.h +49 -0
  76. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/sdir.h +58 -0
  77. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/session.h +44 -0
  78. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/skey.h +229 -0
  79. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/slru.h +174 -0
  80. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/spgist.h +229 -0
  81. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/spgist_private.h +549 -0
  82. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/spgxlog.h +257 -0
  83. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/stratnum.h +85 -0
  84. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/subtrans.h +29 -0
  85. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/syncscan.h +25 -0
  86. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/sysattr.h +45 -0
  87. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/table.h +28 -0
  88. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tableam.h +2127 -0
  89. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/timeline.h +44 -0
  90. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/toast_compression.h +73 -0
  91. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/toast_helper.h +116 -0
  92. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/toast_internals.h +63 -0
  93. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/transam.h +403 -0
  94. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tsmapi.h +82 -0
  95. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tupconvert.h +54 -0
  96. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tupdesc.h +154 -0
  97. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tupdesc_details.h +28 -0
  98. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/tupmacs.h +247 -0
  99. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/twophase.h +65 -0
  100. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/twophase_rmgr.h +40 -0
  101. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/valid.h +69 -0
  102. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/visibilitymap.h +42 -0
  103. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/visibilitymapdefs.h +25 -0
  104. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xact.h +586 -0
  105. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlog.h +305 -0
  106. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlog_internal.h +366 -0
  107. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogarchive.h +35 -0
  108. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogdefs.h +101 -0
  109. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xloginsert.h +66 -0
  110. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogprefetcher.h +55 -0
  111. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogreader.h +450 -0
  112. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogrecord.h +236 -0
  113. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogrecovery.h +157 -0
  114. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogstats.h +43 -0
  115. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/xlogutils.h +118 -0
  116. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/yb_pg_inherits_scan.h +36 -0
  117. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/yb_scan.h +421 -0
  118. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/yb_sys_scan_base.h +41 -0
  119. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/ybgin.h +75 -0
  120. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/access/ybgin_private.h +51 -0
  121. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/backup/backup_manifest.h +54 -0
  122. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/backup/basebackup.h +39 -0
  123. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/backup/basebackup_sink.h +301 -0
  124. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/backup/basebackup_target.h +66 -0
  125. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/bootstrap/bootstrap.h +62 -0
  126. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/bootstrap/yb_bootstrap.h +44 -0
  127. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/c.h +1424 -0
  128. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/binary_upgrade.h +42 -0
  129. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/catalog.h +70 -0
  130. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/catversion.h +59 -0
  131. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/dependency.h +296 -0
  132. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/genbki.h +143 -0
  133. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/heap.h +165 -0
  134. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/index.h +268 -0
  135. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/indexing.h +57 -0
  136. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/namespace.h +190 -0
  137. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/objectaccess.h +265 -0
  138. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/objectaddress.h +93 -0
  139. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/partition.h +34 -0
  140. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_aggregate.h +180 -0
  141. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_aggregate_d.h +78 -0
  142. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_am.h +63 -0
  143. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_am_d.h +49 -0
  144. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_amop.h +102 -0
  145. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_amop_d.h +44 -0
  146. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_amproc.h +73 -0
  147. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_amproc_d.h +35 -0
  148. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_attrdef.h +70 -0
  149. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_attrdef_d.h +33 -0
  150. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_attribute.h +221 -0
  151. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_attribute_d.h +62 -0
  152. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_auth_members.h +48 -0
  153. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_auth_members_d.h +34 -0
  154. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_authid.h +63 -0
  155. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_authid_d.h +60 -0
  156. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_cast.h +102 -0
  157. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_cast_d.h +64 -0
  158. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_class.h +240 -0
  159. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_class_d.h +142 -0
  160. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_collation.h +98 -0
  161. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_collation_d.h +62 -0
  162. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_constraint.h +276 -0
  163. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_constraint_d.h +73 -0
  164. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_control.h +250 -0
  165. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_conversion.h +75 -0
  166. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_conversion_d.h +38 -0
  167. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_database.h +121 -0
  168. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_database_d.h +51 -0
  169. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_db_role_setting.h +61 -0
  170. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_db_role_setting_d.h +33 -0
  171. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_default_acl.h +73 -0
  172. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_default_acl_d.h +47 -0
  173. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_depend.h +77 -0
  174. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_depend_d.h +36 -0
  175. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_description.h +73 -0
  176. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_description_d.h +32 -0
  177. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_enum.h +66 -0
  178. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_enum_d.h +34 -0
  179. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_event_trigger.h +57 -0
  180. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_event_trigger_d.h +36 -0
  181. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_extension.h +59 -0
  182. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_extension_d.h +37 -0
  183. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_data_wrapper.h +58 -0
  184. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_data_wrapper_d.h +36 -0
  185. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_server.h +55 -0
  186. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_server_d.h +37 -0
  187. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_table.h +49 -0
  188. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_foreign_table_d.h +31 -0
  189. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_index.h +93 -0
  190. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_index_d.h +62 -0
  191. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_inherits.h +66 -0
  192. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_inherits_d.h +33 -0
  193. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_init_privs.h +83 -0
  194. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_init_privs_d.h +33 -0
  195. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_language.h +72 -0
  196. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_language_d.h +41 -0
  197. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_largeobject.h +53 -0
  198. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_largeobject_d.h +31 -0
  199. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_largeobject_metadata.h +51 -0
  200. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_largeobject_metadata_d.h +31 -0
  201. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_namespace.h +64 -0
  202. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_namespace_d.h +36 -0
  203. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_opclass.h +88 -0
  204. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_opclass_d.h +65 -0
  205. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_operator.h +107 -0
  206. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_operator_d.h +142 -0
  207. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_opfamily.h +63 -0
  208. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_opfamily_d.h +59 -0
  209. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_parameter_acl.h +60 -0
  210. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_parameter_acl_d.h +34 -0
  211. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_partitioned_table.h +74 -0
  212. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_partitioned_table_d.h +36 -0
  213. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_policy.h +58 -0
  214. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_policy_d.h +37 -0
  215. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_proc.h +220 -0
  216. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_proc_d.h +101 -0
  217. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication.h +168 -0
  218. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication_d.h +38 -0
  219. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication_namespace.h +47 -0
  220. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication_namespace_d.h +32 -0
  221. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication_rel.h +54 -0
  222. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_publication_rel_d.h +35 -0
  223. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_range.h +72 -0
  224. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_range_d.h +36 -0
  225. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_replication_origin.h +62 -0
  226. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_replication_origin_d.h +33 -0
  227. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_rewrite.h +59 -0
  228. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_rewrite_d.h +37 -0
  229. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_seclabel.h +45 -0
  230. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_seclabel_d.h +33 -0
  231. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_sequence.h +44 -0
  232. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_sequence_d.h +36 -0
  233. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shdepend.h +78 -0
  234. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shdepend_d.h +36 -0
  235. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shdescription.h +65 -0
  236. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shdescription_d.h +33 -0
  237. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shseclabel.h +46 -0
  238. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_shseclabel_d.h +35 -0
  239. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic.h +282 -0
  240. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic_d.h +195 -0
  241. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic_ext.h +88 -0
  242. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic_ext_d.h +45 -0
  243. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic_ext_data.h +60 -0
  244. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_statistic_ext_data_d.h +34 -0
  245. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_subscription.h +131 -0
  246. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_subscription_d.h +46 -0
  247. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_subscription_rel.h +94 -0
  248. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_subscription_rel_d.h +51 -0
  249. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_tablespace.h +55 -0
  250. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_tablespace_d.h +38 -0
  251. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_transform.h +48 -0
  252. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_transform_d.h +34 -0
  253. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_trigger.h +153 -0
  254. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_trigger_d.h +109 -0
  255. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_config.h +53 -0
  256. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_config_d.h +34 -0
  257. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_config_map.h +49 -0
  258. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_config_map_d.h +32 -0
  259. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_dict.h +59 -0
  260. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_dict_d.h +35 -0
  261. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_parser.h +60 -0
  262. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_parser_d.h +37 -0
  263. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_template.h +51 -0
  264. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_ts_template_d.h +34 -0
  265. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_type.h +411 -0
  266. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_type_d.h +324 -0
  267. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_user_mapping.h +55 -0
  268. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_user_mapping_d.h +33 -0
  269. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_catalog_version.h +53 -0
  270. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_catalog_version_d.h +32 -0
  271. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_invalidation_messages.h +55 -0
  272. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_invalidation_messages_d.h +33 -0
  273. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_logical_client_version.h +46 -0
  274. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_logical_client_version_d.h +31 -0
  275. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_migration.h +58 -0
  276. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_migration_d.h +32 -0
  277. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_profile.h +47 -0
  278. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_profile_d.h +34 -0
  279. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_role_profile.h +58 -0
  280. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_role_profile_d.h +35 -0
  281. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_tablegroup.h +50 -0
  282. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/pg_yb_tablegroup_d.h +35 -0
  283. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/schemapg.h +276 -0
  284. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/storage.h +50 -0
  285. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/storage_xlog.h +59 -0
  286. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/system_fk_info.h +253 -0
  287. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/toasting.h +30 -0
  288. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/yb_catalog_version.h +65 -0
  289. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/yb_logical_client_version.h +40 -0
  290. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/yb_oid_assignment.h +39 -0
  291. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/catalog/yb_type.h +68 -0
  292. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/alter.h +35 -0
  293. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/async.h +62 -0
  294. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/cluster.h +55 -0
  295. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/collationcmds.h +25 -0
  296. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/comment.h +45 -0
  297. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/conversioncmds.h +23 -0
  298. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/copy.h +120 -0
  299. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/copyfrom_internal.h +176 -0
  300. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/createas.h +34 -0
  301. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/dbcommands.h +36 -0
  302. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/dbcommands_xlog.h +60 -0
  303. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/defrem.h +169 -0
  304. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/discard.h +20 -0
  305. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/event_trigger.h +96 -0
  306. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/explain.h +159 -0
  307. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/extension.h +55 -0
  308. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/lockcmds.h +24 -0
  309. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/matview.h +34 -0
  310. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/policy.h +41 -0
  311. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/portalcmds.h +34 -0
  312. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/prepare.h +62 -0
  313. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/proclang.h +23 -0
  314. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/progress.h +173 -0
  315. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/publicationcmds.h +39 -0
  316. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/schemacmds.h +29 -0
  317. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/seclabel.h +34 -0
  318. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/sequence.h +70 -0
  319. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/subscriptioncmds.h +29 -0
  320. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/tablecmds.h +108 -0
  321. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/tablespace.h +82 -0
  322. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/trigger.h +323 -0
  323. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/typecmds.h +61 -0
  324. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/user.h +37 -0
  325. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/vacuum.h +340 -0
  326. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/variable.h +50 -0
  327. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/view.h +25 -0
  328. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/yb_cmds.h +168 -0
  329. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/yb_profile.h +51 -0
  330. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/commands/yb_tablegroup.h +45 -0
  331. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/archive.h +21 -0
  332. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/base64.h +19 -0
  333. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/checksum_helper.h +72 -0
  334. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/compression.h +45 -0
  335. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/config_info.h +21 -0
  336. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/connect.h +28 -0
  337. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/controldata_utils.h +19 -0
  338. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/cryptohash.h +39 -0
  339. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/fe_memutils.h +73 -0
  340. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/file_perm.h +56 -0
  341. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/file_utils.h +40 -0
  342. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/hashfn.h +104 -0
  343. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/hmac.h +30 -0
  344. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/int.h +441 -0
  345. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/int128.h +276 -0
  346. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/ip.h +31 -0
  347. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/jsonapi.h +169 -0
  348. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/keywords.h +29 -0
  349. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/kwlookup.h +44 -0
  350. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/link-canary.h +17 -0
  351. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/logging.h +158 -0
  352. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/md5.h +37 -0
  353. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/openssl.h +49 -0
  354. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/pg_lzcompress.h +93 -0
  355. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/pg_prng.h +60 -0
  356. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/pg_yb_common.h +160 -0
  357. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/pg_yb_param_status_flags.h +33 -0
  358. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/relpath.h +90 -0
  359. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/restricted_token.h +24 -0
  360. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/saslprep.h +30 -0
  361. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/scram-common.h +62 -0
  362. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/sha1.h +21 -0
  363. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/sha2.h +32 -0
  364. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/shortest_dec.h +63 -0
  365. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/string.h +42 -0
  366. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_combining_table.h +308 -0
  367. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_east_asian_fw_table.h +125 -0
  368. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_norm.h +39 -0
  369. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_norm_hashfunc.h +2956 -0
  370. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_norm_table.h +9042 -0
  371. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/unicode_normprops_table.h +7849 -0
  372. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/common/username.h +15 -0
  373. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/datatype/timestamp.h +236 -0
  374. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execAsync.h +25 -0
  375. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execExpr.h +792 -0
  376. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execParallel.h +51 -0
  377. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execPartition.h +134 -0
  378. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execdebug.h +130 -0
  379. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/execdesc.h +77 -0
  380. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/executor.h +718 -0
  381. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/functions.h +61 -0
  382. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/hashjoin.h +363 -0
  383. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/instrument.h +154 -0
  384. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeAgg.h +333 -0
  385. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeAppend.h +30 -0
  386. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeBitmapAnd.h +24 -0
  387. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeBitmapHeapscan.h +32 -0
  388. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeBitmapIndexscan.h +24 -0
  389. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeBitmapOr.h +24 -0
  390. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeCtescan.h +23 -0
  391. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeCustom.h +42 -0
  392. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeForeignscan.h +44 -0
  393. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeFunctionscan.h +23 -0
  394. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeGather.h +24 -0
  395. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeGatherMerge.h +26 -0
  396. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeGroup.h +23 -0
  397. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeHash.h +79 -0
  398. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeHashjoin.h +34 -0
  399. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeIncrementalSort.h +28 -0
  400. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeIndexonlyscan.h +36 -0
  401. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeIndexscan.h +47 -0
  402. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeLimit.h +23 -0
  403. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeLockRows.h +26 -0
  404. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeMaterial.h +25 -0
  405. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeMemoize.h +32 -0
  406. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeMergeAppend.h +23 -0
  407. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeMergejoin.h +23 -0
  408. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeModifyTable.h +33 -0
  409. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeNamedtuplestorescan.h +23 -0
  410. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeNestloop.h +23 -0
  411. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeProjectSet.h +23 -0
  412. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeRecursiveunion.h +23 -0
  413. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeResult.h +25 -0
  414. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSamplescan.h +23 -0
  415. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSeqscan.h +31 -0
  416. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSetOp.h +23 -0
  417. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSort.h +32 -0
  418. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSubplan.h +29 -0
  419. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeSubqueryscan.h +23 -0
  420. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeTableFuncscan.h +23 -0
  421. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeTidrangescan.h +24 -0
  422. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeTidscan.h +23 -0
  423. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeUnique.h +23 -0
  424. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeValuesscan.h +23 -0
  425. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeWindowAgg.h +23 -0
  426. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeWorktablescan.h +23 -0
  427. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeYbBatchedNestloop.h +33 -0
  428. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeYbBitmapIndexscan.h +24 -0
  429. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeYbBitmapTablescan.h +22 -0
  430. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/nodeYbSeqscan.h +45 -0
  431. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/spi.h +214 -0
  432. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/spi_priv.h +105 -0
  433. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/tablefunc.h +67 -0
  434. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/tqueue.h +32 -0
  435. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/tstoreReceiver.h +31 -0
  436. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/tuptable.h +515 -0
  437. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/ybExpr.h +64 -0
  438. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/ybFunction.h +41 -0
  439. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/ybModifyTable.h +281 -0
  440. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/executor/ybOptimizeModifyTable.h +40 -0
  441. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/archive.h +21 -0
  442. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/cancel.h +32 -0
  443. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/conditional.h +102 -0
  444. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/connect_utils.h +48 -0
  445. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/mbprint.h +29 -0
  446. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/option_utils.h +26 -0
  447. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/parallel_slot.h +77 -0
  448. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/print.h +220 -0
  449. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/psqlscan.h +90 -0
  450. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/psqlscan_int.h +157 -0
  451. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/query_utils.h +26 -0
  452. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/recovery_gen.h +28 -0
  453. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/simple_list.h +70 -0
  454. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fe_utils/string_utils.h +69 -0
  455. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/fmgr.h +788 -0
  456. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/foreign/fdwapi.h +294 -0
  457. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/foreign/foreign.h +84 -0
  458. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/funcapi.h +409 -0
  459. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/getaddrinfo.h +162 -0
  460. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/getopt_long.h +36 -0
  461. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/jit/SectionMemoryManager.h +226 -0
  462. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/jit/jit.h +105 -0
  463. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/jit/llvmjit.h +169 -0
  464. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/jit/llvmjit_backport.h +25 -0
  465. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/jit/llvmjit_emit.h +336 -0
  466. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/binaryheap.h +54 -0
  467. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/bipartite_match.h +46 -0
  468. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/bloomfilter.h +27 -0
  469. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/dshash.h +112 -0
  470. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/hyperloglog.h +68 -0
  471. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/ilist.h +746 -0
  472. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/integerset.h +24 -0
  473. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/knapsack.h +16 -0
  474. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/pairingheap.h +102 -0
  475. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/qunique.h +67 -0
  476. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/rbtree.h +79 -0
  477. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/simplehash.h +1187 -0
  478. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/sort_template.h +441 -0
  479. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/lib/stringinfo.h +161 -0
  480. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/auth.h +31 -0
  481. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/be-fsstubs.h +32 -0
  482. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/be-gssapi-common.h +30 -0
  483. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/crypt.h +53 -0
  484. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/hba.h +191 -0
  485. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/ifaddr.h +30 -0
  486. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/libpq-be.h +365 -0
  487. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/libpq-fs.h +24 -0
  488. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/libpq.h +147 -0
  489. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/pqcomm.h +194 -0
  490. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/pqformat.h +210 -0
  491. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/pqmq.h +24 -0
  492. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/pqsignal.h +42 -0
  493. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/sasl.h +136 -0
  494. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/scram.h +30 -0
  495. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/libpq/yb_pqcomm_extensions.h +24 -0
  496. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/mb/pg_wchar.h +703 -0
  497. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/mb/stringinfo_mb.h +24 -0
  498. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/miscadmin.h +558 -0
  499. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/bitmapset.h +122 -0
  500. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/execnodes.h +3130 -0
  501. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/extensible.h +162 -0
  502. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/lockoptions.h +61 -0
  503. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/makefuncs.h +109 -0
  504. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/memnodes.h +113 -0
  505. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/nodeFuncs.h +165 -0
  506. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/nodes.h +897 -0
  507. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/params.h +170 -0
  508. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/parsenodes.h +3955 -0
  509. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/pathnodes.h +2984 -0
  510. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/pg_list.h +621 -0
  511. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/plannodes.h +1681 -0
  512. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/primnodes.h +1608 -0
  513. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/print.h +34 -0
  514. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/readfuncs.h +40 -0
  515. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/replnodes.h +111 -0
  516. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/subscripting.h +167 -0
  517. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/supportnodes.h +302 -0
  518. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/tidbitmap.h +84 -0
  519. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/value.h +80 -0
  520. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/ybbitmatrix.h +54 -0
  521. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/nodes/ybtidbitmap.h +89 -0
  522. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/appendinfo.h +50 -0
  523. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/clauses.h +62 -0
  524. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/cost.h +309 -0
  525. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo.h +90 -0
  526. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_copy.h +30 -0
  527. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_gene.h +45 -0
  528. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_misc.h +34 -0
  529. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_mutation.h +30 -0
  530. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_pool.h +40 -0
  531. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_random.h +40 -0
  532. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_recombination.h +89 -0
  533. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/geqo_selection.h +33 -0
  534. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/inherit.h +29 -0
  535. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/joininfo.h +30 -0
  536. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/optimizer.h +206 -0
  537. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/orclauses.h +21 -0
  538. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/paramassign.h +34 -0
  539. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/pathnode.h +359 -0
  540. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/paths.h +292 -0
  541. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/placeholder.h +32 -0
  542. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/plancat.h +82 -0
  543. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/planmain.h +136 -0
  544. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/planner.h +70 -0
  545. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/prep.h +57 -0
  546. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/restrictinfo.h +62 -0
  547. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/subselect.h +40 -0
  548. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/tlist.h +56 -0
  549. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/yb_merge_scan.h +52 -0
  550. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/optimizer/ybplan.h +59 -0
  551. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/analyze.h +64 -0
  552. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/gramparse.h +75 -0
  553. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/kwlist.h +502 -0
  554. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_agg.h +63 -0
  555. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_clause.h +54 -0
  556. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_coerce.h +103 -0
  557. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_collate.h +27 -0
  558. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_cte.h +24 -0
  559. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_enr.h +22 -0
  560. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_expr.h +25 -0
  561. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_func.h +74 -0
  562. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_merge.h +21 -0
  563. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_node.h +339 -0
  564. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_oper.h +65 -0
  565. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_param.h +25 -0
  566. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_relation.h +124 -0
  567. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_target.h +58 -0
  568. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_type.h +60 -0
  569. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parse_utilcmd.h +57 -0
  570. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parser.h +68 -0
  571. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/parsetree.h +61 -0
  572. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/scanner.h +150 -0
  573. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/parser/scansup.h +27 -0
  574. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/partitioning/partbounds.h +146 -0
  575. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/partitioning/partdefs.h +26 -0
  576. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/partitioning/partdesc.h +53 -0
  577. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/partitioning/partprune.h +85 -0
  578. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pg_config_manual.h +410 -0
  579. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pg_getopt.h +56 -0
  580. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pg_trace.h +17 -0
  581. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pg_yb_utils.h +1645 -0
  582. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pgstat.h +900 -0
  583. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pgtar.h +45 -0
  584. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/pgtime.h +94 -0
  585. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/aix.h +14 -0
  586. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/arch-arm.h +32 -0
  587. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/arch-hppa.h +17 -0
  588. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/arch-ia64.h +29 -0
  589. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/arch-ppc.h +254 -0
  590. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/arch-x86.h +252 -0
  591. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/fallback.h +170 -0
  592. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/generic-acc.h +106 -0
  593. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/generic-gcc.h +286 -0
  594. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/generic-msvc.h +101 -0
  595. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/generic-sunpro.h +106 -0
  596. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics/generic.h +401 -0
  597. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/atomics.h +524 -0
  598. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/cygwin.h +23 -0
  599. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/darwin.h +8 -0
  600. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/freebsd.h +10 -0
  601. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/hpux.h +3 -0
  602. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/linux.h +22 -0
  603. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/netbsd.h +1 -0
  604. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/openbsd.h +1 -0
  605. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/pg_bitutils.h +302 -0
  606. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/pg_bswap.h +161 -0
  607. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/pg_crc32c.h +101 -0
  608. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/pg_iovec.h +54 -0
  609. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/pg_pthread.h +41 -0
  610. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/solaris.h +26 -0
  611. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/arpa/inet.h +3 -0
  612. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/dlfcn.h +1 -0
  613. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/grp.h +1 -0
  614. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/netdb.h +1 -0
  615. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/netinet/in.h +3 -0
  616. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/pwd.h +3 -0
  617. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/sys/socket.h +33 -0
  618. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32/sys/wait.h +3 -0
  619. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32.h +81 -0
  620. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/dirent.h +34 -0
  621. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/sys/file.h +1 -0
  622. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/sys/param.h +1 -0
  623. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/sys/time.h +1 -0
  624. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/unistd.h +9 -0
  625. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_msvc/utime.h +3 -0
  626. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32_port.h +572 -0
  627. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port/win32ntdll.h +32 -0
  628. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/port.h +589 -0
  629. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/portability/instr_time.h +256 -0
  630. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/portability/mem.h +48 -0
  631. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postgres.h +819 -0
  632. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postgres_ext.h +74 -0
  633. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postgres_fe.h +29 -0
  634. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/autovacuum.h +83 -0
  635. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/auxprocess.h +20 -0
  636. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/bgworker.h +176 -0
  637. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/bgworker_internals.h +64 -0
  638. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/bgwriter.h +45 -0
  639. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/fork_process.h +17 -0
  640. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/interrupt.h +32 -0
  641. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/pgarch.h +73 -0
  642. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/postmaster.h +86 -0
  643. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/startup.h +41 -0
  644. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/syslogger.h +103 -0
  645. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/postmaster/walwriter.h +21 -0
  646. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/regex/regcustom.h +104 -0
  647. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/regex/regerrs.h +87 -0
  648. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/regex/regex.h +269 -0
  649. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/regex/regexport.h +61 -0
  650. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/regex/regguts.h +552 -0
  651. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/decode.h +34 -0
  652. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/logical.h +178 -0
  653. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/logicallauncher.h +29 -0
  654. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/logicalproto.h +256 -0
  655. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/logicalrelation.h +50 -0
  656. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/logicalworker.h +19 -0
  657. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/message.h +41 -0
  658. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/origin.h +73 -0
  659. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/output_plugin.h +271 -0
  660. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/pgoutput.h +34 -0
  661. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/reorderbuffer.h +706 -0
  662. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/slot.h +290 -0
  663. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/snapbuild.h +101 -0
  664. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/syncrep.h +118 -0
  665. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/walreceiver.h +472 -0
  666. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/walsender.h +92 -0
  667. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/walsender_private.h +131 -0
  668. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/worker_internal.h +112 -0
  669. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/yb_decode.h +33 -0
  670. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/yb_virtual_wal_client.h +46 -0
  671. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/replication/yb_virtual_wal_client_typedefs.h +31 -0
  672. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/prs2lock.h +46 -0
  673. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteDefine.h +44 -0
  674. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteHandler.h +35 -0
  675. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteManip.h +87 -0
  676. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteRemove.h +21 -0
  677. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteSearchCycle.h +21 -0
  678. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rewriteSupport.h +26 -0
  679. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rewrite/rowsecurity.h +49 -0
  680. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/rusagestub.h +34 -0
  681. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/header.h +67 -0
  682. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/api.h +32 -0
  683. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/header.h +61 -0
  684. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_basque.h +15 -0
  685. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_catalan.h +15 -0
  686. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_danish.h +15 -0
  687. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_dutch.h +15 -0
  688. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_english.h +15 -0
  689. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_finnish.h +15 -0
  690. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_french.h +15 -0
  691. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_german.h +15 -0
  692. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_indonesian.h +15 -0
  693. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_irish.h +15 -0
  694. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_italian.h +15 -0
  695. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_norwegian.h +15 -0
  696. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_porter.h +15 -0
  697. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_portuguese.h +15 -0
  698. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_spanish.h +15 -0
  699. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_1_swedish.h +15 -0
  700. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_2_hungarian.h +15 -0
  701. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_ISO_8859_2_romanian.h +15 -0
  702. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_KOI8_R_russian.h +15 -0
  703. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_arabic.h +15 -0
  704. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_armenian.h +15 -0
  705. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_basque.h +15 -0
  706. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_catalan.h +15 -0
  707. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_danish.h +15 -0
  708. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_dutch.h +15 -0
  709. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_english.h +15 -0
  710. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_finnish.h +15 -0
  711. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_french.h +15 -0
  712. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_german.h +15 -0
  713. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_greek.h +15 -0
  714. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_hindi.h +15 -0
  715. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_hungarian.h +15 -0
  716. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_indonesian.h +15 -0
  717. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_irish.h +15 -0
  718. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_italian.h +15 -0
  719. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_lithuanian.h +15 -0
  720. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_nepali.h +15 -0
  721. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_norwegian.h +15 -0
  722. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_porter.h +15 -0
  723. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_portuguese.h +15 -0
  724. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_romanian.h +15 -0
  725. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_russian.h +15 -0
  726. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_serbian.h +15 -0
  727. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_spanish.h +15 -0
  728. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_swedish.h +15 -0
  729. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_tamil.h +15 -0
  730. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_turkish.h +15 -0
  731. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/snowball/libstemmer/stem_UTF_8_yiddish.h +15 -0
  732. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/statistics/extended_stats_internal.h +130 -0
  733. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/statistics/stat_utils.h +41 -0
  734. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/statistics/statistics.h +130 -0
  735. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/backendid.h +37 -0
  736. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/barrier.h +46 -0
  737. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/block.h +115 -0
  738. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/buf.h +46 -0
  739. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/buf_internals.h +345 -0
  740. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/buffile.h +57 -0
  741. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/bufmgr.h +297 -0
  742. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/bufpage.h +457 -0
  743. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/checksum.h +24 -0
  744. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/checksum_impl.h +215 -0
  745. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/condition_variable.h +86 -0
  746. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/copydir.h +19 -0
  747. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/dsm.h +64 -0
  748. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/dsm_impl.h +76 -0
  749. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/fd.h +198 -0
  750. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/fileset.h +40 -0
  751. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/freespace.h +39 -0
  752. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/fsm_internals.h +72 -0
  753. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/indexfsm.h +26 -0
  754. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/ipc.h +87 -0
  755. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/item.h +19 -0
  756. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/itemid.h +184 -0
  757. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/itemptr.h +208 -0
  758. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/large_object.h +100 -0
  759. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/latch.h +189 -0
  760. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/lmgr.h +119 -0
  761. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/lock.h +621 -0
  762. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/lockdefs.h +61 -0
  763. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/lwlock.h +220 -0
  764. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/lwlocknames.h +50 -0
  765. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/md.h +52 -0
  766. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/off.h +57 -0
  767. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/pg_sema.h +61 -0
  768. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/pg_shmem.h +95 -0
  769. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/pmsignal.h +105 -0
  770. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/predicate.h +87 -0
  771. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/predicate_internals.h +494 -0
  772. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/proc.h +530 -0
  773. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/procarray.h +101 -0
  774. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/proclist.h +219 -0
  775. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/proclist_types.h +51 -0
  776. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/procsignal.h +81 -0
  777. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/reinit.h +28 -0
  778. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/relfilenode.h +99 -0
  779. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/s_lock.h +1110 -0
  780. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/sharedfileset.h +37 -0
  781. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/shm_mq.h +86 -0
  782. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/shm_toc.h +58 -0
  783. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/shmem.h +81 -0
  784. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/sinval.h +219 -0
  785. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/sinvaladt.h +48 -0
  786. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/smgr.h +114 -0
  787. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/spin.h +96 -0
  788. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/standby.h +106 -0
  789. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/standbydefs.h +74 -0
  790. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/storage/sync.h +66 -0
  791. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/cmdtag.h +58 -0
  792. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/cmdtaglist.h +225 -0
  793. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/deparse_utility.h +108 -0
  794. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/dest.h +149 -0
  795. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/fastpath.h +20 -0
  796. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/pquery.h +60 -0
  797. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/tcopprot.h +108 -0
  798. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tcop/utility.h +112 -0
  799. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/dicts/regis.h +49 -0
  800. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/dicts/spell.h +247 -0
  801. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/ts_cache.h +98 -0
  802. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/ts_locale.h +63 -0
  803. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/ts_public.h +159 -0
  804. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/ts_type.h +242 -0
  805. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/tsearch/ts_utils.h +266 -0
  806. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/acl.h +340 -0
  807. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/aclchk_internal.h +45 -0
  808. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/array.h +472 -0
  809. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/arrayaccess.h +118 -0
  810. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/ascii.h +68 -0
  811. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/attoptcache.h +28 -0
  812. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/backend_progress.h +44 -0
  813. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/backend_status.h +379 -0
  814. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/builtins.h +130 -0
  815. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/bytea.h +28 -0
  816. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/cash.h +25 -0
  817. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/catcache.h +268 -0
  818. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/combocid.h +28 -0
  819. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/date.h +90 -0
  820. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/datetime.h +344 -0
  821. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/datum.h +76 -0
  822. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/dsa.h +123 -0
  823. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/dynahash.h +20 -0
  824. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/elog.h +517 -0
  825. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/errcodes.h +363 -0
  826. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/evtcache.h +37 -0
  827. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/expandeddatum.h +159 -0
  828. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/expandedrecord.h +231 -0
  829. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/float.h +356 -0
  830. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/fmgroids.h +3337 -0
  831. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/fmgrprotos.h +2900 -0
  832. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/fmgrtab.h +53 -0
  833. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/formatting.h +35 -0
  834. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/freepage.h +99 -0
  835. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/geo_decls.h +221 -0
  836. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/guc.h +517 -0
  837. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/guc_tables.h +312 -0
  838. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/help_config.h +17 -0
  839. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/hsearch.h +153 -0
  840. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/index_selfuncs.h +74 -0
  841. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/inet.h +149 -0
  842. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/inval.h +74 -0
  843. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/json.h +24 -0
  844. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/jsonb.h +415 -0
  845. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/jsonfuncs.h +66 -0
  846. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/jsonpath.h +251 -0
  847. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/logtape.h +77 -0
  848. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/lsyscache.h +211 -0
  849. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/memdebug.h +82 -0
  850. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/memutils.h +306 -0
  851. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/multirangetypes.h +135 -0
  852. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/numeric.h +99 -0
  853. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/old_snapshot.h +75 -0
  854. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/palloc.h +222 -0
  855. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/partcache.h +105 -0
  856. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pg_crc.h +107 -0
  857. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pg_locale.h +129 -0
  858. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pg_lsn.h +29 -0
  859. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pg_rusage.h +37 -0
  860. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pgstat_internal.h +803 -0
  861. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/pidfile.h +56 -0
  862. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/plancache.h +259 -0
  863. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/portal.h +252 -0
  864. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/ps_status.h +25 -0
  865. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/queryenvironment.h +74 -0
  866. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/queryjumble.h +88 -0
  867. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/rangetypes.h +151 -0
  868. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/regproc.h +39 -0
  869. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/rel.h +760 -0
  870. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/relcache.h +180 -0
  871. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/relfilenodemap.h +18 -0
  872. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/relmapper.h +72 -0
  873. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/relptr.h +93 -0
  874. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/reltrigger.h +81 -0
  875. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/resowner.h +86 -0
  876. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/resowner_private.h +123 -0
  877. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/rls.h +50 -0
  878. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/ruleutils.h +59 -0
  879. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/sampling.h +64 -0
  880. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/selfuncs.h +250 -0
  881. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/sharedtuplestore.h +61 -0
  882. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/snapmgr.h +189 -0
  883. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/snapshot.h +231 -0
  884. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/sortsupport.h +391 -0
  885. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/spccache.h +24 -0
  886. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/syscache.h +319 -0
  887. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/timeout.h +95 -0
  888. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/timestamp.h +120 -0
  889. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/tuplesort.h +291 -0
  890. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/tuplestore.h +91 -0
  891. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/typcache.h +209 -0
  892. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/tzparser.h +39 -0
  893. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/uuid.h +31 -0
  894. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/varbit.h +74 -0
  895. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/varlena.h +41 -0
  896. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/wait_event.h +351 -0
  897. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/xid8.h +22 -0
  898. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/xml.h +84 -0
  899. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_inheritscache.h +49 -0
  900. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_jumblefuncs.h +35 -0
  901. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_like_support.h +37 -0
  902. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_queryjumble.h +73 -0
  903. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_rowtypes.h +24 -0
  904. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/utils/yb_tuplecache.h +66 -0
  905. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/windowapi.h +64 -0
  906. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_ash.h +92 -0
  907. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_file_utils.h +38 -0
  908. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_overflow_utils.h +110 -0
  909. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_qpm.h +45 -0
  910. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_query_diagnostics.h +237 -0
  911. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_tcmalloc_utils.h +41 -0
  912. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_terminated_queries.h +35 -0
  913. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/yb_ysql_conn_mgr_helper.h +154 -0
  914. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/ybctid.h +55 -0
  915. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/ybgate/ybgate_api-test.h +78 -0
  916. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/ybgate/ybgate_api.h +283 -0
  917. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/ybgate/ybgate_cpp_util.h +78 -0
  918. data/ext/yb_ddl_parser/vendor/yugabyte-postgres/src/include/ybgate/ybgate_status.h +136 -0
  919. data/ext/yb_ddl_parser/yb_ddl_parser_ext.c +1740 -0
  920. data/ext/yb_ddl_parser/yb_parser_stubs.c +459 -0
  921. data/lib/yb_ddl_parser/ast.rb +276 -0
  922. data/lib/yb_ddl_parser/version.rb +6 -0
  923. data/lib/yb_ddl_parser.rb +32 -0
  924. data/test/test_helper.rb +5 -0
  925. data/test/yb_ddl_parser_test.rb +353 -0
  926. metadata +990 -0
@@ -0,0 +1,1608 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * primnodes.h
4
+ * Definitions for "primitive" node types, those that are used in more
5
+ * than one of the parse/plan/execute stages of the query pipeline.
6
+ * Currently, these are mostly nodes for executable expressions
7
+ * and join trees.
8
+ *
9
+ *
10
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
11
+ * Portions Copyright (c) 1994, Regents of the University of California
12
+ *
13
+ * src/include/nodes/primnodes.h
14
+ *
15
+ *-------------------------------------------------------------------------
16
+ */
17
+ #ifndef PRIMNODES_H
18
+ #define PRIMNODES_H
19
+
20
+ #include "access/attnum.h"
21
+ #include "nodes/bitmapset.h"
22
+ #include "nodes/pg_list.h"
23
+
24
+
25
+ /* ----------------------------------------------------------------
26
+ * node definitions
27
+ * ----------------------------------------------------------------
28
+ */
29
+
30
+ /*
31
+ * Alias -
32
+ * specifies an alias for a range variable; the alias might also
33
+ * specify renaming of columns within the table.
34
+ *
35
+ * Note: colnames is a list of String nodes. In Alias structs
36
+ * associated with RTEs, there may be entries corresponding to dropped
37
+ * columns; these are normally empty strings (""). See parsenodes.h for info.
38
+ */
39
+ typedef struct Alias
40
+ {
41
+ NodeTag type;
42
+ char *aliasname; /* aliased rel name (never qualified) */
43
+ List *colnames; /* optional list of column aliases */
44
+ } Alias;
45
+
46
+ /* What to do at commit time for temporary relations */
47
+ typedef enum OnCommitAction
48
+ {
49
+ ONCOMMIT_NOOP, /* No ON COMMIT clause (do nothing) */
50
+ ONCOMMIT_PRESERVE_ROWS, /* ON COMMIT PRESERVE ROWS (do nothing) */
51
+ ONCOMMIT_DELETE_ROWS, /* ON COMMIT DELETE ROWS */
52
+ ONCOMMIT_DROP /* ON COMMIT DROP */
53
+ } OnCommitAction;
54
+
55
+ /*
56
+ * RangeVar - range variable, used in FROM clauses
57
+ *
58
+ * Also used to represent table names in utility statements; there, the alias
59
+ * field is not used, and inh tells whether to apply the operation
60
+ * recursively to child tables. In some contexts it is also useful to carry
61
+ * a TEMP table indication here.
62
+ */
63
+ typedef struct RangeVar
64
+ {
65
+ NodeTag type;
66
+ char *catalogname; /* the catalog (database) name, or NULL */
67
+ char *schemaname; /* the schema name, or NULL */
68
+ char *relname; /* the relation/sequence name */
69
+ bool inh; /* expand rel by inheritance? recursively act
70
+ * on children? */
71
+ char relpersistence; /* see RELPERSISTENCE_* in pg_class.h */
72
+ Alias *alias; /* table alias & optional column aliases */
73
+ int location; /* token location, or -1 if unknown */
74
+ } RangeVar;
75
+
76
+ /*
77
+ * TableFunc - node for a table function, such as XMLTABLE.
78
+ *
79
+ * Entries in the ns_names list are either String nodes containing
80
+ * literal namespace names, or NULL pointers to represent DEFAULT.
81
+ */
82
+ typedef struct TableFunc
83
+ {
84
+ NodeTag type;
85
+ List *ns_uris; /* list of namespace URI expressions */
86
+ List *ns_names; /* list of namespace names or NULL */
87
+ Node *docexpr; /* input document expression */
88
+ Node *rowexpr; /* row filter expression */
89
+ List *colnames; /* column names (list of String) */
90
+ List *coltypes; /* OID list of column type OIDs */
91
+ List *coltypmods; /* integer list of column typmods */
92
+ List *colcollations; /* OID list of column collation OIDs */
93
+ List *colexprs; /* list of column filter expressions */
94
+ List *coldefexprs; /* list of column default expressions */
95
+ Bitmapset *notnulls; /* nullability flag for each output column */
96
+ int ordinalitycol; /* counts from 0; -1 if none specified */
97
+ int location; /* token location, or -1 if unknown */
98
+ } TableFunc;
99
+
100
+ /*
101
+ * IntoClause - target information for SELECT INTO, CREATE TABLE AS, and
102
+ * CREATE MATERIALIZED VIEW
103
+ *
104
+ * For CREATE MATERIALIZED VIEW, viewQuery is the parsed-but-not-rewritten
105
+ * SELECT Query for the view; otherwise it's NULL. (Although it's actually
106
+ * Query*, we declare it as Node* to avoid a forward reference.)
107
+ */
108
+ typedef struct IntoClause
109
+ {
110
+ NodeTag type;
111
+
112
+ RangeVar *rel; /* target relation name */
113
+ List *colNames; /* column names to assign, or NIL */
114
+ char *accessMethod; /* table access method */
115
+ List *options; /* options from WITH clause */
116
+ OnCommitAction onCommit; /* what do we do at COMMIT? */
117
+ char *tableSpaceName; /* table space to use, or NULL */
118
+ Node *viewQuery; /* materialized view's SELECT query */
119
+ bool skipData; /* true for WITH NO DATA */
120
+ } IntoClause;
121
+
122
+
123
+ /* ----------------------------------------------------------------
124
+ * node types for executable expressions
125
+ * ----------------------------------------------------------------
126
+ */
127
+
128
+ /*
129
+ * Expr - generic superclass for executable-expression nodes
130
+ *
131
+ * All node types that are used in executable expression trees should derive
132
+ * from Expr (that is, have Expr as their first field). Since Expr only
133
+ * contains NodeTag, this is a formality, but it is an easy form of
134
+ * documentation. See also the ExprState node types in execnodes.h.
135
+ */
136
+ typedef struct Expr
137
+ {
138
+ NodeTag type;
139
+ } Expr;
140
+
141
+ /*
142
+ * Var - expression node representing a variable (ie, a table column)
143
+ *
144
+ * In the parser and planner, varno and varattno identify the semantic
145
+ * referent, which is a base-relation column unless the reference is to a join
146
+ * USING column that isn't semantically equivalent to either join input column
147
+ * (because it is a FULL join or the input column requires a type coercion).
148
+ * In those cases varno and varattno refer to the JOIN RTE. (Early in the
149
+ * planner, we replace such join references by the implied expression; but up
150
+ * till then we want join reference Vars to keep their original identity for
151
+ * query-printing purposes.)
152
+ *
153
+ * At the end of planning, Var nodes appearing in upper-level plan nodes are
154
+ * reassigned to point to the outputs of their subplans; for example, in a
155
+ * join node varno becomes INNER_VAR or OUTER_VAR and varattno becomes the
156
+ * index of the proper element of that subplan's target list. Similarly,
157
+ * INDEX_VAR is used to identify Vars that reference an index column rather
158
+ * than a heap column. (In ForeignScan and CustomScan plan nodes, INDEX_VAR
159
+ * is abused to signify references to columns of a custom scan tuple type.)
160
+ *
161
+ * ROWID_VAR is used in the planner to identify nonce variables that carry
162
+ * row identity information during UPDATE/DELETE/MERGE. This value should
163
+ * never be seen outside the planner.
164
+ *
165
+ * In the parser, varnosyn and varattnosyn are either identical to
166
+ * varno/varattno, or they specify the column's position in an aliased JOIN
167
+ * RTE that hides the semantic referent RTE's refname. This is a syntactic
168
+ * identifier as opposed to the semantic identifier; it tells ruleutils.c
169
+ * how to print the Var properly. varnosyn/varattnosyn retain their values
170
+ * throughout planning and execution, so they are particularly helpful to
171
+ * identify Vars when debugging. Note, however, that a Var that is generated
172
+ * in the planner and doesn't correspond to any simple relation column may
173
+ * have varnosyn = varattnosyn = 0.
174
+ */
175
+ #define INNER_VAR (-1) /* reference to inner subplan */
176
+ #define OUTER_VAR (-2) /* reference to outer subplan */
177
+ #define INDEX_VAR (-3) /* reference to index column */
178
+ #define ROWID_VAR (-4) /* row identity column during planning */
179
+
180
+ #define IS_SPECIAL_VARNO(varno) ((int) (varno) < 0)
181
+
182
+ /* Symbols for the indexes of the special RTE entries in rules */
183
+ #define PRS2_OLD_VARNO 1
184
+ #define PRS2_NEW_VARNO 2
185
+
186
+ typedef struct Var
187
+ {
188
+ Expr xpr;
189
+ int varno; /* index of this var's relation in the range
190
+ * table, or INNER_VAR/OUTER_VAR/etc */
191
+ AttrNumber varattno; /* attribute number of this var, or zero for
192
+ * all attrs ("whole-row Var") */
193
+ Oid vartype; /* pg_type OID for the type of this var */
194
+ int32 vartypmod; /* pg_attribute typmod value */
195
+ Oid varcollid; /* OID of collation, or InvalidOid if none */
196
+ Index varlevelsup; /* for subquery variables referencing outer
197
+ * relations; 0 in a normal var, >0 means N
198
+ * levels up */
199
+ Index varnosyn; /* syntactic relation index (0 if unknown) */
200
+ AttrNumber varattnosyn; /* syntactic attribute number */
201
+ int location; /* token location, or -1 if unknown */
202
+ } Var;
203
+
204
+ /*
205
+ * Const
206
+ *
207
+ * Note: for varlena data types, we make a rule that a Const node's value
208
+ * must be in non-extended form (4-byte header, no compression or external
209
+ * references). This ensures that the Const node is self-contained and makes
210
+ * it more likely that equal() will see logically identical values as equal.
211
+ */
212
+ typedef struct Const
213
+ {
214
+ Expr xpr;
215
+ Oid consttype; /* pg_type OID of the constant's datatype */
216
+ int32 consttypmod; /* typmod value, if any */
217
+ Oid constcollid; /* OID of collation, or InvalidOid if none */
218
+ int constlen; /* typlen of the constant's datatype */
219
+ Datum constvalue; /* the constant's value */
220
+ bool constisnull; /* whether the constant is null (if true,
221
+ * constvalue is undefined) */
222
+ bool constbyval; /* whether this datatype is passed by value.
223
+ * If true, then all the information is stored
224
+ * in the Datum. If false, then the Datum
225
+ * contains a pointer to the information. */
226
+ int location; /* token location, or -1 if unknown */
227
+ } Const;
228
+
229
+ /*
230
+ * Param
231
+ *
232
+ * paramkind specifies the kind of parameter. The possible values
233
+ * for this field are:
234
+ *
235
+ * PARAM_EXTERN: The parameter value is supplied from outside the plan.
236
+ * Such parameters are numbered from 1 to n.
237
+ *
238
+ * PARAM_EXEC: The parameter is an internal executor parameter, used
239
+ * for passing values into and out of sub-queries or from
240
+ * nestloop joins to their inner scans.
241
+ * For historical reasons, such parameters are numbered from 0.
242
+ * These numbers are independent of PARAM_EXTERN numbers.
243
+ *
244
+ * PARAM_SUBLINK: The parameter represents an output column of a SubLink
245
+ * node's sub-select. The column number is contained in the
246
+ * `paramid' field. (This type of Param is converted to
247
+ * PARAM_EXEC during planning.)
248
+ *
249
+ * PARAM_MULTIEXPR: Like PARAM_SUBLINK, the parameter represents an
250
+ * output column of a SubLink node's sub-select, but here, the
251
+ * SubLink is always a MULTIEXPR SubLink. The high-order 16 bits
252
+ * of the `paramid' field contain the SubLink's subLinkId, and
253
+ * the low-order 16 bits contain the column number. (This type
254
+ * of Param is also converted to PARAM_EXEC during planning.)
255
+ */
256
+ typedef enum ParamKind
257
+ {
258
+ PARAM_EXTERN,
259
+ PARAM_EXEC,
260
+ PARAM_SUBLINK,
261
+ PARAM_MULTIEXPR
262
+ } ParamKind;
263
+
264
+ typedef struct Param
265
+ {
266
+ Expr xpr;
267
+ ParamKind paramkind; /* kind of parameter. See above */
268
+ int paramid; /* numeric ID for parameter */
269
+ Oid paramtype; /* pg_type OID of parameter's datatype */
270
+ int32 paramtypmod; /* typmod value, if known */
271
+ Oid paramcollid; /* OID of collation, or InvalidOid if none */
272
+ int location; /* token location, or -1 if unknown */
273
+ } Param;
274
+
275
+ /*
276
+ * Aggref
277
+ *
278
+ * The aggregate's args list is a targetlist, ie, a list of TargetEntry nodes.
279
+ *
280
+ * For a normal (non-ordered-set) aggregate, the non-resjunk TargetEntries
281
+ * represent the aggregate's regular arguments (if any) and resjunk TLEs can
282
+ * be added at the end to represent ORDER BY expressions that are not also
283
+ * arguments. As in a top-level Query, the TLEs can be marked with
284
+ * ressortgroupref indexes to let them be referenced by SortGroupClause
285
+ * entries in the aggorder and/or aggdistinct lists. This represents ORDER BY
286
+ * and DISTINCT operations to be applied to the aggregate input rows before
287
+ * they are passed to the transition function. The grammar only allows a
288
+ * simple "DISTINCT" specifier for the arguments, but we use the full
289
+ * query-level representation to allow more code sharing.
290
+ *
291
+ * For an ordered-set aggregate, the args list represents the WITHIN GROUP
292
+ * (aggregated) arguments, all of which will be listed in the aggorder list.
293
+ * DISTINCT is not supported in this case, so aggdistinct will be NIL.
294
+ * The direct arguments appear in aggdirectargs (as a list of plain
295
+ * expressions, not TargetEntry nodes).
296
+ *
297
+ * aggtranstype is the data type of the state transition values for this
298
+ * aggregate (resolved to an actual type, if agg's transtype is polymorphic).
299
+ * This is determined during planning and is InvalidOid before that.
300
+ *
301
+ * aggargtypes is an OID list of the data types of the direct and regular
302
+ * arguments. Normally it's redundant with the aggdirectargs and args lists,
303
+ * but in a combining aggregate, it's not because the args list has been
304
+ * replaced with a single argument representing the partial-aggregate
305
+ * transition values.
306
+ *
307
+ * aggsplit indicates the expected partial-aggregation mode for the Aggref's
308
+ * parent plan node. It's always set to AGGSPLIT_SIMPLE in the parser, but
309
+ * the planner might change it to something else. We use this mainly as
310
+ * a crosscheck that the Aggrefs match the plan; but note that when aggsplit
311
+ * indicates a non-final mode, aggtype reflects the transition data type
312
+ * not the SQL-level output type of the aggregate.
313
+ *
314
+ * aggno and aggtransno are -1 in the parse stage, and are set in planning.
315
+ * Aggregates with the same 'aggno' represent the same aggregate expression,
316
+ * and can share the result. Aggregates with same 'transno' but different
317
+ * 'aggno' can share the same transition state, only the final function needs
318
+ * to be called separately.
319
+ */
320
+ typedef struct Aggref
321
+ {
322
+ Expr xpr;
323
+ Oid aggfnoid; /* pg_proc Oid of the aggregate */
324
+ Oid aggtype; /* type Oid of result of the aggregate */
325
+ Oid aggcollid; /* OID of collation of result */
326
+ Oid inputcollid; /* OID of collation that function should use */
327
+ Oid aggtranstype; /* type Oid of aggregate's transition value */
328
+ List *aggargtypes; /* type Oids of direct and aggregated args */
329
+ List *aggdirectargs; /* direct arguments, if an ordered-set agg */
330
+ List *args; /* aggregated arguments and sort expressions */
331
+ List *aggorder; /* ORDER BY (list of SortGroupClause) */
332
+ List *aggdistinct; /* DISTINCT (list of SortGroupClause) */
333
+ Expr *aggfilter; /* FILTER expression, if any */
334
+ bool aggstar; /* true if argument list was really '*' */
335
+ bool aggvariadic; /* true if variadic arguments have been
336
+ * combined into an array last argument */
337
+ char aggkind; /* aggregate kind (see pg_aggregate.h) */
338
+ Index agglevelsup; /* > 0 if agg belongs to outer query */
339
+ AggSplit aggsplit; /* expected agg-splitting mode of parent Agg */
340
+ int aggno; /* unique ID within the Agg node */
341
+ int aggtransno; /* unique ID of transition state in the Agg */
342
+ int location; /* token location, or -1 if unknown */
343
+ } Aggref;
344
+
345
+ /*
346
+ * GroupingFunc
347
+ *
348
+ * A GroupingFunc is a GROUPING(...) expression, which behaves in many ways
349
+ * like an aggregate function (e.g. it "belongs" to a specific query level,
350
+ * which might not be the one immediately containing it), but also differs in
351
+ * an important respect: it never evaluates its arguments, they merely
352
+ * designate expressions from the GROUP BY clause of the query level to which
353
+ * it belongs.
354
+ *
355
+ * The spec defines the evaluation of GROUPING() purely by syntactic
356
+ * replacement, but we make it a real expression for optimization purposes so
357
+ * that one Agg node can handle multiple grouping sets at once. Evaluating the
358
+ * result only needs the column positions to check against the grouping set
359
+ * being projected. However, for EXPLAIN to produce meaningful output, we have
360
+ * to keep the original expressions around, since expression deparse does not
361
+ * give us any feasible way to get at the GROUP BY clause.
362
+ *
363
+ * Also, we treat two GroupingFunc nodes as equal if they have equal arguments
364
+ * lists and agglevelsup, without comparing the refs and cols annotations.
365
+ *
366
+ * In raw parse output we have only the args list; parse analysis fills in the
367
+ * refs list, and the planner fills in the cols list.
368
+ */
369
+ typedef struct GroupingFunc
370
+ {
371
+ Expr xpr;
372
+ List *args; /* arguments, not evaluated but kept for
373
+ * benefit of EXPLAIN etc. */
374
+ List *refs; /* ressortgrouprefs of arguments */
375
+ List *cols; /* actual column positions set by planner */
376
+ Index agglevelsup; /* same as Aggref.agglevelsup */
377
+ int location; /* token location */
378
+ } GroupingFunc;
379
+
380
+ /*
381
+ * WindowFunc
382
+ */
383
+ typedef struct WindowFunc
384
+ {
385
+ Expr xpr;
386
+ Oid winfnoid; /* pg_proc Oid of the function */
387
+ Oid wintype; /* type Oid of result of the window function */
388
+ Oid wincollid; /* OID of collation of result */
389
+ Oid inputcollid; /* OID of collation that function should use */
390
+ List *args; /* arguments to the window function */
391
+ Expr *aggfilter; /* FILTER expression, if any */
392
+ Index winref; /* index of associated WindowClause */
393
+ bool winstar; /* true if argument list was really '*' */
394
+ bool winagg; /* is function a simple aggregate? */
395
+ int location; /* token location, or -1 if unknown */
396
+ } WindowFunc;
397
+
398
+ /*
399
+ * SubscriptingRef: describes a subscripting operation over a container
400
+ * (array, etc).
401
+ *
402
+ * A SubscriptingRef can describe fetching a single element from a container,
403
+ * fetching a part of a container (e.g. an array slice), storing a single
404
+ * element into a container, or storing a slice. The "store" cases work with
405
+ * an initial container value and a source value that is inserted into the
406
+ * appropriate part of the container; the result of the operation is an
407
+ * entire new modified container value.
408
+ *
409
+ * If reflowerindexpr = NIL, then we are fetching or storing a single container
410
+ * element at the subscripts given by refupperindexpr. Otherwise we are
411
+ * fetching or storing a container slice, that is a rectangular subcontainer
412
+ * with lower and upper bounds given by the index expressions.
413
+ * reflowerindexpr must be the same length as refupperindexpr when it
414
+ * is not NIL.
415
+ *
416
+ * In the slice case, individual expressions in the subscript lists can be
417
+ * NULL, meaning "substitute the array's current lower or upper bound".
418
+ * (Non-array containers may or may not support this.)
419
+ *
420
+ * refcontainertype is the actual container type that determines the
421
+ * subscripting semantics. (This will generally be either the exposed type of
422
+ * refexpr, or the base type if that is a domain.) refelemtype is the type of
423
+ * the container's elements; this is saved for the use of the subscripting
424
+ * functions, but is not used by the core code. refrestype, reftypmod, and
425
+ * refcollid describe the type of the SubscriptingRef's result. In a store
426
+ * expression, refrestype will always match refcontainertype; in a fetch,
427
+ * it could be refelemtype for an element fetch, or refcontainertype for a
428
+ * slice fetch, or possibly something else as determined by type-specific
429
+ * subscripting logic. Likewise, reftypmod and refcollid will match the
430
+ * container's properties in a store, but could be different in a fetch.
431
+ *
432
+ * Note: for the cases where a container is returned, if refexpr yields a R/W
433
+ * expanded container, then the implementation is allowed to modify that
434
+ * object in-place and return the same object.
435
+ */
436
+ typedef struct SubscriptingRef
437
+ {
438
+ Expr xpr;
439
+ Oid refcontainertype; /* type of the container proper */
440
+ Oid refelemtype; /* the container type's pg_type.typelem */
441
+ Oid refrestype; /* type of the SubscriptingRef's result */
442
+ int32 reftypmod; /* typmod of the result */
443
+ Oid refcollid; /* collation of result, or InvalidOid if none */
444
+ List *refupperindexpr; /* expressions that evaluate to upper
445
+ * container indexes */
446
+ List *reflowerindexpr; /* expressions that evaluate to lower
447
+ * container indexes, or NIL for single
448
+ * container element */
449
+ Expr *refexpr; /* the expression that evaluates to a
450
+ * container value */
451
+ Expr *refassgnexpr; /* expression for the source value, or NULL if
452
+ * fetch */
453
+ } SubscriptingRef;
454
+
455
+ /*
456
+ * CoercionContext - distinguishes the allowed set of type casts
457
+ *
458
+ * NB: ordering of the alternatives is significant; later (larger) values
459
+ * allow more casts than earlier ones.
460
+ */
461
+ typedef enum CoercionContext
462
+ {
463
+ COERCION_IMPLICIT, /* coercion in context of expression */
464
+ COERCION_ASSIGNMENT, /* coercion in context of assignment */
465
+ COERCION_PLPGSQL, /* if no assignment cast, use CoerceViaIO */
466
+ COERCION_EXPLICIT /* explicit cast operation */
467
+ } CoercionContext;
468
+
469
+ /*
470
+ * CoercionForm - how to display a FuncExpr or related node
471
+ *
472
+ * "Coercion" is a bit of a misnomer, since this value records other
473
+ * special syntaxes besides casts, but for now we'll keep this naming.
474
+ *
475
+ * NB: equal() ignores CoercionForm fields, therefore this *must* not carry
476
+ * any semantically significant information. We need that behavior so that
477
+ * the planner will consider equivalent implicit and explicit casts to be
478
+ * equivalent. In cases where those actually behave differently, the coercion
479
+ * function's arguments will be different.
480
+ */
481
+ typedef enum CoercionForm
482
+ {
483
+ COERCE_EXPLICIT_CALL, /* display as a function call */
484
+ COERCE_EXPLICIT_CAST, /* display as an explicit cast */
485
+ COERCE_IMPLICIT_CAST, /* implicit cast, so hide it */
486
+ COERCE_SQL_SYNTAX /* display with SQL-mandated special syntax */
487
+ } CoercionForm;
488
+
489
+ /*
490
+ * YbConcurrencyContext - distinguishes between different forms of concurrency
491
+ * specified in CREATE INDEX.
492
+ */
493
+ typedef enum YbConcurrencyContext
494
+ {
495
+ YB_CONCURRENCY_DISABLED, /* CONCURRENTLY is disabled */
496
+ YB_CONCURRENCY_IMPLICIT_ENABLED, /* CONCURRENTLY is implicitly enabled */
497
+ YB_CONCURRENCY_EXPLICIT_ENABLED /* CONCURRENTLY is explicitly enabled */
498
+ } YbConcurrencyContext;
499
+
500
+ /*
501
+ * FuncExpr - expression node for a function call
502
+ */
503
+ typedef struct FuncExpr
504
+ {
505
+ Expr xpr;
506
+ Oid funcid; /* PG_PROC OID of the function */
507
+ Oid funcresulttype; /* PG_TYPE OID of result value */
508
+ bool funcretset; /* true if function returns set */
509
+ bool funcvariadic; /* true if variadic arguments have been
510
+ * combined into an array last argument */
511
+ CoercionForm funcformat; /* how to display this function call */
512
+ Oid funccollid; /* OID of collation of result */
513
+ Oid inputcollid; /* OID of collation that function should use */
514
+ List *args; /* arguments to the function */
515
+ int location; /* token location, or -1 if unknown */
516
+ } FuncExpr;
517
+
518
+ /*
519
+ * NamedArgExpr - a named argument of a function
520
+ *
521
+ * This node type can only appear in the args list of a FuncCall or FuncExpr
522
+ * node. We support pure positional call notation (no named arguments),
523
+ * named notation (all arguments are named), and mixed notation (unnamed
524
+ * arguments followed by named ones).
525
+ *
526
+ * Parse analysis sets argnumber to the positional index of the argument,
527
+ * but doesn't rearrange the argument list.
528
+ *
529
+ * The planner will convert argument lists to pure positional notation
530
+ * during expression preprocessing, so execution never sees a NamedArgExpr.
531
+ */
532
+ typedef struct NamedArgExpr
533
+ {
534
+ Expr xpr;
535
+ Expr *arg; /* the argument expression */
536
+ char *name; /* the name */
537
+ int argnumber; /* argument's number in positional notation */
538
+ int location; /* argument name location, or -1 if unknown */
539
+ } NamedArgExpr;
540
+
541
+ /*
542
+ * OpExpr - expression node for an operator invocation
543
+ *
544
+ * Semantically, this is essentially the same as a function call.
545
+ *
546
+ * Note that opfuncid is not necessarily filled in immediately on creation
547
+ * of the node. The planner makes sure it is valid before passing the node
548
+ * tree to the executor, but during parsing/planning opfuncid can be 0.
549
+ */
550
+ typedef struct OpExpr
551
+ {
552
+ Expr xpr;
553
+ Oid opno; /* PG_OPERATOR OID of the operator */
554
+ Oid opfuncid; /* PG_PROC OID of underlying function */
555
+ Oid opresulttype; /* PG_TYPE OID of result value */
556
+ bool opretset; /* true if operator returns set */
557
+ Oid opcollid; /* OID of collation of result */
558
+ Oid inputcollid; /* OID of collation that operator should use */
559
+ List *args; /* arguments to the operator (1 or 2) */
560
+ int location; /* token location, or -1 if unknown */
561
+ } OpExpr;
562
+
563
+ /*
564
+ * DistinctExpr - expression node for "x IS DISTINCT FROM y"
565
+ *
566
+ * Except for the nodetag, this is represented identically to an OpExpr
567
+ * referencing the "=" operator for x and y.
568
+ * We use "=", not the more obvious "<>", because more datatypes have "="
569
+ * than "<>". This means the executor must invert the operator result.
570
+ * Note that the operator function won't be called at all if either input
571
+ * is NULL, since then the result can be determined directly.
572
+ */
573
+ typedef OpExpr DistinctExpr;
574
+
575
+ /*
576
+ * NullIfExpr - a NULLIF expression
577
+ *
578
+ * Like DistinctExpr, this is represented the same as an OpExpr referencing
579
+ * the "=" operator for x and y.
580
+ */
581
+ typedef OpExpr NullIfExpr;
582
+
583
+ /*
584
+ * ScalarArrayOpExpr - expression node for "scalar op ANY/ALL (array)"
585
+ *
586
+ * The operator must yield boolean. It is applied to the left operand
587
+ * and each element of the righthand array, and the results are combined
588
+ * with OR or AND (for ANY or ALL respectively). The node representation
589
+ * is almost the same as for the underlying operator, but we need a useOr
590
+ * flag to remember whether it's ANY or ALL, and we don't have to store
591
+ * the result type (or the collation) because it must be boolean.
592
+ *
593
+ * A ScalarArrayOpExpr with a valid hashfuncid is evaluated during execution
594
+ * by building a hash table containing the Const values from the RHS arg.
595
+ * This table is probed during expression evaluation. The planner will set
596
+ * hashfuncid to the hash function which must be used to build and probe the
597
+ * hash table. The executor determines if it should use hash-based checks or
598
+ * the more traditional means based on if the hashfuncid is set or not.
599
+ *
600
+ * When performing hashed NOT IN, the negfuncid will also be set to the
601
+ * equality function which the hash table must use to build and probe the hash
602
+ * table. opno and opfuncid will remain set to the <> operator and its
603
+ * corresponding function and won't be used during execution. For
604
+ * non-hashtable based NOT INs, negfuncid will be set to InvalidOid. See
605
+ * convert_saop_to_hashed_saop().
606
+ */
607
+ typedef struct ScalarArrayOpExpr
608
+ {
609
+ Expr xpr;
610
+ Oid opno; /* PG_OPERATOR OID of the operator */
611
+ Oid opfuncid; /* PG_PROC OID of comparison function */
612
+ Oid hashfuncid; /* PG_PROC OID of hash func or InvalidOid */
613
+ Oid negfuncid; /* PG_PROC OID of negator of opfuncid function
614
+ * or InvalidOid. See above */
615
+ bool useOr; /* true for ANY, false for ALL */
616
+ Oid inputcollid; /* OID of collation that operator should use */
617
+ List *args; /* the scalar and array operands */
618
+ int location; /* token location, or -1 if unknown */
619
+ } ScalarArrayOpExpr;
620
+
621
+ /*
622
+ * BoolExpr - expression node for the basic Boolean operators AND, OR, NOT
623
+ *
624
+ * Notice the arguments are given as a List. For NOT, of course the list
625
+ * must always have exactly one element. For AND and OR, there can be two
626
+ * or more arguments.
627
+ */
628
+ typedef enum BoolExprType
629
+ {
630
+ AND_EXPR, OR_EXPR, NOT_EXPR
631
+ } BoolExprType;
632
+
633
+ typedef struct BoolExpr
634
+ {
635
+ Expr xpr;
636
+ BoolExprType boolop;
637
+ List *args; /* arguments to this expression */
638
+ int location; /* token location, or -1 if unknown */
639
+ } BoolExpr;
640
+
641
+ /*
642
+ * SubLink
643
+ *
644
+ * A SubLink represents a subselect appearing in an expression, and in some
645
+ * cases also the combining operator(s) just above it. The subLinkType
646
+ * indicates the form of the expression represented:
647
+ * EXISTS_SUBLINK EXISTS(SELECT ...)
648
+ * ALL_SUBLINK (lefthand) op ALL (SELECT ...)
649
+ * ANY_SUBLINK (lefthand) op ANY (SELECT ...)
650
+ * ROWCOMPARE_SUBLINK (lefthand) op (SELECT ...)
651
+ * EXPR_SUBLINK (SELECT with single targetlist item ...)
652
+ * MULTIEXPR_SUBLINK (SELECT with multiple targetlist items ...)
653
+ * ARRAY_SUBLINK ARRAY(SELECT with single targetlist item ...)
654
+ * CTE_SUBLINK WITH query (never actually part of an expression)
655
+ * For ALL, ANY, and ROWCOMPARE, the lefthand is a list of expressions of the
656
+ * same length as the subselect's targetlist. ROWCOMPARE will *always* have
657
+ * a list with more than one entry; if the subselect has just one target
658
+ * then the parser will create an EXPR_SUBLINK instead (and any operator
659
+ * above the subselect will be represented separately).
660
+ * ROWCOMPARE, EXPR, and MULTIEXPR require the subselect to deliver at most
661
+ * one row (if it returns no rows, the result is NULL).
662
+ * ALL, ANY, and ROWCOMPARE require the combining operators to deliver boolean
663
+ * results. ALL and ANY combine the per-row results using AND and OR
664
+ * semantics respectively.
665
+ * ARRAY requires just one target column, and creates an array of the target
666
+ * column's type using any number of rows resulting from the subselect.
667
+ *
668
+ * SubLink is classed as an Expr node, but it is not actually executable;
669
+ * it must be replaced in the expression tree by a SubPlan node during
670
+ * planning.
671
+ *
672
+ * NOTE: in the raw output of gram.y, testexpr contains just the raw form
673
+ * of the lefthand expression (if any), and operName is the String name of
674
+ * the combining operator. Also, subselect is a raw parsetree. During parse
675
+ * analysis, the parser transforms testexpr into a complete boolean expression
676
+ * that compares the lefthand value(s) to PARAM_SUBLINK nodes representing the
677
+ * output columns of the subselect. And subselect is transformed to a Query.
678
+ * This is the representation seen in saved rules and in the rewriter.
679
+ *
680
+ * In EXISTS, EXPR, MULTIEXPR, and ARRAY SubLinks, testexpr and operName
681
+ * are unused and are always null.
682
+ *
683
+ * subLinkId is currently used only for MULTIEXPR SubLinks, and is zero in
684
+ * other SubLinks. This number identifies different multiple-assignment
685
+ * subqueries within an UPDATE statement's SET list. It is unique only
686
+ * within a particular targetlist. The output column(s) of the MULTIEXPR
687
+ * are referenced by PARAM_MULTIEXPR Params appearing elsewhere in the tlist.
688
+ *
689
+ * The CTE_SUBLINK case never occurs in actual SubLink nodes, but it is used
690
+ * in SubPlans generated for WITH subqueries.
691
+ */
692
+ typedef enum SubLinkType
693
+ {
694
+ EXISTS_SUBLINK,
695
+ ALL_SUBLINK,
696
+ ANY_SUBLINK,
697
+ ROWCOMPARE_SUBLINK,
698
+ EXPR_SUBLINK,
699
+ MULTIEXPR_SUBLINK,
700
+ ARRAY_SUBLINK,
701
+ CTE_SUBLINK /* for SubPlans only */
702
+ } SubLinkType;
703
+
704
+
705
+ typedef struct SubLink
706
+ {
707
+ Expr xpr;
708
+ SubLinkType subLinkType; /* see above */
709
+ int subLinkId; /* ID (1..n); 0 if not MULTIEXPR */
710
+ Node *testexpr; /* outer-query test for ALL/ANY/ROWCOMPARE */
711
+ List *operName; /* originally specified operator name */
712
+ Node *subselect; /* subselect as Query* or raw parsetree */
713
+ int location; /* token location, or -1 if unknown */
714
+ } SubLink;
715
+
716
+ /*
717
+ * SubPlan - executable expression node for a subplan (sub-SELECT)
718
+ *
719
+ * The planner replaces SubLink nodes in expression trees with SubPlan
720
+ * nodes after it has finished planning the subquery. SubPlan references
721
+ * a sub-plantree stored in the subplans list of the toplevel PlannedStmt.
722
+ * (We avoid a direct link to make it easier to copy expression trees
723
+ * without causing multiple processing of the subplan.)
724
+ *
725
+ * In an ordinary subplan, testexpr points to an executable expression
726
+ * (OpExpr, an AND/OR tree of OpExprs, or RowCompareExpr) for the combining
727
+ * operator(s); the left-hand arguments are the original lefthand expressions,
728
+ * and the right-hand arguments are PARAM_EXEC Param nodes representing the
729
+ * outputs of the sub-select. (NOTE: runtime coercion functions may be
730
+ * inserted as well.) This is just the same expression tree as testexpr in
731
+ * the original SubLink node, but the PARAM_SUBLINK nodes are replaced by
732
+ * suitably numbered PARAM_EXEC nodes.
733
+ *
734
+ * If the sub-select becomes an initplan rather than a subplan, the executable
735
+ * expression is part of the outer plan's expression tree (and the SubPlan
736
+ * node itself is not, but rather is found in the outer plan's initPlan
737
+ * list). In this case testexpr is NULL to avoid duplication.
738
+ *
739
+ * The planner also derives lists of the values that need to be passed into
740
+ * and out of the subplan. Input values are represented as a list "args" of
741
+ * expressions to be evaluated in the outer-query context (currently these
742
+ * args are always just Vars, but in principle they could be any expression).
743
+ * The values are assigned to the global PARAM_EXEC params indexed by parParam
744
+ * (the parParam and args lists must have the same ordering). setParam is a
745
+ * list of the PARAM_EXEC params that are computed by the sub-select, if it
746
+ * is an initplan or MULTIEXPR plan; they are listed in order by sub-select
747
+ * output column position. (parParam and setParam are integer Lists, not
748
+ * Bitmapsets, because their ordering is significant.)
749
+ *
750
+ * Also, the planner computes startup and per-call costs for use of the
751
+ * SubPlan. Note that these include the cost of the subquery proper,
752
+ * evaluation of the testexpr if any, and any hashtable management overhead.
753
+ */
754
+ typedef struct SubPlan
755
+ {
756
+ Expr xpr;
757
+ /* Fields copied from original SubLink: */
758
+ SubLinkType subLinkType; /* see above */
759
+ /* The combining operators, transformed to an executable expression: */
760
+ Node *testexpr; /* OpExpr or RowCompareExpr expression tree */
761
+ List *paramIds; /* IDs of Params embedded in the above */
762
+ /* Identification of the Plan tree to use: */
763
+ int plan_id; /* Index (from 1) in PlannedStmt.subplans */
764
+ /* Identification of the SubPlan for EXPLAIN and debugging purposes: */
765
+ char *plan_name; /* A name assigned during planning */
766
+ /* Extra data useful for determining subplan's output type: */
767
+ Oid firstColType; /* Type of first column of subplan result */
768
+ int32 firstColTypmod; /* Typmod of first column of subplan result */
769
+ Oid firstColCollation; /* Collation of first column of subplan
770
+ * result */
771
+ /* Information about execution strategy: */
772
+ bool useHashTable; /* true to store subselect output in a hash
773
+ * table (implies we are doing "IN") */
774
+ bool unknownEqFalse; /* true if it's okay to return FALSE when the
775
+ * spec result is UNKNOWN; this allows much
776
+ * simpler handling of null values */
777
+ bool parallel_safe; /* is the subplan parallel-safe? */
778
+ /* Note: parallel_safe does not consider contents of testexpr or args */
779
+ /* Information for passing params into and out of the subselect: */
780
+ /* setParam and parParam are lists of integers (param IDs) */
781
+ List *setParam; /* initplan and MULTIEXPR subqueries have to
782
+ * set these Params for parent plan */
783
+ List *parParam; /* indices of input Params from parent plan */
784
+ List *args; /* exprs to pass as parParam values */
785
+ /* Estimated execution costs: */
786
+ Cost startup_cost; /* one-time setup cost */
787
+ Cost per_call_cost; /* cost for each subplan evaluation */
788
+ } SubPlan;
789
+
790
+ /*
791
+ * AlternativeSubPlan - expression node for a choice among SubPlans
792
+ *
793
+ * This is used only transiently during planning: by the time the plan
794
+ * reaches the executor, all AlternativeSubPlan nodes have been removed.
795
+ *
796
+ * The subplans are given as a List so that the node definition need not
797
+ * change if there's ever more than two alternatives. For the moment,
798
+ * though, there are always exactly two; and the first one is the fast-start
799
+ * plan.
800
+ */
801
+ typedef struct AlternativeSubPlan
802
+ {
803
+ Expr xpr;
804
+ List *subplans; /* SubPlan(s) with equivalent results */
805
+ } AlternativeSubPlan;
806
+
807
+ /* ----------------
808
+ * FieldSelect
809
+ *
810
+ * FieldSelect represents the operation of extracting one field from a tuple
811
+ * value. At runtime, the input expression is expected to yield a rowtype
812
+ * Datum. The specified field number is extracted and returned as a Datum.
813
+ * ----------------
814
+ */
815
+
816
+ typedef struct FieldSelect
817
+ {
818
+ Expr xpr;
819
+ Expr *arg; /* input expression */
820
+ AttrNumber fieldnum; /* attribute number of field to extract */
821
+ Oid resulttype; /* type of the field (result type of this
822
+ * node) */
823
+ int32 resulttypmod; /* output typmod (usually -1) */
824
+ Oid resultcollid; /* OID of collation of the field */
825
+ } FieldSelect;
826
+
827
+ /* ----------------
828
+ * FieldStore
829
+ *
830
+ * FieldStore represents the operation of modifying one field in a tuple
831
+ * value, yielding a new tuple value (the input is not touched!). Like
832
+ * the assign case of SubscriptingRef, this is used to implement UPDATE of a
833
+ * portion of a column.
834
+ *
835
+ * resulttype is always a named composite type (not a domain). To update
836
+ * a composite domain value, apply CoerceToDomain to the FieldStore.
837
+ *
838
+ * A single FieldStore can actually represent updates of several different
839
+ * fields. The parser only generates FieldStores with single-element lists,
840
+ * but the planner will collapse multiple updates of the same base column
841
+ * into one FieldStore.
842
+ * ----------------
843
+ */
844
+
845
+ typedef struct FieldStore
846
+ {
847
+ Expr xpr;
848
+ Expr *arg; /* input tuple value */
849
+ List *newvals; /* new value(s) for field(s) */
850
+ List *fieldnums; /* integer list of field attnums */
851
+ Oid resulttype; /* type of result (same as type of arg) */
852
+ /* Like RowExpr, we deliberately omit a typmod and collation here */
853
+ } FieldStore;
854
+
855
+ /* ----------------
856
+ * RelabelType
857
+ *
858
+ * RelabelType represents a "dummy" type coercion between two binary-
859
+ * compatible datatypes, such as reinterpreting the result of an OID
860
+ * expression as an int4. It is a no-op at runtime; we only need it
861
+ * to provide a place to store the correct type to be attributed to
862
+ * the expression result during type resolution. (We can't get away
863
+ * with just overwriting the type field of the input expression node,
864
+ * so we need a separate node to show the coercion's result type.)
865
+ * ----------------
866
+ */
867
+
868
+ typedef struct RelabelType
869
+ {
870
+ Expr xpr;
871
+ Expr *arg; /* input expression */
872
+ Oid resulttype; /* output type of coercion expression */
873
+ int32 resulttypmod; /* output typmod (usually -1) */
874
+ Oid resultcollid; /* OID of collation, or InvalidOid if none */
875
+ CoercionForm relabelformat; /* how to display this node */
876
+ int location; /* token location, or -1 if unknown */
877
+ } RelabelType;
878
+
879
+ /* ----------------
880
+ * CoerceViaIO
881
+ *
882
+ * CoerceViaIO represents a type coercion between two types whose textual
883
+ * representations are compatible, implemented by invoking the source type's
884
+ * typoutput function then the destination type's typinput function.
885
+ * ----------------
886
+ */
887
+
888
+ typedef struct CoerceViaIO
889
+ {
890
+ Expr xpr;
891
+ Expr *arg; /* input expression */
892
+ Oid resulttype; /* output type of coercion */
893
+ /* output typmod is not stored, but is presumed -1 */
894
+ Oid resultcollid; /* OID of collation, or InvalidOid if none */
895
+ CoercionForm coerceformat; /* how to display this node */
896
+ int location; /* token location, or -1 if unknown */
897
+ } CoerceViaIO;
898
+
899
+ /* ----------------
900
+ * ArrayCoerceExpr
901
+ *
902
+ * ArrayCoerceExpr represents a type coercion from one array type to another,
903
+ * which is implemented by applying the per-element coercion expression
904
+ * "elemexpr" to each element of the source array. Within elemexpr, the
905
+ * source element is represented by a CaseTestExpr node. Note that even if
906
+ * elemexpr is a no-op (that is, just CaseTestExpr + RelabelType), the
907
+ * coercion still requires some effort: we have to fix the element type OID
908
+ * stored in the array header.
909
+ * ----------------
910
+ */
911
+
912
+ typedef struct ArrayCoerceExpr
913
+ {
914
+ Expr xpr;
915
+ Expr *arg; /* input expression (yields an array) */
916
+ Expr *elemexpr; /* expression representing per-element work */
917
+ Oid resulttype; /* output type of coercion (an array type) */
918
+ int32 resulttypmod; /* output typmod (also element typmod) */
919
+ Oid resultcollid; /* OID of collation, or InvalidOid if none */
920
+ CoercionForm coerceformat; /* how to display this node */
921
+ int location; /* token location, or -1 if unknown */
922
+ } ArrayCoerceExpr;
923
+
924
+ /* ----------------
925
+ * ConvertRowtypeExpr
926
+ *
927
+ * ConvertRowtypeExpr represents a type coercion from one composite type
928
+ * to another, where the source type is guaranteed to contain all the columns
929
+ * needed for the destination type plus possibly others; the columns need not
930
+ * be in the same positions, but are matched up by name. This is primarily
931
+ * used to convert a whole-row value of an inheritance child table into a
932
+ * valid whole-row value of its parent table's rowtype. Both resulttype
933
+ * and the exposed type of "arg" must be named composite types (not domains).
934
+ * ----------------
935
+ */
936
+
937
+ typedef struct ConvertRowtypeExpr
938
+ {
939
+ Expr xpr;
940
+ Expr *arg; /* input expression */
941
+ Oid resulttype; /* output type (always a composite type) */
942
+ /* Like RowExpr, we deliberately omit a typmod and collation here */
943
+ CoercionForm convertformat; /* how to display this node */
944
+ int location; /* token location, or -1 if unknown */
945
+ } ConvertRowtypeExpr;
946
+
947
+ /*----------
948
+ * CollateExpr - COLLATE
949
+ *
950
+ * The planner replaces CollateExpr with RelabelType during expression
951
+ * preprocessing, so execution never sees a CollateExpr.
952
+ *----------
953
+ */
954
+ typedef struct CollateExpr
955
+ {
956
+ Expr xpr;
957
+ Expr *arg; /* input expression */
958
+ Oid collOid; /* collation's OID */
959
+ int location; /* token location, or -1 if unknown */
960
+ } CollateExpr;
961
+
962
+ /*----------
963
+ * CaseExpr - a CASE expression
964
+ *
965
+ * We support two distinct forms of CASE expression:
966
+ * CASE WHEN boolexpr THEN expr [ WHEN boolexpr THEN expr ... ]
967
+ * CASE testexpr WHEN compexpr THEN expr [ WHEN compexpr THEN expr ... ]
968
+ * These are distinguishable by the "arg" field being NULL in the first case
969
+ * and the testexpr in the second case.
970
+ *
971
+ * In the raw grammar output for the second form, the condition expressions
972
+ * of the WHEN clauses are just the comparison values. Parse analysis
973
+ * converts these to valid boolean expressions of the form
974
+ * CaseTestExpr '=' compexpr
975
+ * where the CaseTestExpr node is a placeholder that emits the correct
976
+ * value at runtime. This structure is used so that the testexpr need be
977
+ * evaluated only once. Note that after parse analysis, the condition
978
+ * expressions always yield boolean.
979
+ *
980
+ * Note: we can test whether a CaseExpr has been through parse analysis
981
+ * yet by checking whether casetype is InvalidOid or not.
982
+ *----------
983
+ */
984
+ typedef struct CaseExpr
985
+ {
986
+ Expr xpr;
987
+ Oid casetype; /* type of expression result */
988
+ Oid casecollid; /* OID of collation, or InvalidOid if none */
989
+ Expr *arg; /* implicit equality comparison argument */
990
+ List *args; /* the arguments (list of WHEN clauses) */
991
+ Expr *defresult; /* the default result (ELSE clause) */
992
+ int location; /* token location, or -1 if unknown */
993
+ } CaseExpr;
994
+
995
+ /*
996
+ * CaseWhen - one arm of a CASE expression
997
+ */
998
+ typedef struct CaseWhen
999
+ {
1000
+ Expr xpr;
1001
+ Expr *expr; /* condition expression */
1002
+ Expr *result; /* substitution result */
1003
+ int location; /* token location, or -1 if unknown */
1004
+ } CaseWhen;
1005
+
1006
+ /*
1007
+ * Placeholder node for the test value to be processed by a CASE expression.
1008
+ * This is effectively like a Param, but can be implemented more simply
1009
+ * since we need only one replacement value at a time.
1010
+ *
1011
+ * We also abuse this node type for some other purposes, including:
1012
+ * * Placeholder for the current array element value in ArrayCoerceExpr;
1013
+ * see build_coercion_expression().
1014
+ * * Nested FieldStore/SubscriptingRef assignment expressions in INSERT/UPDATE;
1015
+ * see transformAssignmentIndirection().
1016
+ *
1017
+ * The uses in CaseExpr and ArrayCoerceExpr are safe only to the extent that
1018
+ * there is not any other CaseExpr or ArrayCoerceExpr between the value source
1019
+ * node and its child CaseTestExpr(s). This is true in the parse analysis
1020
+ * output, but the planner's function-inlining logic has to be careful not to
1021
+ * break it.
1022
+ *
1023
+ * The nested-assignment-expression case is safe because the only node types
1024
+ * that can be above such CaseTestExprs are FieldStore and SubscriptingRef.
1025
+ */
1026
+ typedef struct CaseTestExpr
1027
+ {
1028
+ Expr xpr;
1029
+ Oid typeId; /* type for substituted value */
1030
+ int32 typeMod; /* typemod for substituted value */
1031
+ Oid collation; /* collation for the substituted value */
1032
+ } CaseTestExpr;
1033
+
1034
+ /*
1035
+ * ArrayExpr - an ARRAY[] expression
1036
+ *
1037
+ * Note: if multidims is false, the constituent expressions all yield the
1038
+ * scalar type identified by element_typeid. If multidims is true, the
1039
+ * constituent expressions all yield arrays of element_typeid (ie, the same
1040
+ * type as array_typeid); at runtime we must check for compatible subscripts.
1041
+ */
1042
+ typedef struct ArrayExpr
1043
+ {
1044
+ Expr xpr;
1045
+ Oid array_typeid; /* type of expression result */
1046
+ Oid array_collid; /* OID of collation, or InvalidOid if none */
1047
+ Oid element_typeid; /* common type of array elements */
1048
+ List *elements; /* the array elements or sub-arrays */
1049
+ bool multidims; /* true if elements are sub-arrays */
1050
+ int location; /* token location, or -1 if unknown */
1051
+ } ArrayExpr;
1052
+
1053
+ /*
1054
+ * RowExpr - a ROW() expression
1055
+ *
1056
+ * Note: the list of fields must have a one-for-one correspondence with
1057
+ * physical fields of the associated rowtype, although it is okay for it
1058
+ * to be shorter than the rowtype. That is, the N'th list element must
1059
+ * match up with the N'th physical field. When the N'th physical field
1060
+ * is a dropped column (attisdropped) then the N'th list element can just
1061
+ * be a NULL constant. (This case can only occur for named composite types,
1062
+ * not RECORD types, since those are built from the RowExpr itself rather
1063
+ * than vice versa.) It is important not to assume that length(args) is
1064
+ * the same as the number of columns logically present in the rowtype.
1065
+ *
1066
+ * colnames provides field names if the ROW() result is of type RECORD.
1067
+ * Names *must* be provided if row_typeid is RECORDOID; but if it is a
1068
+ * named composite type, colnames will be ignored in favor of using the
1069
+ * type's cataloged field names, so colnames should be NIL. Like the
1070
+ * args list, colnames is defined to be one-for-one with physical fields
1071
+ * of the rowtype (although dropped columns shouldn't appear in the
1072
+ * RECORD case, so this fine point is currently moot).
1073
+ */
1074
+ typedef struct RowExpr
1075
+ {
1076
+ Expr xpr;
1077
+ List *args; /* the fields */
1078
+ Oid row_typeid; /* RECORDOID or a composite type's ID */
1079
+
1080
+ /*
1081
+ * row_typeid cannot be a domain over composite, only plain composite. To
1082
+ * create a composite domain value, apply CoerceToDomain to the RowExpr.
1083
+ *
1084
+ * Note: we deliberately do NOT store a typmod. Although a typmod will be
1085
+ * associated with specific RECORD types at runtime, it will differ for
1086
+ * different backends, and so cannot safely be stored in stored
1087
+ * parsetrees. We must assume typmod -1 for a RowExpr node.
1088
+ *
1089
+ * We don't need to store a collation either. The result type is
1090
+ * necessarily composite, and composite types never have a collation.
1091
+ */
1092
+ CoercionForm row_format; /* how to display this node */
1093
+ List *colnames; /* list of String, or NIL */
1094
+ int location; /* token location, or -1 if unknown */
1095
+ } RowExpr;
1096
+
1097
+ /*
1098
+ * RowCompareExpr - row-wise comparison, such as (a, b) <= (1, 2)
1099
+ *
1100
+ * We support row comparison for any operator that can be determined to
1101
+ * act like =, <>, <, <=, >, or >= (we determine this by looking for the
1102
+ * operator in btree opfamilies). Note that the same operator name might
1103
+ * map to a different operator for each pair of row elements, since the
1104
+ * element datatypes can vary.
1105
+ *
1106
+ * A RowCompareExpr node is only generated for the < <= > >= cases;
1107
+ * the = and <> cases are translated to simple AND or OR combinations
1108
+ * of the pairwise comparisons. However, we include = and <> in the
1109
+ * RowCompareType enum for the convenience of parser logic.
1110
+ *
1111
+ * YB: In the execution layer, YB indexes support the = case for when
1112
+ * the RHS is an array of rows much like an IN condition.
1113
+ */
1114
+ typedef enum RowCompareType
1115
+ {
1116
+ /* Values of this enum are chosen to match btree strategy numbers */
1117
+ ROWCOMPARE_LT = 1, /* BTLessStrategyNumber */
1118
+ ROWCOMPARE_LE = 2, /* BTLessEqualStrategyNumber */
1119
+ ROWCOMPARE_EQ = 3, /* BTEqualStrategyNumber */
1120
+ ROWCOMPARE_GE = 4, /* BTGreaterEqualStrategyNumber */
1121
+ ROWCOMPARE_GT = 5, /* BTGreaterStrategyNumber */
1122
+ ROWCOMPARE_NE = 6 /* no such btree strategy */
1123
+ } RowCompareType;
1124
+
1125
+ typedef struct RowCompareExpr
1126
+ {
1127
+ Expr xpr;
1128
+ RowCompareType rctype; /* LT LE GE or GT, never EQ or NE */
1129
+ List *opnos; /* OID list of pairwise comparison ops */
1130
+ List *opfamilies; /* OID list of containing operator families */
1131
+ List *inputcollids; /* OID list of collations for comparisons */
1132
+ List *largs; /* the left-hand input arguments */
1133
+ /* YB note: change rargs type from List to Node */
1134
+ Node *rargs; /* the right-hand input arguments */
1135
+ } RowCompareExpr;
1136
+
1137
+ /*
1138
+ * CoalesceExpr - a COALESCE expression
1139
+ */
1140
+ typedef struct CoalesceExpr
1141
+ {
1142
+ Expr xpr;
1143
+ Oid coalescetype; /* type of expression result */
1144
+ Oid coalescecollid; /* OID of collation, or InvalidOid if none */
1145
+ List *args; /* the arguments */
1146
+ int location; /* token location, or -1 if unknown */
1147
+ } CoalesceExpr;
1148
+
1149
+ /*
1150
+ * MinMaxExpr - a GREATEST or LEAST function
1151
+ */
1152
+ typedef enum MinMaxOp
1153
+ {
1154
+ IS_GREATEST,
1155
+ IS_LEAST
1156
+ } MinMaxOp;
1157
+
1158
+ typedef struct MinMaxExpr
1159
+ {
1160
+ Expr xpr;
1161
+ Oid minmaxtype; /* common type of arguments and result */
1162
+ Oid minmaxcollid; /* OID of collation of result */
1163
+ Oid inputcollid; /* OID of collation that function should use */
1164
+ MinMaxOp op; /* function to execute */
1165
+ List *args; /* the arguments */
1166
+ int location; /* token location, or -1 if unknown */
1167
+ } MinMaxExpr;
1168
+
1169
+ /*
1170
+ * SQLValueFunction - parameterless functions with special grammar productions
1171
+ *
1172
+ * The SQL standard categorizes some of these as <datetime value function>
1173
+ * and others as <general value specification>. We call 'em SQLValueFunctions
1174
+ * for lack of a better term. We store type and typmod of the result so that
1175
+ * some code doesn't need to know each function individually, and because
1176
+ * we would need to store typmod anyway for some of the datetime functions.
1177
+ * Note that currently, all variants return non-collating datatypes, so we do
1178
+ * not need a collation field; also, all these functions are stable.
1179
+ */
1180
+ typedef enum SQLValueFunctionOp
1181
+ {
1182
+ SVFOP_CURRENT_DATE,
1183
+ SVFOP_CURRENT_TIME,
1184
+ SVFOP_CURRENT_TIME_N,
1185
+ SVFOP_CURRENT_TIMESTAMP,
1186
+ SVFOP_CURRENT_TIMESTAMP_N,
1187
+ SVFOP_LOCALTIME,
1188
+ SVFOP_LOCALTIME_N,
1189
+ SVFOP_LOCALTIMESTAMP,
1190
+ SVFOP_LOCALTIMESTAMP_N,
1191
+ SVFOP_CURRENT_ROLE,
1192
+ SVFOP_CURRENT_USER,
1193
+ SVFOP_USER,
1194
+ SVFOP_SESSION_USER,
1195
+ SVFOP_CURRENT_CATALOG,
1196
+ SVFOP_CURRENT_SCHEMA
1197
+ } SQLValueFunctionOp;
1198
+
1199
+ typedef struct SQLValueFunction
1200
+ {
1201
+ Expr xpr;
1202
+ SQLValueFunctionOp op; /* which function this is */
1203
+ Oid type; /* result type/typmod */
1204
+ int32 typmod;
1205
+ int location; /* token location, or -1 if unknown */
1206
+ } SQLValueFunction;
1207
+
1208
+ /*
1209
+ * XmlExpr - various SQL/XML functions requiring special grammar productions
1210
+ *
1211
+ * 'name' carries the "NAME foo" argument (already XML-escaped).
1212
+ * 'named_args' and 'arg_names' represent an xml_attribute list.
1213
+ * 'args' carries all other arguments.
1214
+ *
1215
+ * Note: result type/typmod/collation are not stored, but can be deduced
1216
+ * from the XmlExprOp. The type/typmod fields are just used for display
1217
+ * purposes, and are NOT necessarily the true result type of the node.
1218
+ */
1219
+ typedef enum XmlExprOp
1220
+ {
1221
+ IS_XMLCONCAT, /* XMLCONCAT(args) */
1222
+ IS_XMLELEMENT, /* XMLELEMENT(name, xml_attributes, args) */
1223
+ IS_XMLFOREST, /* XMLFOREST(xml_attributes) */
1224
+ IS_XMLPARSE, /* XMLPARSE(text, is_doc, preserve_ws) */
1225
+ IS_XMLPI, /* XMLPI(name [, args]) */
1226
+ IS_XMLROOT, /* XMLROOT(xml, version, standalone) */
1227
+ IS_XMLSERIALIZE, /* XMLSERIALIZE(is_document, xmlval) */
1228
+ IS_DOCUMENT /* xmlval IS DOCUMENT */
1229
+ } XmlExprOp;
1230
+
1231
+ typedef enum XmlOptionType
1232
+ {
1233
+ XMLOPTION_DOCUMENT,
1234
+ XMLOPTION_CONTENT
1235
+ } XmlOptionType;
1236
+
1237
+ typedef struct XmlExpr
1238
+ {
1239
+ Expr xpr;
1240
+ XmlExprOp op; /* xml function ID */
1241
+ char *name; /* name in xml(NAME foo ...) syntaxes */
1242
+ List *named_args; /* non-XML expressions for xml_attributes */
1243
+ List *arg_names; /* parallel list of String values */
1244
+ List *args; /* list of expressions */
1245
+ XmlOptionType xmloption; /* DOCUMENT or CONTENT */
1246
+ Oid type; /* target type/typmod for XMLSERIALIZE */
1247
+ int32 typmod;
1248
+ int location; /* token location, or -1 if unknown */
1249
+ } XmlExpr;
1250
+
1251
+ /* ----------------
1252
+ * NullTest
1253
+ *
1254
+ * NullTest represents the operation of testing a value for NULLness.
1255
+ * The appropriate test is performed and returned as a boolean Datum.
1256
+ *
1257
+ * When argisrow is false, this simply represents a test for the null value.
1258
+ *
1259
+ * When argisrow is true, the input expression must yield a rowtype, and
1260
+ * the node implements "row IS [NOT] NULL" per the SQL standard. This
1261
+ * includes checking individual fields for NULLness when the row datum
1262
+ * itself isn't NULL.
1263
+ *
1264
+ * NOTE: the combination of a rowtype input and argisrow==false does NOT
1265
+ * correspond to the SQL notation "row IS [NOT] NULL"; instead, this case
1266
+ * represents the SQL notation "row IS [NOT] DISTINCT FROM NULL".
1267
+ * ----------------
1268
+ */
1269
+
1270
+ typedef enum NullTestType
1271
+ {
1272
+ IS_NULL, IS_NOT_NULL
1273
+ } NullTestType;
1274
+
1275
+ typedef struct NullTest
1276
+ {
1277
+ Expr xpr;
1278
+ Expr *arg; /* input expression */
1279
+ NullTestType nulltesttype; /* IS NULL, IS NOT NULL */
1280
+ bool argisrow; /* T to perform field-by-field null checks */
1281
+ int location; /* token location, or -1 if unknown */
1282
+ } NullTest;
1283
+
1284
+ /*
1285
+ * BooleanTest
1286
+ *
1287
+ * BooleanTest represents the operation of determining whether a boolean
1288
+ * is TRUE, FALSE, or UNKNOWN (ie, NULL). All six meaningful combinations
1289
+ * are supported. Note that a NULL input does *not* cause a NULL result.
1290
+ * The appropriate test is performed and returned as a boolean Datum.
1291
+ */
1292
+
1293
+ typedef enum BoolTestType
1294
+ {
1295
+ IS_TRUE, IS_NOT_TRUE, IS_FALSE, IS_NOT_FALSE, IS_UNKNOWN, IS_NOT_UNKNOWN
1296
+ } BoolTestType;
1297
+
1298
+ typedef struct BooleanTest
1299
+ {
1300
+ Expr xpr;
1301
+ Expr *arg; /* input expression */
1302
+ BoolTestType booltesttype; /* test type */
1303
+ int location; /* token location, or -1 if unknown */
1304
+ } BooleanTest;
1305
+
1306
+ /*
1307
+ * CoerceToDomain
1308
+ *
1309
+ * CoerceToDomain represents the operation of coercing a value to a domain
1310
+ * type. At runtime (and not before) the precise set of constraints to be
1311
+ * checked will be determined. If the value passes, it is returned as the
1312
+ * result; if not, an error is raised. Note that this is equivalent to
1313
+ * RelabelType in the scenario where no constraints are applied.
1314
+ */
1315
+ typedef struct CoerceToDomain
1316
+ {
1317
+ Expr xpr;
1318
+ Expr *arg; /* input expression */
1319
+ Oid resulttype; /* domain type ID (result type) */
1320
+ int32 resulttypmod; /* output typmod (currently always -1) */
1321
+ Oid resultcollid; /* OID of collation, or InvalidOid if none */
1322
+ CoercionForm coercionformat; /* how to display this node */
1323
+ int location; /* token location, or -1 if unknown */
1324
+ } CoerceToDomain;
1325
+
1326
+ /*
1327
+ * Placeholder node for the value to be processed by a domain's check
1328
+ * constraint. This is effectively like a Param, but can be implemented more
1329
+ * simply since we need only one replacement value at a time.
1330
+ *
1331
+ * Note: the typeId/typeMod/collation will be set from the domain's base type,
1332
+ * not the domain itself. This is because we shouldn't consider the value
1333
+ * to be a member of the domain if we haven't yet checked its constraints.
1334
+ */
1335
+ typedef struct CoerceToDomainValue
1336
+ {
1337
+ Expr xpr;
1338
+ Oid typeId; /* type for substituted value */
1339
+ int32 typeMod; /* typemod for substituted value */
1340
+ Oid collation; /* collation for the substituted value */
1341
+ int location; /* token location, or -1 if unknown */
1342
+ } CoerceToDomainValue;
1343
+
1344
+ /*
1345
+ * Placeholder node for a DEFAULT marker in an INSERT or UPDATE command.
1346
+ *
1347
+ * This is not an executable expression: it must be replaced by the actual
1348
+ * column default expression during rewriting. But it is convenient to
1349
+ * treat it as an expression node during parsing and rewriting.
1350
+ */
1351
+ typedef struct SetToDefault
1352
+ {
1353
+ Expr xpr;
1354
+ Oid typeId; /* type for substituted value */
1355
+ int32 typeMod; /* typemod for substituted value */
1356
+ Oid collation; /* collation for the substituted value */
1357
+ int location; /* token location, or -1 if unknown */
1358
+ } SetToDefault;
1359
+
1360
+ /*
1361
+ * Node representing [WHERE] CURRENT OF cursor_name
1362
+ *
1363
+ * CURRENT OF is a bit like a Var, in that it carries the rangetable index
1364
+ * of the target relation being constrained; this aids placing the expression
1365
+ * correctly during planning. We can assume however that its "levelsup" is
1366
+ * always zero, due to the syntactic constraints on where it can appear.
1367
+ * Also, cvarno will always be a true RT index, never INNER_VAR etc.
1368
+ *
1369
+ * The referenced cursor can be represented either as a hardwired string
1370
+ * or as a reference to a run-time parameter of type REFCURSOR. The latter
1371
+ * case is for the convenience of plpgsql.
1372
+ */
1373
+ typedef struct CurrentOfExpr
1374
+ {
1375
+ Expr xpr;
1376
+ Index cvarno; /* RT index of target relation */
1377
+ char *cursor_name; /* name of referenced cursor, or NULL */
1378
+ int cursor_param; /* refcursor parameter number, or 0 */
1379
+ } CurrentOfExpr;
1380
+
1381
+ /*
1382
+ * NextValueExpr - get next value from sequence
1383
+ *
1384
+ * This has the same effect as calling the nextval() function, but it does not
1385
+ * check permissions on the sequence. This is used for identity columns,
1386
+ * where the sequence is an implicit dependency without its own permissions.
1387
+ */
1388
+ typedef struct NextValueExpr
1389
+ {
1390
+ Expr xpr;
1391
+ Oid seqid;
1392
+ Oid typeId;
1393
+ } NextValueExpr;
1394
+
1395
+ /*
1396
+ * InferenceElem - an element of a unique index inference specification
1397
+ *
1398
+ * This mostly matches the structure of IndexElems, but having a dedicated
1399
+ * primnode allows for a clean separation between the use of index parameters
1400
+ * by utility commands, and this node.
1401
+ */
1402
+ typedef struct InferenceElem
1403
+ {
1404
+ Expr xpr;
1405
+ Node *expr; /* expression to infer from, or NULL */
1406
+ Oid infercollid; /* OID of collation, or InvalidOid */
1407
+ Oid inferopclass; /* OID of att opclass, or InvalidOid */
1408
+ } InferenceElem;
1409
+
1410
+ /*--------------------
1411
+ * TargetEntry -
1412
+ * a target entry (used in query target lists)
1413
+ *
1414
+ * Strictly speaking, a TargetEntry isn't an expression node (since it can't
1415
+ * be evaluated by ExecEvalExpr). But we treat it as one anyway, since in
1416
+ * very many places it's convenient to process a whole query targetlist as a
1417
+ * single expression tree.
1418
+ *
1419
+ * In a SELECT's targetlist, resno should always be equal to the item's
1420
+ * ordinal position (counting from 1). However, in an INSERT or UPDATE
1421
+ * targetlist, resno represents the attribute number of the destination
1422
+ * column for the item; so there may be missing or out-of-order resnos.
1423
+ * It is even legal to have duplicated resnos; consider
1424
+ * UPDATE table SET arraycol[1] = ..., arraycol[2] = ..., ...
1425
+ * In an INSERT, the rewriter and planner will normalize the tlist by
1426
+ * reordering it into physical column order and filling in default values
1427
+ * for any columns not assigned values by the original query. In an UPDATE,
1428
+ * after the rewriter merges multiple assignments for the same column, the
1429
+ * planner extracts the target-column numbers into a separate "update_colnos"
1430
+ * list, and then renumbers the tlist elements serially. Thus, tlist resnos
1431
+ * match ordinal position in all tlists seen by the executor; but it is wrong
1432
+ * to assume that before planning has happened.
1433
+ *
1434
+ * resname is required to represent the correct column name in non-resjunk
1435
+ * entries of top-level SELECT targetlists, since it will be used as the
1436
+ * column title sent to the frontend. In most other contexts it is only
1437
+ * a debugging aid, and may be wrong or even NULL. (In particular, it may
1438
+ * be wrong in a tlist from a stored rule, if the referenced column has been
1439
+ * renamed by ALTER TABLE since the rule was made. Also, the planner tends
1440
+ * to store NULL rather than look up a valid name for tlist entries in
1441
+ * non-toplevel plan nodes.) In resjunk entries, resname should be either
1442
+ * a specific system-generated name (such as "ctid") or NULL; anything else
1443
+ * risks confusing ExecGetJunkAttribute!
1444
+ *
1445
+ * ressortgroupref is used in the representation of ORDER BY, GROUP BY, and
1446
+ * DISTINCT items. Targetlist entries with ressortgroupref=0 are not
1447
+ * sort/group items. If ressortgroupref>0, then this item is an ORDER BY,
1448
+ * GROUP BY, and/or DISTINCT target value. No two entries in a targetlist
1449
+ * may have the same nonzero ressortgroupref --- but there is no particular
1450
+ * meaning to the nonzero values, except as tags. (For example, one must
1451
+ * not assume that lower ressortgroupref means a more significant sort key.)
1452
+ * The order of the associated SortGroupClause lists determine the semantics.
1453
+ *
1454
+ * resorigtbl/resorigcol identify the source of the column, if it is a
1455
+ * simple reference to a column of a base table (or view). If it is not
1456
+ * a simple reference, these fields are zeroes.
1457
+ *
1458
+ * If resjunk is true then the column is a working column (such as a sort key)
1459
+ * that should be removed from the final output of the query. Resjunk columns
1460
+ * must have resnos that cannot duplicate any regular column's resno. Also
1461
+ * note that there are places that assume resjunk columns come after non-junk
1462
+ * columns.
1463
+ *--------------------
1464
+ */
1465
+ typedef struct TargetEntry
1466
+ {
1467
+ Expr xpr;
1468
+ Expr *expr; /* expression to evaluate */
1469
+ AttrNumber resno; /* attribute number (see notes above) */
1470
+ char *resname; /* name of the column (could be NULL) */
1471
+ Index ressortgroupref; /* nonzero if referenced by a sort/group
1472
+ * clause */
1473
+ Oid resorigtbl; /* OID of column's source table */
1474
+ AttrNumber resorigcol; /* column's number in source table */
1475
+ bool resjunk; /* set to true to eliminate the attribute from
1476
+ * final target list */
1477
+ } TargetEntry;
1478
+
1479
+
1480
+ /* ----------------------------------------------------------------
1481
+ * node types for join trees
1482
+ *
1483
+ * The leaves of a join tree structure are RangeTblRef nodes. Above
1484
+ * these, JoinExpr nodes can appear to denote a specific kind of join
1485
+ * or qualified join. Also, FromExpr nodes can appear to denote an
1486
+ * ordinary cross-product join ("FROM foo, bar, baz WHERE ...").
1487
+ * FromExpr is like a JoinExpr of jointype JOIN_INNER, except that it
1488
+ * may have any number of child nodes, not just two.
1489
+ *
1490
+ * NOTE: the top level of a Query's jointree is always a FromExpr.
1491
+ * Even if the jointree contains no rels, there will be a FromExpr.
1492
+ *
1493
+ * NOTE: the qualification expressions present in JoinExpr nodes are
1494
+ * *in addition to* the query's main WHERE clause, which appears as the
1495
+ * qual of the top-level FromExpr. The reason for associating quals with
1496
+ * specific nodes in the jointree is that the position of a qual is critical
1497
+ * when outer joins are present. (If we enforce a qual too soon or too late,
1498
+ * that may cause the outer join to produce the wrong set of NULL-extended
1499
+ * rows.) If all joins are inner joins then all the qual positions are
1500
+ * semantically interchangeable.
1501
+ *
1502
+ * NOTE: in the raw output of gram.y, a join tree contains RangeVar,
1503
+ * RangeSubselect, and RangeFunction nodes, which are all replaced by
1504
+ * RangeTblRef nodes during the parse analysis phase. Also, the top-level
1505
+ * FromExpr is added during parse analysis; the grammar regards FROM and
1506
+ * WHERE as separate.
1507
+ * ----------------------------------------------------------------
1508
+ */
1509
+
1510
+ /*
1511
+ * RangeTblRef - reference to an entry in the query's rangetable
1512
+ *
1513
+ * We could use direct pointers to the RT entries and skip having these
1514
+ * nodes, but multiple pointers to the same node in a querytree cause
1515
+ * lots of headaches, so it seems better to store an index into the RT.
1516
+ */
1517
+ typedef struct RangeTblRef
1518
+ {
1519
+ NodeTag type;
1520
+ int rtindex;
1521
+ } RangeTblRef;
1522
+
1523
+ /*----------
1524
+ * JoinExpr - for SQL JOIN expressions
1525
+ *
1526
+ * isNatural, usingClause, and quals are interdependent. The user can write
1527
+ * only one of NATURAL, USING(), or ON() (this is enforced by the grammar).
1528
+ * If he writes NATURAL then parse analysis generates the equivalent USING()
1529
+ * list, and from that fills in "quals" with the right equality comparisons.
1530
+ * If he writes USING() then "quals" is filled with equality comparisons.
1531
+ * If he writes ON() then only "quals" is set. Note that NATURAL/USING
1532
+ * are not equivalent to ON() since they also affect the output column list.
1533
+ *
1534
+ * alias is an Alias node representing the AS alias-clause attached to the
1535
+ * join expression, or NULL if no clause. NB: presence or absence of the
1536
+ * alias has a critical impact on semantics, because a join with an alias
1537
+ * restricts visibility of the tables/columns inside it.
1538
+ *
1539
+ * join_using_alias is an Alias node representing the join correlation
1540
+ * name that SQL:2016 and later allow to be attached to JOIN/USING.
1541
+ * Its column alias list includes only the common column names from USING,
1542
+ * and it does not restrict visibility of the join's input tables.
1543
+ *
1544
+ * During parse analysis, an RTE is created for the Join, and its index
1545
+ * is filled into rtindex. This RTE is present mainly so that Vars can
1546
+ * be created that refer to the outputs of the join. The planner sometimes
1547
+ * generates JoinExprs internally; these can have rtindex = 0 if there are
1548
+ * no join alias variables referencing such joins.
1549
+ *----------
1550
+ */
1551
+ typedef struct JoinExpr
1552
+ {
1553
+ NodeTag type;
1554
+ JoinType jointype; /* type of join */
1555
+ bool isNatural; /* Natural join? Will need to shape table */
1556
+ Node *larg; /* left subtree */
1557
+ Node *rarg; /* right subtree */
1558
+ List *usingClause; /* USING clause, if any (list of String) */
1559
+ Alias *join_using_alias; /* alias attached to USING clause, if any */
1560
+ Node *quals; /* qualifiers on join, if any */
1561
+ Alias *alias; /* user-written alias clause, if any */
1562
+ int rtindex; /* RT index assigned for join, or 0 */
1563
+ } JoinExpr;
1564
+
1565
+ /*----------
1566
+ * FromExpr - represents a FROM ... WHERE ... construct
1567
+ *
1568
+ * This is both more flexible than a JoinExpr (it can have any number of
1569
+ * children, including zero) and less so --- we don't need to deal with
1570
+ * aliases and so on. The output column set is implicitly just the union
1571
+ * of the outputs of the children.
1572
+ *----------
1573
+ */
1574
+ typedef struct FromExpr
1575
+ {
1576
+ NodeTag type;
1577
+ List *fromlist; /* List of join subtrees */
1578
+ Node *quals; /* qualifiers on join, if any */
1579
+ } FromExpr;
1580
+
1581
+ /*----------
1582
+ * OnConflictExpr - represents an ON CONFLICT DO ... expression
1583
+ *
1584
+ * The optimizer requires a list of inference elements, and optionally a WHERE
1585
+ * clause to infer a unique index. The unique index (or, occasionally,
1586
+ * indexes) inferred are used to arbitrate whether or not the alternative ON
1587
+ * CONFLICT path is taken.
1588
+ *----------
1589
+ */
1590
+ typedef struct OnConflictExpr
1591
+ {
1592
+ NodeTag type;
1593
+ OnConflictAction action; /* DO NOTHING or UPDATE? */
1594
+
1595
+ /* Arbiter */
1596
+ List *arbiterElems; /* unique index arbiter list (of
1597
+ * InferenceElem's) */
1598
+ Node *arbiterWhere; /* unique index arbiter WHERE clause */
1599
+ Oid constraint; /* pg_constraint OID for arbiter */
1600
+
1601
+ /* ON CONFLICT UPDATE */
1602
+ List *onConflictSet; /* List of ON CONFLICT SET TargetEntrys */
1603
+ Node *onConflictWhere; /* qualifiers to restrict UPDATE to */
1604
+ int exclRelIndex; /* RT index of 'excluded' relation */
1605
+ List *exclRelTlist; /* tlist of the EXCLUDED pseudo relation */
1606
+ } OnConflictExpr;
1607
+
1608
+ #endif /* PRIMNODES_H */