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,1681 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * plannodes.h
4
+ * definitions for query plan nodes
5
+ *
6
+ *
7
+ * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8
+ * Portions Copyright (c) 1994, Regents of the University of California
9
+ *
10
+ * src/include/nodes/plannodes.h
11
+ *
12
+ *-------------------------------------------------------------------------
13
+ */
14
+ #ifndef PLANNODES_H
15
+ #define PLANNODES_H
16
+
17
+ #include "access/sdir.h"
18
+ #include "access/stratnum.h"
19
+ #include "lib/stringinfo.h"
20
+ #include "nodes/bitmapset.h"
21
+ #include "nodes/lockoptions.h"
22
+ #include "nodes/parsenodes.h"
23
+ #include "nodes/primnodes.h"
24
+
25
+ /* YB includes */
26
+ #include "access/relation.h" /* TODO: is needed? */
27
+ #include "nodes/pathnodes.h" /* TODO: is needed? */
28
+ #include "nodes/ybbitmatrix.h"
29
+
30
+
31
+ /*
32
+ * YB: info used by YbMergeScanInfo.
33
+ */
34
+ typedef struct
35
+ {
36
+ NodeTag type;
37
+ int numCols; /* number of sort-key columns */
38
+ AttrNumber *sortColIdx; /* their indexes in the target list */
39
+ Oid *sortOperators; /* OIDs of operators to sort them by */
40
+ Oid *collations; /* OIDs of collations */
41
+ bool *nullsFirst; /* NULLS FIRST/LAST directions */
42
+ } YbSortInfo;
43
+
44
+ /*
45
+ * YB: info used by IndexScan and IndexOnlyScan nodes.
46
+ *
47
+ * Holds info used for merge scans.
48
+ */
49
+ typedef struct
50
+ {
51
+ NodeTag type;
52
+ List *saop_cols; /* List of YbMergeScanSaopColInfo */
53
+ YbSortInfo *sort_cols;
54
+ } YbMergeScanInfo;
55
+
56
+ /* ----------------------------------------------------------------
57
+ * node definitions
58
+ * ----------------------------------------------------------------
59
+ */
60
+
61
+ /* ----------------
62
+ * PlannedStmt node
63
+ *
64
+ * The output of the planner is a Plan tree headed by a PlannedStmt node.
65
+ * PlannedStmt holds the "one time" information needed by the executor.
66
+ *
67
+ * For simplicity in APIs, we also wrap utility statements in PlannedStmt
68
+ * nodes; in such cases, commandType == CMD_UTILITY, the statement itself
69
+ * is in the utilityStmt field, and the rest of the struct is mostly dummy.
70
+ * (We do use canSetTag, stmt_location, stmt_len, and possibly queryId.)
71
+ * ----------------
72
+ */
73
+ typedef struct PlannedStmt
74
+ {
75
+ NodeTag type;
76
+
77
+ CmdType commandType; /* select|insert|update|delete|merge|utility */
78
+
79
+ uint64 queryId; /* query identifier (copied from Query) */
80
+
81
+ bool hasReturning; /* is it insert|update|delete RETURNING? */
82
+
83
+ bool hasModifyingCTE; /* has insert|update|delete in WITH? */
84
+
85
+ bool canSetTag; /* do I set the command result tag? */
86
+
87
+ bool transientPlan; /* redo plan when TransactionXmin changes? */
88
+
89
+ bool dependsOnRole; /* is plan specific to current role? */
90
+
91
+ bool parallelModeNeeded; /* parallel mode required to execute? */
92
+
93
+ int jitFlags; /* which forms of JIT should be performed */
94
+
95
+ struct Plan *planTree; /* tree of Plan nodes */
96
+
97
+ List *rtable; /* list of RangeTblEntry nodes */
98
+
99
+ /* rtable indexes of target relations for INSERT/UPDATE/DELETE/MERGE */
100
+ List *resultRelations; /* integer list of RT indexes, or NIL */
101
+
102
+ List *appendRelations; /* list of AppendRelInfo nodes */
103
+
104
+ List *subplans; /* Plan trees for SubPlan expressions; note
105
+ * that some could be NULL */
106
+
107
+ Bitmapset *rewindPlanIDs; /* indices of subplans that require REWIND */
108
+
109
+ List *rowMarks; /* a list of PlanRowMark's */
110
+
111
+ List *relationOids; /* OIDs of relations the plan depends on */
112
+
113
+ List *invalItems; /* other dependencies, as PlanInvalItems */
114
+
115
+ List *paramExecTypes; /* type OIDs for PARAM_EXEC Params */
116
+
117
+ Node *utilityStmt; /* non-null if this is utility stmt */
118
+
119
+ /* statement location in source string (copied from Query) */
120
+ int stmt_location; /* start location, or -1 if unknown */
121
+ int stmt_len; /* length in bytes; 0 means "rest of string" */
122
+
123
+ /* YB specific fields */
124
+ /*
125
+ * Number of relations that are still referenced by the plan after
126
+ * constraint exclusion and partition pruning.
127
+ */
128
+ int yb_num_referenced_relations;
129
+
130
+ uint64 ybPlanId; /* plan id */
131
+ } PlannedStmt;
132
+
133
+ /* macro for fetching the Plan associated with a SubPlan node */
134
+ #define exec_subplan_get_plan(plannedstmt, subplan) \
135
+ ((Plan *) list_nth((plannedstmt)->subplans, (subplan)->plan_id - 1))
136
+
137
+
138
+ /* ----------------
139
+ * Plan node
140
+ *
141
+ * All plan nodes "derive" from the Plan structure by having the
142
+ * Plan structure as the first field. This ensures that everything works
143
+ * when nodes are cast to Plan's. (node pointers are frequently cast to Plan*
144
+ * when passed around generically in the executor)
145
+ *
146
+ * We never actually instantiate any Plan nodes; this is just the common
147
+ * abstract superclass for all Plan-type nodes.
148
+ * ----------------
149
+ */
150
+ typedef struct Plan
151
+ {
152
+ NodeTag type;
153
+
154
+ /*
155
+ * estimated execution costs for plan (see costsize.c for more info)
156
+ */
157
+ Cost startup_cost; /* cost expended before fetching any tuples */
158
+ Cost total_cost; /* total cost (assuming all tuples fetched) */
159
+
160
+ /*
161
+ * planner's estimate of result size of this plan step
162
+ */
163
+ Cardinality plan_rows; /* number of rows plan is expected to emit */
164
+ int plan_width; /* average row width in bytes */
165
+
166
+ /*
167
+ * information needed for parallel query
168
+ */
169
+ bool parallel_aware; /* engage parallel-aware logic? */
170
+ bool parallel_safe; /* OK to use as part of parallel plan? */
171
+
172
+ /*
173
+ * information needed for asynchronous execution
174
+ */
175
+ bool async_capable; /* engage asynchronous-capable logic? */
176
+
177
+ /*
178
+ * Common structural data for all Plan types.
179
+ */
180
+ int plan_node_id; /* unique across entire final plan tree */
181
+ List *targetlist; /* target list to be computed at this node */
182
+ List *qual; /* implicitly-ANDed qual conditions */
183
+ struct Plan *lefttree; /* input plan tree(s) */
184
+ struct Plan *righttree;
185
+ List *initPlan; /* Init Plan nodes (un-correlated expr
186
+ * subselects) */
187
+
188
+ /*
189
+ * Information for management of parameter-change-driven rescanning
190
+ *
191
+ * extParam includes the paramIDs of all external PARAM_EXEC params
192
+ * affecting this plan node or its children. setParam params from the
193
+ * node's initPlans are not included, but their extParams are.
194
+ *
195
+ * allParam includes all the extParam paramIDs, plus the IDs of local
196
+ * params that affect the node (i.e., the setParams of its initplans).
197
+ * These are _all_ the PARAM_EXEC params that affect this node.
198
+ */
199
+ Bitmapset *extParam;
200
+ Bitmapset *allParam;
201
+
202
+ /* YB: alias to use for hinting - unique across all blocks/entire query */
203
+ char *ybHintAlias;
204
+
205
+ /*
206
+ * YB: Unique id across all plan nodes. This is inherited from
207
+ * corresponding Path node (in a few cases there is not one).
208
+ */
209
+ uint32 ybUniqueId;
210
+
211
+ /*
212
+ * YB: If a node is a child of a Subquery Scan node and the scan node gets
213
+ * removed the child node will 'inherit' the unique hint alias
214
+ * of the scan.
215
+ */
216
+ char *ybInheritedHintAlias;
217
+
218
+ /* YB: Is this a join that was referenced in a leading join hint? */
219
+ bool ybIsHinted;
220
+
221
+ /* YB: Is this node forced using a UID? */
222
+ bool ybHasHintedUid;
223
+ } Plan;
224
+
225
+ /* ----------------
226
+ * these are defined to avoid confusion problems with "left"
227
+ * and "right" and "inner" and "outer". The convention is that
228
+ * the "left" plan is the "outer" plan and the "right" plan is
229
+ * the inner plan, but these make the code more readable.
230
+ * ----------------
231
+ */
232
+ #define innerPlan(node) (((Plan *)(node))->righttree)
233
+ #define outerPlan(node) (((Plan *)(node))->lefttree)
234
+
235
+
236
+ /* ----------------
237
+ * Result node -
238
+ * If no outer plan, evaluate a variable-free targetlist.
239
+ * If outer plan, return tuples from outer plan (after a level of
240
+ * projection as shown by targetlist).
241
+ *
242
+ * If resconstantqual isn't NULL, it represents a one-time qualification
243
+ * test (i.e., one that doesn't depend on any variables from the outer plan,
244
+ * so needs to be evaluated only once).
245
+ * ----------------
246
+ */
247
+ typedef struct Result
248
+ {
249
+ Plan plan;
250
+ Node *resconstantqual;
251
+ } Result;
252
+
253
+ /* ----------------
254
+ * ProjectSet node -
255
+ * Apply a projection that includes set-returning functions to the
256
+ * output tuples of the outer plan.
257
+ * ----------------
258
+ */
259
+ typedef struct ProjectSet
260
+ {
261
+ Plan plan;
262
+ } ProjectSet;
263
+
264
+ /*
265
+ * YB: An enum whose values describe the type of entity that may be excluded
266
+ * from bookkeeping operations performed by an UPDATE or an INSERT ON CONFLICT
267
+ * DO UPDATE query.
268
+ */
269
+ typedef enum
270
+ {
271
+ SKIP_PRIMARY_KEY,
272
+ SKIP_SECONDARY_INDEX,
273
+ SKIP_REFERENCING_FKEY,
274
+ SKIP_REFERENCED_FKEY,
275
+ } YbSkippableEntityType;
276
+
277
+ /*
278
+ * YbSkippableEntities is a collection of skip lists. Each skip list contains
279
+ * entities of a specific type (YbSkippableEntityType). The elements of the skip
280
+ * lists can be excluded from bookkeeping operations when being updated - for
281
+ * example entities in the index_list need not be updated, constraints in the
282
+ * ref*_fkey_list(s) need not be checked and so on).
283
+ */
284
+ typedef struct
285
+ {
286
+ NodeTag type;
287
+
288
+ /* A list of indexes whose update can be skipped */
289
+ List *index_list;
290
+
291
+ /*
292
+ * A list of skippable foreign key relationships where the relation under
293
+ * consideration is the referencing relation.
294
+ */
295
+ List *referencing_fkey_list;
296
+
297
+ /*
298
+ * A list of skippable foreign key relationships where the relation under
299
+ * consideration is the referenced relation.
300
+ *
301
+ * NOTE - The disambiugation between referencing and referenced foreign keys
302
+ * relationships is important in the context of self-referential foreign key
303
+ * constraints where one side of the relationship may be skippable, and the
304
+ * other side may not be.
305
+ */
306
+ List *referenced_fkey_list;
307
+ } YbSkippableEntities;
308
+
309
+ /*
310
+ * YbUpdateAffectedEntities holds planning time computation of entities (index,
311
+ * constraints, etc) that maybe affected by a ModifyTable query (currently used
312
+ * by only UPDATE or an INSERT ON CONFLICT DO UPDATE queries).
313
+ * Information held in this structure includes a list of columns that may be
314
+ * modified by the query, a list of entities that reference these columns, and
315
+ * the mapping between them.
316
+ */
317
+ typedef struct YbUpdateAffectedEntities
318
+ {
319
+ NodeTag type;
320
+ /*
321
+ * Identifying information about a list of entities that may be impacted by
322
+ * the current query.
323
+ */
324
+ struct YbUpdateEntity
325
+ {
326
+ Oid oid; /* OID of the entity that might need an update */
327
+ YbSkippableEntityType etype; /* What type of entity is it? */
328
+ } *entity_list;
329
+
330
+ /*
331
+ * YbUpdateColInfo holds information about columns that may be modified as
332
+ * part of an UPDATE or an INSERT ON CONFLICT DO UPDATE query.
333
+ * This includes -
334
+ * 1. The attribute number of the column
335
+ * 2. A list of entities that reference the column
336
+ *
337
+ * An entity is said to reference a column in a tuple if modification of the
338
+ * column in the tuple could result in a housekeeping operation to be
339
+ * performed on the entity. Examples include indexes and constraints.
340
+ * Modification of one of the columns in the index will cause an index
341
+ * update operation. Similarly, modification of a column that has a foreign
342
+ * key constraint on it will trigger a referential integrity check.
343
+ */
344
+ struct YbUpdateColInfo
345
+ {
346
+ /*
347
+ * The attribute number of the column offset by
348
+ *'YBFirstLowInvalidAttributeNumber' or 'FirstLowInvalidHeapAttributeNumber'
349
+ * The offset makes the attribute number non-negative, allowing direct
350
+ * interfacing with bitmapsets.
351
+ */
352
+ AttrNumber attnum;
353
+
354
+ /*
355
+ * A list of entities that reference the column.
356
+ * Entities are identified by their index in the entity_list.
357
+ */
358
+ List *entity_refs;
359
+ } *col_info_list;
360
+
361
+ /*
362
+ * A matrix that facilitates optimizing the number of columns to be compared
363
+ * to decide if an entity is affected by the query. The columns of the
364
+ * matrix represent the entities under consideration, the rows of the matrix
365
+ * represent the columns/fields in the relation affected by the query.
366
+ * A working copy of this matrix is made for each tuple that is updated at
367
+ * execution time.
368
+ */
369
+ YbBitMatrix matrix;
370
+ } YbUpdateAffectedEntities;
371
+
372
+ #define YB_UPDATE_AFFECTED_ENTITIES_NUM_FIELDS(state) \
373
+ YbBitMatrixNumRows(&state->matrix)
374
+ #define YB_UPDATE_AFFECTED_ENTITIES_NUM_ENTITIES(state) \
375
+ YbBitMatrixNumCols(&state->matrix)
376
+
377
+ /* ----------------
378
+ * ModifyTable node -
379
+ * Apply rows produced by outer plan to result table(s),
380
+ * by inserting, updating, or deleting.
381
+ *
382
+ * If the originally named target table is a partitioned table or inheritance
383
+ * tree, both nominalRelation and rootRelation contain the RT index of the
384
+ * partition root or appendrel RTE, which is not otherwise mentioned in the
385
+ * plan. Otherwise rootRelation is zero. However, nominalRelation will
386
+ * always be set, as it's the rel that EXPLAIN should claim is the
387
+ * INSERT/UPDATE/DELETE/MERGE target.
388
+ *
389
+ * Note that rowMarks and epqParam are presumed to be valid for all the
390
+ * table(s); they can't contain any info that varies across tables.
391
+ * ----------------
392
+ */
393
+ typedef struct ModifyTable
394
+ {
395
+ Plan plan;
396
+ CmdType operation; /* INSERT, UPDATE, DELETE, or MERGE */
397
+ bool canSetTag; /* do we set the command tag/es_processed? */
398
+ Index nominalRelation; /* Parent RT index for use of EXPLAIN */
399
+ Index rootRelation; /* Root RT index, if partitioned/inherited */
400
+ bool partColsUpdated; /* some part key in hierarchy updated? */
401
+ List *resultRelations; /* integer list of RT indexes */
402
+ List *updateColnosLists; /* per-target-table update_colnos lists */
403
+ List *withCheckOptionLists; /* per-target-table WCO lists */
404
+ List *returningLists; /* per-target-table RETURNING tlists */
405
+ List *fdwPrivLists; /* per-target-table FDW private data lists */
406
+ Bitmapset *fdwDirectModifyPlans; /* indices of FDW DM plans */
407
+ List *rowMarks; /* PlanRowMarks (non-locking only) */
408
+ int epqParam; /* ID of Param for EvalPlanQual re-eval */
409
+ OnConflictAction onConflictAction; /* ON CONFLICT action */
410
+ List *arbiterIndexes; /* List of ON CONFLICT arbiter index OIDs */
411
+ List *onConflictSet; /* INSERT ON CONFLICT DO UPDATE targetlist */
412
+ List *onConflictCols; /* target column numbers for onConflictSet */
413
+ Node *onConflictWhere; /* WHERE for ON CONFLICT UPDATE */
414
+ Index exclRelRTI; /* RTI of the EXCLUDED pseudo relation */
415
+ List *exclRelTlist; /* tlist of the EXCLUDED pseudo relation */
416
+ List *mergeActionLists; /* per-target-table lists of actions for
417
+ * MERGE */
418
+
419
+ /* YB */
420
+ List *ybPushdownTlist; /* tlist for the pushdown SET expressions */
421
+ List *ybReturningColumns; /* columns to fetch from DocDB */
422
+ List *ybColumnRefs; /* colrefs to evaluate pushdown expressions */
423
+ bool no_row_trigger; /* planner has checked no triggers apply */
424
+ /*
425
+ * YB: A collection of entities that are impacted by the ModifyTable query,
426
+ * and their relationship to the columns that are modified by the query.
427
+ * This is currently used only by UPDATE and INSERT ON CONFLICT DO UPDATE
428
+ * queries. The contents of this struct are computed at planning time and
429
+ * remain immutable for the lifetime of the plan.
430
+ */
431
+ YbUpdateAffectedEntities *yb_update_affected_entities;
432
+ /*
433
+ * YB: A collection of entity OIDs (grouped by type) for which it is known
434
+ * at planning time that bookkeeping updates can be skipped. This is
435
+ * currently used only by UPDATE and INSERT ON CONFLICT DO UPDATE queries.
436
+ * The entities in this struct are mutually exclusive to the entities in
437
+ * yb_update_affected_entities.
438
+ */
439
+ YbSkippableEntities *yb_skip_entities;
440
+ } ModifyTable;
441
+
442
+ struct PartitionPruneInfo; /* forward reference to struct below */
443
+
444
+ /* ----------------
445
+ * Append node -
446
+ * Generate the concatenation of the results of sub-plans.
447
+ * ----------------
448
+ */
449
+ typedef struct Append
450
+ {
451
+ Plan plan;
452
+ Bitmapset *apprelids; /* RTIs of appendrel(s) formed by this node */
453
+ List *appendplans;
454
+ int nasyncplans; /* # of asynchronous plans */
455
+
456
+ /*
457
+ * All 'appendplans' preceding this index are non-partial plans. All
458
+ * 'appendplans' from this index onwards are partial plans.
459
+ */
460
+ int first_partial_plan;
461
+
462
+ /* Info for run-time subplan pruning; NULL if we're not doing that */
463
+ struct PartitionPruneInfo *part_prune_info;
464
+ } Append;
465
+
466
+ /* ----------------
467
+ * MergeAppend node -
468
+ * Merge the results of pre-sorted sub-plans to preserve the ordering.
469
+ * ----------------
470
+ */
471
+ typedef struct MergeAppend
472
+ {
473
+ Plan plan;
474
+ Bitmapset *apprelids; /* RTIs of appendrel(s) formed by this node */
475
+ List *mergeplans;
476
+ /* these fields are just like the sort-key info in struct Sort: */
477
+ int numCols; /* number of sort-key columns */
478
+ AttrNumber *sortColIdx; /* their indexes in the target list */
479
+ Oid *sortOperators; /* OIDs of operators to sort them by */
480
+ Oid *collations; /* OIDs of collations */
481
+ bool *nullsFirst; /* NULLS FIRST/LAST directions */
482
+ /* Info for run-time subplan pruning; NULL if we're not doing that */
483
+ struct PartitionPruneInfo *part_prune_info;
484
+ } MergeAppend;
485
+
486
+ /* ----------------
487
+ * RecursiveUnion node -
488
+ * Generate a recursive union of two subplans.
489
+ *
490
+ * The "outer" subplan is always the non-recursive term, and the "inner"
491
+ * subplan is the recursive term.
492
+ * ----------------
493
+ */
494
+ typedef struct RecursiveUnion
495
+ {
496
+ Plan plan;
497
+ int wtParam; /* ID of Param representing work table */
498
+ /* Remaining fields are zero/null in UNION ALL case */
499
+ int numCols; /* number of columns to check for
500
+ * duplicate-ness */
501
+ AttrNumber *dupColIdx; /* their indexes in the target list */
502
+ Oid *dupOperators; /* equality operators to compare with */
503
+ Oid *dupCollations;
504
+ long numGroups; /* estimated number of groups in input */
505
+ } RecursiveUnion;
506
+
507
+ /* ----------------
508
+ * BitmapAnd node -
509
+ * Generate the intersection of the results of sub-plans.
510
+ *
511
+ * The subplans must be of types that yield tuple bitmaps. The targetlist
512
+ * and qual fields of the plan are unused and are always NIL.
513
+ * ----------------
514
+ */
515
+ typedef struct BitmapAnd
516
+ {
517
+ Plan plan;
518
+ List *bitmapplans;
519
+ } BitmapAnd;
520
+
521
+ /* ----------------
522
+ * BitmapOr node -
523
+ * Generate the union of the results of sub-plans.
524
+ *
525
+ * The subplans must be of types that yield tuple bitmaps. The targetlist
526
+ * and qual fields of the plan are unused and are always NIL.
527
+ * ----------------
528
+ */
529
+ typedef struct BitmapOr
530
+ {
531
+ Plan plan;
532
+ bool isshared;
533
+ List *bitmapplans;
534
+ } BitmapOr;
535
+
536
+ /*
537
+ * ==========
538
+ * Scan nodes
539
+ * ==========
540
+ */
541
+ typedef struct Scan
542
+ {
543
+ Plan plan;
544
+ Index scanrelid; /* relid is index into the range table */
545
+
546
+ /* YB */
547
+ char *ybScannedObjectName;
548
+ } Scan;
549
+
550
+ /* ----------------
551
+ * sequential scan node
552
+ * ----------------
553
+ */
554
+ typedef struct SeqScan
555
+ {
556
+ Scan scan;
557
+ } SeqScan;
558
+
559
+ /* ----------------
560
+ * YB table sequential scan node
561
+ * ----------------
562
+ */
563
+
564
+ typedef struct YbPushdownExprs
565
+ {
566
+ List *quals;
567
+ List *colrefs;
568
+ } YbPushdownExprs;
569
+
570
+ typedef struct YbSeqScan
571
+ {
572
+ Scan scan;
573
+ YbPushdownExprs yb_pushdown;
574
+ YbPlanInfo yb_plan_info;
575
+ } YbSeqScan;
576
+
577
+ /* ----------------
578
+ * table sample scan node
579
+ * ----------------
580
+ */
581
+ typedef struct SampleScan
582
+ {
583
+ Scan scan;
584
+ /* use struct pointer to avoid including parsenodes.h here */
585
+ struct TableSampleClause *tablesample;
586
+ } SampleScan;
587
+
588
+ /* ----------------
589
+ * index scan node
590
+ *
591
+ * indexqualorig is an implicitly-ANDed list of index qual expressions, each
592
+ * in the same form it appeared in the query WHERE condition. Each should
593
+ * be of the form (indexkey OP comparisonval) or (comparisonval OP indexkey).
594
+ * The indexkey is a Var or expression referencing column(s) of the index's
595
+ * base table. The comparisonval might be any expression, but it won't use
596
+ * any columns of the base table. The expressions are ordered by index
597
+ * column position (but items referencing the same index column can appear
598
+ * in any order). indexqualorig is used at runtime only if we have to recheck
599
+ * a lossy indexqual.
600
+ *
601
+ * indexqual has the same form, but the expressions have been commuted if
602
+ * necessary to put the indexkeys on the left, and the indexkeys are replaced
603
+ * by Var nodes identifying the index columns (their varno is INDEX_VAR and
604
+ * their varattno is the index column number).
605
+ *
606
+ * indexorderbyorig is similarly the original form of any ORDER BY expressions
607
+ * that are being implemented by the index, while indexorderby is modified to
608
+ * have index column Vars on the left-hand side. Here, multiple expressions
609
+ * must appear in exactly the ORDER BY order, and this is not necessarily the
610
+ * index column order. Only the expressions are provided, not the auxiliary
611
+ * sort-order information from the ORDER BY SortGroupClauses; it's assumed
612
+ * that the sort ordering is fully determinable from the top-level operators.
613
+ * indexorderbyorig is used at runtime to recheck the ordering, if the index
614
+ * cannot calculate an accurate ordering. It is also needed for EXPLAIN.
615
+ *
616
+ * indexorderbyops is a list of the OIDs of the operators used to sort the
617
+ * ORDER BY expressions. This is used together with indexorderbyorig to
618
+ * recheck ordering at run time. (Note that indexorderby, indexorderbyorig,
619
+ * and indexorderbyops are used for amcanorderbyop cases, not amcanorder.)
620
+ *
621
+ * indexorderdir specifies the scan ordering, for indexscans on amcanorder
622
+ * indexes (for other indexes it should be "don't care").
623
+ * ----------------
624
+ */
625
+ typedef struct IndexScan
626
+ {
627
+ Scan scan;
628
+ Oid indexid; /* OID of index to scan */
629
+ List *indexqual; /* list of index quals (usually OpExprs) */
630
+ List *indexqualorig; /* the same in original form */
631
+ List *indexorderby; /* list of index ORDER BY exprs */
632
+ List *indexorderbyorig; /* the same in original form */
633
+ List *indexorderbyops; /* OIDs of sort ops for ORDER BY exprs */
634
+ ScanDirection indexorderdir; /* forward or backward or don't care */
635
+
636
+ /* YB */
637
+ List *indextlist; /* TargetEntry list describing index's cols */
638
+ YbPushdownExprs yb_idx_pushdown;
639
+ YbPushdownExprs yb_rel_pushdown;
640
+ YbPlanInfo yb_plan_info;
641
+ int yb_distinct_prefixlen; /* distinct index scan prefix */
642
+ YbMergeScanInfo *yb_merge_scan_info;
643
+ YbLockMechanism yb_lock_mechanism; /* locks possible as part of the scan */
644
+ } IndexScan;
645
+
646
+ /* ----------------
647
+ * index-only scan node
648
+ *
649
+ * IndexOnlyScan is very similar to IndexScan, but it specifies an
650
+ * index-only scan, in which the data comes from the index not the heap.
651
+ * Because of this, *all* Vars in the plan node's targetlist, qual, and
652
+ * index expressions reference index columns and have varno = INDEX_VAR.
653
+ *
654
+ * We could almost use indexqual directly against the index's output tuple
655
+ * when rechecking lossy index operators, but that won't work for quals on
656
+ * index columns that are not retrievable. Hence, recheckqual is needed
657
+ * for rechecks: it expresses the same condition as indexqual, but using
658
+ * only index columns that are retrievable. (We will not generate an
659
+ * index-only scan if this is not possible. An example is that if an
660
+ * index has table column "x" in a retrievable index column "ind1", plus
661
+ * an expression f(x) in a non-retrievable column "ind2", an indexable
662
+ * query on f(x) will use "ind2" in indexqual and f(ind1) in recheckqual.
663
+ * Without the "ind1" column, an index-only scan would be disallowed.)
664
+ *
665
+ * We don't currently need a recheckable equivalent of indexorderby,
666
+ * because we don't support lossy operators in index ORDER BY.
667
+ *
668
+ * To help EXPLAIN interpret the index Vars for display, we provide
669
+ * indextlist, which represents the contents of the index as a targetlist
670
+ * with one TLE per index column. Vars appearing in this list reference
671
+ * the base table, and this is the only field in the plan node that may
672
+ * contain such Vars. Also, for the convenience of setrefs.c, TLEs in
673
+ * indextlist are marked as resjunk if they correspond to columns that
674
+ * the index AM cannot reconstruct.
675
+ * ----------------
676
+ */
677
+ typedef struct IndexOnlyScan
678
+ {
679
+ Scan scan;
680
+ Oid indexid; /* OID of index to scan */
681
+ List *indexqual; /* list of index quals (usually OpExprs) */
682
+ List *recheckqual; /* index quals in recheckable form */
683
+ List *indexorderby; /* list of index ORDER BY exprs */
684
+ List *indextlist; /* TargetEntry list describing index's cols */
685
+ ScanDirection indexorderdir; /* forward or backward or don't care */
686
+
687
+ /* YB */
688
+ YbPushdownExprs yb_pushdown;
689
+ YbPlanInfo yb_plan_info;
690
+ int yb_distinct_prefixlen; /* distinct index scan prefix */
691
+ YbMergeScanInfo *yb_merge_scan_info;
692
+ int yb_num_decoded_pk_cols; /* number of decoded pk columns in index */
693
+ } IndexOnlyScan;
694
+
695
+ /* ----------------
696
+ * bitmap index scan node
697
+ *
698
+ * BitmapIndexScan delivers a bitmap of potential tuple locations;
699
+ * it does not access the heap itself. The bitmap is used by an
700
+ * ancestor BitmapHeapScan or YbBitmapTableScan node, possibly after
701
+ * passing through intermediate BitmapAnd and/or BitmapOr nodes to
702
+ * combine it with the results of other BitmapIndexScans.
703
+ *
704
+ * The fields have the same meanings as for IndexScan, except we don't
705
+ * store a direction flag because direction is uninteresting.
706
+ *
707
+ * In a BitmapIndexScan plan node, the targetlist and qual fields are
708
+ * not used and are always NIL. The indexqualorig field is unused at
709
+ * run time too, but is saved for the benefit of EXPLAIN.
710
+ * ----------------
711
+ */
712
+ typedef struct BitmapIndexScan
713
+ {
714
+ Scan scan;
715
+ Oid indexid; /* OID of index to scan */
716
+ bool isshared; /* Create shared bitmap if set */
717
+ List *indexqual; /* list of index quals (OpExprs) */
718
+ List *indexqualorig; /* the same in original form */
719
+ } BitmapIndexScan;
720
+
721
+ /* ----------------
722
+ * yb bitmap index scan node
723
+ *
724
+ * BitmapIndexScan delivers a bitmap of potential tuple locations;
725
+ * it does not access the heap itself. The bitmap is used by an
726
+ * ancestor BitmapHeapScan or YbBitmapTableScan node, possibly after
727
+ * passing through intermediate BitmapAnd and/or BitmapOr nodes to
728
+ * combine it with the results of other BitmapIndexScans.
729
+ *
730
+ * The fields have the same meanings as for IndexScan, except we don't
731
+ * store a direction flag because direction is uninteresting.
732
+ *
733
+ * In a BitmapIndexScan plan node, the targetlist and qual fields are
734
+ * not used and are always NIL. The indexqualorig field is unused at
735
+ * run time too, but is saved for the benefit of EXPLAIN.
736
+ * ----------------
737
+ */
738
+ typedef struct YbBitmapIndexScan
739
+ {
740
+ Scan scan;
741
+ Oid indexid; /* OID of index to scan */
742
+ bool isshared; /* Create shared bitmap if set */
743
+ List *indexqual; /* list of index quals (OpExprs) */
744
+ List *indexqualorig; /* the same in original form */
745
+ List *indextlist; /* TargetEntry list describing index's cols */
746
+ YbPushdownExprs yb_idx_pushdown;
747
+ YbPlanInfo yb_plan_info;
748
+ } YbBitmapIndexScan;
749
+
750
+ /* ----------------
751
+ * bitmap sequential scan node
752
+ *
753
+ * This needs a copy of the qual conditions being used by the input index
754
+ * scans because there are various cases where we need to recheck the quals;
755
+ * for example, when the bitmap is lossy about the specific rows on a page
756
+ * that meet the index condition.
757
+ * ----------------
758
+ */
759
+ typedef struct BitmapHeapScan
760
+ {
761
+ Scan scan;
762
+ List *bitmapqualorig; /* index quals, in standard expr form */
763
+ } BitmapHeapScan;
764
+
765
+ /* ----------------
766
+ * yb bitmap sequential scan node
767
+ *
768
+ * This needs a copy of the qual conditions being used by the input index
769
+ * scans because there are various cases where we need to recheck the quals;
770
+ * for example, when the bitmap is lossy about the specific rows on a page
771
+ * that meet the index condition.
772
+ * ----------------
773
+ */
774
+ typedef struct YbBitmapTableScan
775
+ {
776
+ Scan scan;
777
+ YbPushdownExprs rel_pushdown; /* any pushable quals that aren't already
778
+ * guaranteed by the Bitmap Index Scan
779
+ * nodes. */
780
+ YbPushdownExprs recheck_pushdown; /* pushable index quals */
781
+ List *recheck_local_quals; /* non-pushable index quals */
782
+ YbPushdownExprs fallback_pushdown; /* all pushable quals */
783
+ List *fallback_local_quals; /* all non-pushable quals */
784
+ YbPlanInfo yb_plan_info;
785
+ } YbBitmapTableScan;
786
+
787
+ /* ----------------
788
+ * tid scan node
789
+ *
790
+ * tidquals is an implicitly OR'ed list of qual expressions of the form
791
+ * "CTID = pseudoconstant", or "CTID = ANY(pseudoconstant_array)",
792
+ * or a CurrentOfExpr for the relation.
793
+ * ----------------
794
+ */
795
+ typedef struct TidScan
796
+ {
797
+ Scan scan;
798
+ YbPushdownExprs yb_rel_pushdown;
799
+ List *tidquals; /* qual(s) involving CTID = something */
800
+ } TidScan;
801
+
802
+ /* ----------------
803
+ * tid range scan node
804
+ *
805
+ * tidrangequals is an implicitly AND'ed list of qual expressions of the form
806
+ * "CTID relop pseudoconstant", where relop is one of >,>=,<,<=.
807
+ * ----------------
808
+ */
809
+ typedef struct TidRangeScan
810
+ {
811
+ Scan scan;
812
+ List *tidrangequals; /* qual(s) involving CTID op something */
813
+ } TidRangeScan;
814
+
815
+ /* ----------------
816
+ * subquery scan node
817
+ *
818
+ * SubqueryScan is for scanning the output of a sub-query in the range table.
819
+ * We often need an extra plan node above the sub-query's plan to perform
820
+ * expression evaluations (which we can't push into the sub-query without
821
+ * risking changing its semantics). Although we are not scanning a physical
822
+ * relation, we make this a descendant of Scan anyway for code-sharing
823
+ * purposes.
824
+ *
825
+ * SubqueryScanStatus caches the trivial_subqueryscan property of the node.
826
+ * SUBQUERY_SCAN_UNKNOWN means not yet determined. This is only used during
827
+ * planning.
828
+ *
829
+ * Note: we store the sub-plan in the type-specific subplan field, not in
830
+ * the generic lefttree field as you might expect. This is because we do
831
+ * not want plan-tree-traversal routines to recurse into the subplan without
832
+ * knowing that they are changing Query contexts.
833
+ * ----------------
834
+ */
835
+ typedef enum SubqueryScanStatus
836
+ {
837
+ SUBQUERY_SCAN_UNKNOWN,
838
+ SUBQUERY_SCAN_TRIVIAL,
839
+ SUBQUERY_SCAN_NONTRIVIAL
840
+ } SubqueryScanStatus;
841
+
842
+ typedef struct SubqueryScan
843
+ {
844
+ Scan scan;
845
+ Plan *subplan;
846
+ SubqueryScanStatus scanstatus;
847
+ } SubqueryScan;
848
+
849
+ /* ----------------
850
+ * FunctionScan node
851
+ * ----------------
852
+ */
853
+ typedef struct FunctionScan
854
+ {
855
+ Scan scan;
856
+ List *functions; /* list of RangeTblFunction nodes */
857
+ bool funcordinality; /* WITH ORDINALITY */
858
+ } FunctionScan;
859
+
860
+ /* ----------------
861
+ * ValuesScan node
862
+ * ----------------
863
+ */
864
+ typedef struct ValuesScan
865
+ {
866
+ Scan scan;
867
+ List *values_lists; /* list of expression lists */
868
+ } ValuesScan;
869
+
870
+ /* ----------------
871
+ * TableFunc scan node
872
+ * ----------------
873
+ */
874
+ typedef struct TableFuncScan
875
+ {
876
+ Scan scan;
877
+ TableFunc *tablefunc; /* table function node */
878
+ } TableFuncScan;
879
+
880
+ /* ----------------
881
+ * CteScan node
882
+ * ----------------
883
+ */
884
+ typedef struct CteScan
885
+ {
886
+ Scan scan;
887
+ int ctePlanId; /* ID of init SubPlan for CTE */
888
+ int cteParam; /* ID of Param representing CTE output */
889
+ } CteScan;
890
+
891
+ /* ----------------
892
+ * NamedTuplestoreScan node
893
+ * ----------------
894
+ */
895
+ typedef struct NamedTuplestoreScan
896
+ {
897
+ Scan scan;
898
+ char *enrname; /* Name given to Ephemeral Named Relation */
899
+ } NamedTuplestoreScan;
900
+
901
+ /* ----------------
902
+ * WorkTableScan node
903
+ * ----------------
904
+ */
905
+ typedef struct WorkTableScan
906
+ {
907
+ Scan scan;
908
+ int wtParam; /* ID of Param representing work table */
909
+ } WorkTableScan;
910
+
911
+ /* ----------------
912
+ * ForeignScan node
913
+ *
914
+ * fdw_exprs and fdw_private are both under the control of the foreign-data
915
+ * wrapper, but fdw_exprs is presumed to contain expression trees and will
916
+ * be post-processed accordingly by the planner; fdw_private won't be.
917
+ * Note that everything in both lists must be copiable by copyObject().
918
+ * One way to store an arbitrary blob of bytes is to represent it as a bytea
919
+ * Const. Usually, though, you'll be better off choosing a representation
920
+ * that can be dumped usefully by nodeToString().
921
+ *
922
+ * fdw_scan_tlist is a targetlist describing the contents of the scan tuple
923
+ * returned by the FDW; it can be NIL if the scan tuple matches the declared
924
+ * rowtype of the foreign table, which is the normal case for a simple foreign
925
+ * table scan. (If the plan node represents a foreign join, fdw_scan_tlist
926
+ * is required since there is no rowtype available from the system catalogs.)
927
+ * When fdw_scan_tlist is provided, Vars in the node's tlist and quals must
928
+ * have varno INDEX_VAR, and their varattnos correspond to resnos in the
929
+ * fdw_scan_tlist (which are also column numbers in the actual scan tuple).
930
+ * fdw_scan_tlist is never actually executed; it just holds expression trees
931
+ * describing what is in the scan tuple's columns.
932
+ *
933
+ * fdw_recheck_quals should contain any quals which the core system passed to
934
+ * the FDW but which were not added to scan.plan.qual; that is, it should
935
+ * contain the quals being checked remotely. This is needed for correct
936
+ * behavior during EvalPlanQual rechecks.
937
+ *
938
+ * When the plan node represents a foreign join, scan.scanrelid is zero and
939
+ * fs_relids must be consulted to identify the join relation. (fs_relids
940
+ * is valid for simple scans as well, but will always match scan.scanrelid.)
941
+ *
942
+ * If the FDW's PlanDirectModify() callback decides to repurpose a ForeignScan
943
+ * node to perform the UPDATE or DELETE operation directly in the remote
944
+ * server, it sets 'operation' and 'resultRelation' to identify the operation
945
+ * type and target relation. Note that these fields are only set if the
946
+ * modification is performed *fully* remotely; otherwise, the modification is
947
+ * driven by a local ModifyTable node and 'operation' is left to CMD_SELECT.
948
+ * ----------------
949
+ */
950
+ typedef struct ForeignScan
951
+ {
952
+ Scan scan;
953
+ CmdType operation; /* SELECT/INSERT/UPDATE/DELETE */
954
+ Index resultRelation; /* direct modification target's RT index */
955
+ Oid fs_server; /* OID of foreign server */
956
+ List *fdw_exprs; /* expressions that FDW may evaluate */
957
+ List *fdw_private; /* private data for FDW */
958
+ List *fdw_scan_tlist; /* optional tlist describing scan tuple */
959
+ List *fdw_recheck_quals; /* original quals not in scan.plan.qual */
960
+ Bitmapset *fs_relids; /* RTIs generated by this scan */
961
+ bool fsSystemCol; /* true if any "system column" is needed */
962
+ } ForeignScan;
963
+
964
+ /* ----------------
965
+ * CustomScan node
966
+ *
967
+ * The comments for ForeignScan's fdw_exprs, fdw_private, fdw_scan_tlist,
968
+ * and fs_relids fields apply equally to CustomScan's custom_exprs,
969
+ * custom_private, custom_scan_tlist, and custom_relids fields. The
970
+ * convention of setting scan.scanrelid to zero for joins applies as well.
971
+ *
972
+ * Note that since Plan trees can be copied, custom scan providers *must*
973
+ * fit all plan data they need into those fields; embedding CustomScan in
974
+ * a larger struct will not work.
975
+ * ----------------
976
+ */
977
+ struct CustomScanMethods;
978
+
979
+ typedef struct CustomScan
980
+ {
981
+ Scan scan;
982
+ uint32 flags; /* mask of CUSTOMPATH_* flags, see
983
+ * nodes/extensible.h */
984
+ List *custom_plans; /* list of Plan nodes, if any */
985
+ List *custom_exprs; /* expressions that custom code may evaluate */
986
+ List *custom_private; /* private data for custom code */
987
+ List *custom_scan_tlist; /* optional tlist describing scan tuple */
988
+ Bitmapset *custom_relids; /* RTIs generated by this scan */
989
+ const struct CustomScanMethods *methods;
990
+ } CustomScan;
991
+
992
+ /*
993
+ * ==========
994
+ * Join nodes
995
+ * ==========
996
+ */
997
+
998
+ /* ----------------
999
+ * Join node
1000
+ *
1001
+ * jointype: rule for joining tuples from left and right subtrees
1002
+ * inner_unique each outer tuple can match to no more than one inner tuple
1003
+ * joinqual: qual conditions that came from JOIN/ON or JOIN/USING
1004
+ * (plan.qual contains conditions that came from WHERE)
1005
+ *
1006
+ * When jointype is INNER, joinqual and plan.qual are semantically
1007
+ * interchangeable. For OUTER jointypes, the two are *not* interchangeable;
1008
+ * only joinqual is used to determine whether a match has been found for
1009
+ * the purpose of deciding whether to generate null-extended tuples.
1010
+ * (But plan.qual is still applied before actually returning a tuple.)
1011
+ * For an outer join, only joinquals are allowed to be used as the merge
1012
+ * or hash condition of a merge or hash join.
1013
+ *
1014
+ * inner_unique is set if the joinquals are such that no more than one inner
1015
+ * tuple could match any given outer tuple. This allows the executor to
1016
+ * skip searching for additional matches. (This must be provable from just
1017
+ * the joinquals, ignoring plan.qual, due to where the executor tests it.)
1018
+ * ----------------
1019
+ */
1020
+ typedef struct Join
1021
+ {
1022
+ Plan plan;
1023
+ JoinType jointype;
1024
+ bool inner_unique;
1025
+ List *joinqual; /* JOIN quals (in addition to plan.qual) */
1026
+ } Join;
1027
+
1028
+ /* ----------------
1029
+ * nest loop join node
1030
+ *
1031
+ * The nestParams list identifies any executor Params that must be passed
1032
+ * into execution of the inner subplan carrying values from the current row
1033
+ * of the outer subplan. Currently we restrict these values to be simple
1034
+ * Vars, but perhaps someday that'd be worth relaxing. (Note: during plan
1035
+ * creation, the paramval can actually be a PlaceHolderVar expression; but it
1036
+ * must be a Var with varno OUTER_VAR by the time it gets to the executor.)
1037
+ * ----------------
1038
+ */
1039
+ typedef struct NestLoop
1040
+ {
1041
+ Join join;
1042
+ List *nestParams; /* list of NestLoopParam nodes */
1043
+ } NestLoop;
1044
+
1045
+ /*
1046
+ * Information to use for each hashable clause in a batched nested loop join.
1047
+ * This is used by the hash batching strategy of BNL.
1048
+ */
1049
+ typedef struct YbBNLHashClauseInfo
1050
+ {
1051
+ Oid hashOp; /*
1052
+ * Operator to hash the outer side of this clause
1053
+ * with. The inner side must be the left input of
1054
+ * this op.
1055
+ */
1056
+ int innerHashAttNo; /* Attno of inner side variable. */
1057
+ Expr *outerParamExpr; /* Outer expression of this clause. */
1058
+ Expr *orig_expr;
1059
+ } YbBNLHashClauseInfo;
1060
+
1061
+ typedef struct YbBatchedNestLoop
1062
+ {
1063
+ NestLoop nl;
1064
+
1065
+ double first_batch_factor;
1066
+ /* Only relevant if we're using the hash batching strategy. */
1067
+
1068
+ /*
1069
+ * Array of information about each
1070
+ * hashable join clause.
1071
+ */
1072
+ YbBNLHashClauseInfo *hashClauseInfos;
1073
+ int num_hashClauseInfos;
1074
+ /* remaining fields are just like the sort-key info in struct Sort */
1075
+ int numSortCols; /* number of sort-key columns */
1076
+ AttrNumber *sortColIdx; /* their indexes in the target list */
1077
+ Oid *sortOperators; /* OIDs of operators to sort them by */
1078
+ Oid *collations; /* OIDs of collations */
1079
+ bool *nullsFirst; /* NULLS FIRST/LAST directions */
1080
+ } YbBatchedNestLoop;
1081
+
1082
+ typedef struct NestLoopParam
1083
+ {
1084
+ NodeTag type;
1085
+ int paramno; /* number of the PARAM_EXEC Param to set */
1086
+ Var *paramval; /* outer-relation Var to assign to Param */
1087
+ int yb_batch_size; /* Batch size of this param. */
1088
+ } NestLoopParam;
1089
+
1090
+ /* ----------------
1091
+ * merge join node
1092
+ *
1093
+ * The expected ordering of each mergeable column is described by a btree
1094
+ * opfamily OID, a collation OID, a direction (BTLessStrategyNumber or
1095
+ * BTGreaterStrategyNumber) and a nulls-first flag. Note that the two sides
1096
+ * of each mergeclause may be of different datatypes, but they are ordered the
1097
+ * same way according to the common opfamily and collation. The operator in
1098
+ * each mergeclause must be an equality operator of the indicated opfamily.
1099
+ * ----------------
1100
+ */
1101
+ typedef struct MergeJoin
1102
+ {
1103
+ Join join;
1104
+ bool skip_mark_restore; /* Can we skip mark/restore calls? */
1105
+ List *mergeclauses; /* mergeclauses as expression trees */
1106
+ /* these are arrays, but have the same length as the mergeclauses list: */
1107
+ Oid *mergeFamilies; /* per-clause OIDs of btree opfamilies */
1108
+ Oid *mergeCollations; /* per-clause OIDs of collations */
1109
+ int *mergeStrategies; /* per-clause ordering (ASC or DESC) */
1110
+ bool *mergeNullsFirst; /* per-clause nulls ordering */
1111
+ } MergeJoin;
1112
+
1113
+ /* ----------------
1114
+ * hash join node
1115
+ * ----------------
1116
+ */
1117
+ typedef struct HashJoin
1118
+ {
1119
+ Join join;
1120
+ List *hashclauses;
1121
+ List *hashoperators;
1122
+ List *hashcollations;
1123
+
1124
+ /*
1125
+ * List of expressions to be hashed for tuples from the outer plan, to
1126
+ * perform lookups in the hashtable over the inner plan.
1127
+ */
1128
+ List *hashkeys;
1129
+ } HashJoin;
1130
+
1131
+ /* ----------------
1132
+ * materialization node
1133
+ * ----------------
1134
+ */
1135
+ typedef struct Material
1136
+ {
1137
+ Plan plan;
1138
+ } Material;
1139
+
1140
+ /* ----------------
1141
+ * memoize node
1142
+ * ----------------
1143
+ */
1144
+ typedef struct Memoize
1145
+ {
1146
+ Plan plan;
1147
+
1148
+ int numKeys; /* size of the two arrays below */
1149
+
1150
+ Oid *hashOperators; /* hash operators for each key */
1151
+ Oid *collations; /* collations for each key */
1152
+ List *param_exprs; /* cache keys in the form of exprs containing
1153
+ * parameters */
1154
+ bool singlerow; /* true if the cache entry should be marked as
1155
+ * complete after we store the first tuple in
1156
+ * it. */
1157
+ bool binary_mode; /* true when cache key should be compared bit
1158
+ * by bit, false when using hash equality ops */
1159
+ uint32 est_entries; /* The maximum number of entries that the
1160
+ * planner expects will fit in the cache, or 0
1161
+ * if unknown */
1162
+ Bitmapset *keyparamids; /* paramids from param_exprs */
1163
+ } Memoize;
1164
+
1165
+ /* ----------------
1166
+ * sort node
1167
+ * ----------------
1168
+ */
1169
+ typedef struct Sort
1170
+ {
1171
+ Plan plan;
1172
+ int numCols; /* number of sort-key columns */
1173
+ AttrNumber *sortColIdx; /* their indexes in the target list */
1174
+ Oid *sortOperators; /* OIDs of operators to sort them by */
1175
+ Oid *collations; /* OIDs of collations */
1176
+ bool *nullsFirst; /* NULLS FIRST/LAST directions */
1177
+ } Sort;
1178
+
1179
+ /* ----------------
1180
+ * incremental sort node
1181
+ * ----------------
1182
+ */
1183
+ typedef struct IncrementalSort
1184
+ {
1185
+ Sort sort;
1186
+ int nPresortedCols; /* number of presorted columns */
1187
+ } IncrementalSort;
1188
+
1189
+ /* ---------------
1190
+ * group node -
1191
+ * Used for queries with GROUP BY (but no aggregates) specified.
1192
+ * The input must be presorted according to the grouping columns.
1193
+ * ---------------
1194
+ */
1195
+ typedef struct Group
1196
+ {
1197
+ Plan plan;
1198
+ int numCols; /* number of grouping columns */
1199
+ AttrNumber *grpColIdx; /* their indexes in the target list */
1200
+ Oid *grpOperators; /* equality operators to compare with */
1201
+ Oid *grpCollations;
1202
+ } Group;
1203
+
1204
+ /* ---------------
1205
+ * aggregate node
1206
+ *
1207
+ * An Agg node implements plain or grouped aggregation. For grouped
1208
+ * aggregation, we can work with presorted input or unsorted input;
1209
+ * the latter strategy uses an internal hashtable.
1210
+ *
1211
+ * Notice the lack of any direct info about the aggregate functions to be
1212
+ * computed. They are found by scanning the node's tlist and quals during
1213
+ * executor startup. (It is possible that there are no aggregate functions;
1214
+ * this could happen if they get optimized away by constant-folding, or if
1215
+ * we are using the Agg node to implement hash-based grouping.)
1216
+ * ---------------
1217
+ */
1218
+ typedef struct Agg
1219
+ {
1220
+ Plan plan;
1221
+ AggStrategy aggstrategy; /* basic strategy, see nodes.h */
1222
+ AggSplit aggsplit; /* agg-splitting mode, see nodes.h */
1223
+ int numCols; /* number of grouping columns */
1224
+ AttrNumber *grpColIdx; /* their indexes in the target list */
1225
+ Oid *grpOperators; /* equality operators to compare with */
1226
+ Oid *grpCollations;
1227
+ long numGroups; /* estimated number of groups in input */
1228
+ uint64 transitionSpace; /* for pass-by-ref transition data */
1229
+ Bitmapset *aggParams; /* IDs of Params used in Aggref inputs */
1230
+ /* Note: planner provides numGroups & aggParams only in HASHED/MIXED case */
1231
+ List *groupingSets; /* grouping sets to use */
1232
+ List *chain; /* chained Agg/Sort nodes */
1233
+ } Agg;
1234
+
1235
+ /* ----------------
1236
+ * window aggregate node
1237
+ * ----------------
1238
+ */
1239
+ typedef struct WindowAgg
1240
+ {
1241
+ Plan plan;
1242
+ Index winref; /* ID referenced by window functions */
1243
+ int partNumCols; /* number of columns in partition clause */
1244
+ AttrNumber *partColIdx; /* their indexes in the target list */
1245
+ Oid *partOperators; /* equality operators for partition columns */
1246
+ Oid *partCollations; /* collations for partition columns */
1247
+ int ordNumCols; /* number of columns in ordering clause */
1248
+ AttrNumber *ordColIdx; /* their indexes in the target list */
1249
+ Oid *ordOperators; /* equality operators for ordering columns */
1250
+ Oid *ordCollations; /* collations for ordering columns */
1251
+ int frameOptions; /* frame_clause options, see WindowDef */
1252
+ Node *startOffset; /* expression for starting bound, if any */
1253
+ Node *endOffset; /* expression for ending bound, if any */
1254
+ List *runCondition; /* qual to help short-circuit execution */
1255
+ List *runConditionOrig; /* runCondition for display in EXPLAIN */
1256
+ /* these fields are used with RANGE offset PRECEDING/FOLLOWING: */
1257
+ Oid startInRangeFunc; /* in_range function for startOffset */
1258
+ Oid endInRangeFunc; /* in_range function for endOffset */
1259
+ Oid inRangeColl; /* collation for in_range tests */
1260
+ bool inRangeAsc; /* use ASC sort order for in_range tests? */
1261
+ bool inRangeNullsFirst; /* nulls sort first for in_range tests? */
1262
+ bool topWindow; /* false for all apart from the WindowAgg
1263
+ * that's closest to the root of the plan */
1264
+ } WindowAgg;
1265
+
1266
+ /* ----------------
1267
+ * unique node
1268
+ * ----------------
1269
+ */
1270
+ typedef struct Unique
1271
+ {
1272
+ Plan plan;
1273
+ int numCols; /* number of columns to check for uniqueness */
1274
+ AttrNumber *uniqColIdx; /* their indexes in the target list */
1275
+ Oid *uniqOperators; /* equality operators to compare with */
1276
+ Oid *uniqCollations; /* collations for equality comparisons */
1277
+ } Unique;
1278
+
1279
+ /* ------------
1280
+ * gather node
1281
+ *
1282
+ * Note: rescan_param is the ID of a PARAM_EXEC parameter slot. That slot
1283
+ * will never actually contain a value, but the Gather node must flag it as
1284
+ * having changed whenever it is rescanned. The child parallel-aware scan
1285
+ * nodes are marked as depending on that parameter, so that the rescan
1286
+ * machinery is aware that their output is likely to change across rescans.
1287
+ * In some cases we don't need a rescan Param, so rescan_param is set to -1.
1288
+ * ------------
1289
+ */
1290
+ typedef struct Gather
1291
+ {
1292
+ Plan plan;
1293
+ int num_workers; /* planned number of worker processes */
1294
+ int rescan_param; /* ID of Param that signals a rescan, or -1 */
1295
+ bool single_copy; /* don't execute plan more than once */
1296
+ bool invisible; /* suppress EXPLAIN display (for testing)? */
1297
+ Bitmapset *initParam; /* param id's of initplans which are referred
1298
+ * at gather or one of it's child node */
1299
+ } Gather;
1300
+
1301
+ /* ------------
1302
+ * gather merge node
1303
+ * ------------
1304
+ */
1305
+ typedef struct GatherMerge
1306
+ {
1307
+ Plan plan;
1308
+ int num_workers; /* planned number of worker processes */
1309
+ int rescan_param; /* ID of Param that signals a rescan, or -1 */
1310
+ /* remaining fields are just like the sort-key info in struct Sort */
1311
+ int numCols; /* number of sort-key columns */
1312
+ AttrNumber *sortColIdx; /* their indexes in the target list */
1313
+ Oid *sortOperators; /* OIDs of operators to sort them by */
1314
+ Oid *collations; /* OIDs of collations */
1315
+ bool *nullsFirst; /* NULLS FIRST/LAST directions */
1316
+ Bitmapset *initParam; /* param id's of initplans which are referred
1317
+ * at gather merge or one of it's child node */
1318
+ } GatherMerge;
1319
+
1320
+ /* ----------------
1321
+ * hash build node
1322
+ *
1323
+ * If the executor is supposed to try to apply skew join optimization, then
1324
+ * skewTable/skewColumn/skewInherit identify the outer relation's join key
1325
+ * column, from which the relevant MCV statistics can be fetched.
1326
+ * ----------------
1327
+ */
1328
+ typedef struct Hash
1329
+ {
1330
+ Plan plan;
1331
+
1332
+ /*
1333
+ * List of expressions to be hashed for tuples from Hash's outer plan,
1334
+ * needed to put them into the hashtable.
1335
+ */
1336
+ List *hashkeys; /* hash keys for the hashjoin condition */
1337
+ Oid skewTable; /* outer join key's table OID, or InvalidOid */
1338
+ AttrNumber skewColumn; /* outer join key's column #, or zero */
1339
+ bool skewInherit; /* is outer join rel an inheritance tree? */
1340
+ /* all other info is in the parent HashJoin node */
1341
+ Cardinality rows_total; /* estimate total rows if parallel_aware */
1342
+
1343
+ /* YB specific fields */
1344
+ char *ybSkewTableName;
1345
+ } Hash;
1346
+
1347
+ /* ----------------
1348
+ * setop node
1349
+ * ----------------
1350
+ */
1351
+ typedef struct SetOp
1352
+ {
1353
+ Plan plan;
1354
+ SetOpCmd cmd; /* what to do, see nodes.h */
1355
+ SetOpStrategy strategy; /* how to do it, see nodes.h */
1356
+ int numCols; /* number of columns to check for
1357
+ * duplicate-ness */
1358
+ AttrNumber *dupColIdx; /* their indexes in the target list */
1359
+ Oid *dupOperators; /* equality operators to compare with */
1360
+ Oid *dupCollations;
1361
+ AttrNumber flagColIdx; /* where is the flag column, if any */
1362
+ int firstFlag; /* flag value for first input relation */
1363
+ long numGroups; /* estimated number of groups in input */
1364
+ } SetOp;
1365
+
1366
+ /* ----------------
1367
+ * lock-rows node
1368
+ *
1369
+ * rowMarks identifies the rels to be locked by this node; it should be
1370
+ * a subset of the rowMarks listed in the top-level PlannedStmt.
1371
+ * epqParam is a Param that all scan nodes below this one must depend on.
1372
+ * It is used to force re-evaluation of the plan during EvalPlanQual.
1373
+ * ----------------
1374
+ */
1375
+ typedef struct LockRows
1376
+ {
1377
+ Plan plan;
1378
+ List *rowMarks; /* a list of PlanRowMark's */
1379
+ int epqParam; /* ID of Param for EvalPlanQual re-eval */
1380
+ } LockRows;
1381
+
1382
+ /* ----------------
1383
+ * limit node
1384
+ *
1385
+ * Note: as of Postgres 8.2, the offset and count expressions are expected
1386
+ * to yield int8, rather than int4 as before.
1387
+ * ----------------
1388
+ */
1389
+ typedef struct Limit
1390
+ {
1391
+ Plan plan;
1392
+ Node *limitOffset; /* OFFSET parameter, or NULL if none */
1393
+ Node *limitCount; /* COUNT parameter, or NULL if none */
1394
+ LimitOption limitOption; /* limit type */
1395
+ int uniqNumCols; /* number of columns to check for similarity */
1396
+ AttrNumber *uniqColIdx; /* their indexes in the target list */
1397
+ Oid *uniqOperators; /* equality operators to compare with */
1398
+ Oid *uniqCollations; /* collations for equality comparisons */
1399
+ } Limit;
1400
+
1401
+
1402
+ /*
1403
+ * RowMarkType -
1404
+ * enums for types of row-marking operations
1405
+ *
1406
+ * The first four of these values represent different lock strengths that
1407
+ * we can take on tuples according to SELECT FOR [KEY] UPDATE/SHARE requests.
1408
+ * We support these on regular tables, as well as on foreign tables whose FDWs
1409
+ * report support for late locking. For other foreign tables, any locking
1410
+ * that might be done for such requests must happen during the initial row
1411
+ * fetch; their FDWs provide no mechanism for going back to lock a row later.
1412
+ * This means that the semantics will be a bit different than for a local
1413
+ * table; in particular we are likely to lock more rows than would be locked
1414
+ * locally, since remote rows will be locked even if they then fail
1415
+ * locally-checked restriction or join quals. However, the prospect of
1416
+ * doing a separate remote query to lock each selected row is usually pretty
1417
+ * unappealing, so early locking remains a credible design choice for FDWs.
1418
+ *
1419
+ * When doing UPDATE/DELETE/MERGE/SELECT FOR UPDATE/SHARE, we have to uniquely
1420
+ * identify all the source rows, not only those from the target relations, so
1421
+ * that we can perform EvalPlanQual rechecking at need. For plain tables we
1422
+ * can just fetch the TID, much as for a target relation; this case is
1423
+ * represented by ROW_MARK_REFERENCE. Otherwise (for example for VALUES or
1424
+ * FUNCTION scans) we have to copy the whole row value. ROW_MARK_COPY is
1425
+ * pretty inefficient, since most of the time we'll never need the data; but
1426
+ * fortunately the overhead is usually not performance-critical in practice.
1427
+ * By default we use ROW_MARK_COPY for foreign tables, but if the FDW has
1428
+ * a concept of rowid it can request to use ROW_MARK_REFERENCE instead.
1429
+ * (Again, this probably doesn't make sense if a physical remote fetch is
1430
+ * needed, but for FDWs that map to local storage it might be credible.)
1431
+ */
1432
+ typedef enum RowMarkType
1433
+ {
1434
+ ROW_MARK_EXCLUSIVE, /* obtain exclusive tuple lock */
1435
+ ROW_MARK_NOKEYEXCLUSIVE, /* obtain no-key exclusive tuple lock */
1436
+ ROW_MARK_SHARE, /* obtain shared tuple lock */
1437
+ ROW_MARK_KEYSHARE, /* obtain keyshare tuple lock */
1438
+ ROW_MARK_REFERENCE, /* just fetch the TID, don't lock it */
1439
+ ROW_MARK_COPY /* physically copy the row value */
1440
+ } RowMarkType;
1441
+
1442
+ #define RowMarkRequiresRowShareLock(marktype) ((marktype) <= ROW_MARK_KEYSHARE)
1443
+
1444
+ /*
1445
+ * PlanRowMark -
1446
+ * plan-time representation of FOR [KEY] UPDATE/SHARE clauses
1447
+ *
1448
+ * When doing UPDATE/DELETE/MERGE/SELECT FOR UPDATE/SHARE, we create a separate
1449
+ * PlanRowMark node for each non-target relation in the query. Relations that
1450
+ * are not specified as FOR UPDATE/SHARE are marked ROW_MARK_REFERENCE (if
1451
+ * regular tables or supported foreign tables) or ROW_MARK_COPY (if not).
1452
+ *
1453
+ * Initially all PlanRowMarks have rti == prti and isParent == false.
1454
+ * When the planner discovers that a relation is the root of an inheritance
1455
+ * tree, it sets isParent true, and adds an additional PlanRowMark to the
1456
+ * list for each child relation (including the target rel itself in its role
1457
+ * as a child, if it is not a partitioned table). Any non-leaf partitioned
1458
+ * child relations will also have entries with isParent = true. The child
1459
+ * entries have rti == child rel's RT index and prti == top parent's RT index,
1460
+ * and can therefore be recognized as children by the fact that prti != rti.
1461
+ * The parent's allMarkTypes field gets the OR of (1<<markType) across all
1462
+ * its children (this definition allows children to use different markTypes).
1463
+ *
1464
+ * The planner also adds resjunk output columns to the plan that carry
1465
+ * information sufficient to identify the locked or fetched rows. When
1466
+ * markType != ROW_MARK_COPY, these columns are named
1467
+ * tableoid%u OID of table
1468
+ * ctid%u TID of row
1469
+ * The tableoid column is only present for an inheritance hierarchy.
1470
+ * When markType == ROW_MARK_COPY, there is instead a single column named
1471
+ * wholerow%u whole-row value of relation
1472
+ * (An inheritance hierarchy could have all three resjunk output columns,
1473
+ * if some children use a different markType than others.)
1474
+ * In all three cases, %u represents the rowmark ID number (rowmarkId).
1475
+ * This number is unique within a plan tree, except that child relation
1476
+ * entries copy their parent's rowmarkId. (Assigning unique numbers
1477
+ * means we needn't renumber rowmarkIds when flattening subqueries, which
1478
+ * would require finding and renaming the resjunk columns as well.)
1479
+ * Note this means that all tables in an inheritance hierarchy share the
1480
+ * same resjunk column names.
1481
+ */
1482
+ typedef struct PlanRowMark
1483
+ {
1484
+ NodeTag type;
1485
+ Index rti; /* range table index of markable relation */
1486
+ Index prti; /* range table index of parent relation */
1487
+ Index rowmarkId; /* unique identifier for resjunk columns */
1488
+ RowMarkType markType; /* see enum above */
1489
+ int allMarkTypes; /* OR of (1<<markType) for all children */
1490
+ LockClauseStrength strength; /* LockingClause's strength, or LCS_NONE */
1491
+ LockWaitPolicy waitPolicy; /* NOWAIT and SKIP LOCKED options */
1492
+ bool isParent; /* true if this is a "dummy" parent entry */
1493
+ } PlanRowMark;
1494
+
1495
+
1496
+ /*
1497
+ * Node types to represent partition pruning information.
1498
+ */
1499
+
1500
+ /*
1501
+ * PartitionPruneInfo - Details required to allow the executor to prune
1502
+ * partitions.
1503
+ *
1504
+ * Here we store mapping details to allow translation of a partitioned table's
1505
+ * index as returned by the partition pruning code into subplan indexes for
1506
+ * plan types which support arbitrary numbers of subplans, such as Append.
1507
+ * We also store various details to tell the executor when it should be
1508
+ * performing partition pruning.
1509
+ *
1510
+ * Each PartitionedRelPruneInfo describes the partitioning rules for a single
1511
+ * partitioned table (a/k/a level of partitioning). Since a partitioning
1512
+ * hierarchy could contain multiple levels, we represent it by a List of
1513
+ * PartitionedRelPruneInfos, where the first entry represents the topmost
1514
+ * partitioned table and additional entries represent non-leaf child
1515
+ * partitions, ordered such that parents appear before their children.
1516
+ * Then, since an Append-type node could have multiple partitioning
1517
+ * hierarchies among its children, we have an unordered List of those Lists.
1518
+ *
1519
+ * prune_infos List of Lists containing PartitionedRelPruneInfo nodes,
1520
+ * one sublist per run-time-prunable partition hierarchy
1521
+ * appearing in the parent plan node's subplans.
1522
+ * other_subplans Indexes of any subplans that are not accounted for
1523
+ * by any of the PartitionedRelPruneInfo nodes in
1524
+ * "prune_infos". These subplans must not be pruned.
1525
+ */
1526
+ typedef struct PartitionPruneInfo
1527
+ {
1528
+ NodeTag type;
1529
+ List *prune_infos;
1530
+ Bitmapset *other_subplans;
1531
+ } PartitionPruneInfo;
1532
+
1533
+ /*
1534
+ * PartitionedRelPruneInfo - Details required to allow the executor to prune
1535
+ * partitions for a single partitioned table.
1536
+ *
1537
+ * subplan_map[] and subpart_map[] are indexed by partition index of the
1538
+ * partitioned table referenced by 'rtindex', the partition index being the
1539
+ * order that the partitions are defined in the table's PartitionDesc. For a
1540
+ * leaf partition p, subplan_map[p] contains the zero-based index of the
1541
+ * partition's subplan in the parent plan's subplan list; it is -1 if the
1542
+ * partition is non-leaf or has been pruned. For a non-leaf partition p,
1543
+ * subpart_map[p] contains the zero-based index of that sub-partition's
1544
+ * PartitionedRelPruneInfo in the hierarchy's PartitionedRelPruneInfo list;
1545
+ * it is -1 if the partition is a leaf or has been pruned. Note that subplan
1546
+ * indexes, as stored in 'subplan_map', are global across the parent plan
1547
+ * node, but partition indexes are valid only within a particular hierarchy.
1548
+ * relid_map[p] contains the partition's OID, or 0 if the partition was pruned.
1549
+ */
1550
+ typedef struct PartitionedRelPruneInfo
1551
+ {
1552
+ NodeTag type;
1553
+ Index rtindex; /* RT index of partition rel for this level */
1554
+ Bitmapset *present_parts; /* Indexes of all partitions which subplans or
1555
+ * subparts are present for */
1556
+ int nparts; /* Length of the following arrays: */
1557
+ int *subplan_map; /* subplan index by partition index, or -1 */
1558
+ int *subpart_map; /* subpart index by partition index, or -1 */
1559
+ Oid *relid_map; /* relation OID by partition index, or 0 */
1560
+
1561
+ /*
1562
+ * initial_pruning_steps shows how to prune during executor startup (i.e.,
1563
+ * without use of any PARAM_EXEC Params); it is NIL if no startup pruning
1564
+ * is required. exec_pruning_steps shows how to prune with PARAM_EXEC
1565
+ * Params; it is NIL if no per-scan pruning is required.
1566
+ */
1567
+ List *initial_pruning_steps; /* List of PartitionPruneStep */
1568
+ List *exec_pruning_steps; /* List of PartitionPruneStep */
1569
+ Bitmapset *execparamids; /* All PARAM_EXEC Param IDs in
1570
+ * exec_pruning_steps */
1571
+ } PartitionedRelPruneInfo;
1572
+
1573
+ /*
1574
+ * Abstract Node type for partition pruning steps (there are no concrete
1575
+ * Nodes of this type).
1576
+ *
1577
+ * step_id is the global identifier of the step within its pruning context.
1578
+ */
1579
+ typedef struct PartitionPruneStep
1580
+ {
1581
+ NodeTag type;
1582
+ int step_id;
1583
+ } PartitionPruneStep;
1584
+
1585
+ /*
1586
+ * PartitionPruneStepOp - Information to prune using a set of mutually ANDed
1587
+ * OpExpr clauses
1588
+ *
1589
+ * This contains information extracted from up to partnatts OpExpr clauses,
1590
+ * where partnatts is the number of partition key columns. 'opstrategy' is the
1591
+ * strategy of the operator in the clause matched to the last partition key.
1592
+ * 'exprs' contains expressions which comprise the lookup key to be passed to
1593
+ * the partition bound search function. 'cmpfns' contains the OIDs of
1594
+ * comparison functions used to compare aforementioned expressions with
1595
+ * partition bounds. Both 'exprs' and 'cmpfns' contain the same number of
1596
+ * items, up to partnatts items.
1597
+ *
1598
+ * Once we find the offset of a partition bound using the lookup key, we
1599
+ * determine which partitions to include in the result based on the value of
1600
+ * 'opstrategy'. For example, if it were equality, we'd return just the
1601
+ * partition that would contain that key or a set of partitions if the key
1602
+ * didn't consist of all partitioning columns. For non-equality strategies,
1603
+ * we'd need to include other partitions as appropriate.
1604
+ *
1605
+ * 'nullkeys' is the set containing the offset of the partition keys (0 to
1606
+ * partnatts - 1) that were matched to an IS NULL clause. This is only
1607
+ * considered for hash partitioning as we need to pass which keys are null
1608
+ * to the hash partition bound search function. It is never possible to
1609
+ * have an expression be present in 'exprs' for a given partition key and
1610
+ * the corresponding bit set in 'nullkeys'.
1611
+ */
1612
+ typedef struct PartitionPruneStepOp
1613
+ {
1614
+ PartitionPruneStep step;
1615
+
1616
+ StrategyNumber opstrategy;
1617
+ List *exprs;
1618
+ List *cmpfns;
1619
+ Bitmapset *nullkeys;
1620
+ } PartitionPruneStepOp;
1621
+
1622
+ /*
1623
+ * PartitionPruneStepCombine - Information to prune using a BoolExpr clause
1624
+ *
1625
+ * For BoolExpr clauses, we combine the set of partitions determined for each
1626
+ * of the argument clauses.
1627
+ */
1628
+ typedef enum PartitionPruneCombineOp
1629
+ {
1630
+ PARTPRUNE_COMBINE_UNION,
1631
+ PARTPRUNE_COMBINE_INTERSECT
1632
+ } PartitionPruneCombineOp;
1633
+
1634
+ typedef struct PartitionPruneStepCombine
1635
+ {
1636
+ PartitionPruneStep step;
1637
+
1638
+ PartitionPruneCombineOp combineOp;
1639
+ List *source_stepids;
1640
+ } PartitionPruneStepCombine;
1641
+
1642
+ typedef struct YbPartitionPruneStepFuncOp
1643
+ {
1644
+ PartitionPruneStep step;
1645
+ List *exprs;
1646
+ } YbPartitionPruneStepFuncOp;
1647
+
1648
+ /*
1649
+ * Plan invalidation info
1650
+ *
1651
+ * We track the objects on which a PlannedStmt depends in two ways:
1652
+ * relations are recorded as a simple list of OIDs, and everything else
1653
+ * is represented as a list of PlanInvalItems. A PlanInvalItem is designed
1654
+ * to be used with the syscache invalidation mechanism, so it identifies a
1655
+ * system catalog entry by cache ID and hash value.
1656
+ */
1657
+ typedef struct PlanInvalItem
1658
+ {
1659
+ NodeTag type;
1660
+ int cacheId; /* a syscache ID, see utils/syscache.h */
1661
+ uint32 hashValue; /* hash value of object's cache lookup key */
1662
+ } PlanInvalItem;
1663
+
1664
+ /*
1665
+ * MonotonicFunction
1666
+ *
1667
+ * Allows the planner to track monotonic properties of functions. A function
1668
+ * is monotonically increasing if a subsequent call cannot yield a lower value
1669
+ * than the previous call. A monotonically decreasing function cannot yield a
1670
+ * higher value on subsequent calls, and a function which is both must return
1671
+ * the same value on each call.
1672
+ */
1673
+ typedef enum MonotonicFunction
1674
+ {
1675
+ MONOTONICFUNC_NONE = 0,
1676
+ MONOTONICFUNC_INCREASING = (1 << 0),
1677
+ MONOTONICFUNC_DECREASING = (1 << 1),
1678
+ MONOTONICFUNC_BOTH = MONOTONICFUNC_INCREASING | MONOTONICFUNC_DECREASING
1679
+ } MonotonicFunction;
1680
+
1681
+ #endif /* PLANNODES_H */