embedded-postgres 18.6.0__py3-none-win_amd64.whl

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 (1378) hide show
  1. embedded_postgres/__init__.py +2 -0
  2. embedded_postgres/_commands.py +71 -0
  3. embedded_postgres/pginstall/bin/clusterdb.exe +0 -0
  4. embedded_postgres/pginstall/bin/createdb.exe +0 -0
  5. embedded_postgres/pginstall/bin/createuser.exe +0 -0
  6. embedded_postgres/pginstall/bin/dropdb.exe +0 -0
  7. embedded_postgres/pginstall/bin/dropuser.exe +0 -0
  8. embedded_postgres/pginstall/bin/ecpg.exe +0 -0
  9. embedded_postgres/pginstall/bin/initdb.exe +0 -0
  10. embedded_postgres/pginstall/bin/libecpg.dll +0 -0
  11. embedded_postgres/pginstall/bin/libecpg_compat.dll +0 -0
  12. embedded_postgres/pginstall/bin/libpgtypes.dll +0 -0
  13. embedded_postgres/pginstall/bin/libpq.dll +0 -0
  14. embedded_postgres/pginstall/bin/oid2name.exe +0 -0
  15. embedded_postgres/pginstall/bin/pg_amcheck.exe +0 -0
  16. embedded_postgres/pginstall/bin/pg_archivecleanup.exe +0 -0
  17. embedded_postgres/pginstall/bin/pg_basebackup.exe +0 -0
  18. embedded_postgres/pginstall/bin/pg_checksums.exe +0 -0
  19. embedded_postgres/pginstall/bin/pg_combinebackup.exe +0 -0
  20. embedded_postgres/pginstall/bin/pg_config.exe +0 -0
  21. embedded_postgres/pginstall/bin/pg_controldata.exe +0 -0
  22. embedded_postgres/pginstall/bin/pg_createsubscriber.exe +0 -0
  23. embedded_postgres/pginstall/bin/pg_ctl.exe +0 -0
  24. embedded_postgres/pginstall/bin/pg_dump.exe +0 -0
  25. embedded_postgres/pginstall/bin/pg_dumpall.exe +0 -0
  26. embedded_postgres/pginstall/bin/pg_isready.exe +0 -0
  27. embedded_postgres/pginstall/bin/pg_receivewal.exe +0 -0
  28. embedded_postgres/pginstall/bin/pg_recvlogical.exe +0 -0
  29. embedded_postgres/pginstall/bin/pg_resetwal.exe +0 -0
  30. embedded_postgres/pginstall/bin/pg_restore.exe +0 -0
  31. embedded_postgres/pginstall/bin/pg_rewind.exe +0 -0
  32. embedded_postgres/pginstall/bin/pg_test_fsync.exe +0 -0
  33. embedded_postgres/pginstall/bin/pg_test_timing.exe +0 -0
  34. embedded_postgres/pginstall/bin/pg_upgrade.exe +0 -0
  35. embedded_postgres/pginstall/bin/pg_verifybackup.exe +0 -0
  36. embedded_postgres/pginstall/bin/pg_waldump.exe +0 -0
  37. embedded_postgres/pginstall/bin/pg_walsummary.exe +0 -0
  38. embedded_postgres/pginstall/bin/pgbench.exe +0 -0
  39. embedded_postgres/pginstall/bin/postgres.exe +0 -0
  40. embedded_postgres/pginstall/bin/psql.exe +0 -0
  41. embedded_postgres/pginstall/bin/reindexdb.exe +0 -0
  42. embedded_postgres/pginstall/bin/vacuumdb.exe +0 -0
  43. embedded_postgres/pginstall/bin/vacuumlo.exe +0 -0
  44. embedded_postgres/pginstall/include/ecpg_config.h +9 -0
  45. embedded_postgres/pginstall/include/ecpg_informix.h +90 -0
  46. embedded_postgres/pginstall/include/ecpgerrno.h +80 -0
  47. embedded_postgres/pginstall/include/ecpglib.h +79 -0
  48. embedded_postgres/pginstall/include/ecpgtype.h +109 -0
  49. embedded_postgres/pginstall/include/informix/esql/datetime.h +14 -0
  50. embedded_postgres/pginstall/include/informix/esql/decimal.h +13 -0
  51. embedded_postgres/pginstall/include/informix/esql/sqltypes.h +59 -0
  52. embedded_postgres/pginstall/include/internal/c.h +1364 -0
  53. embedded_postgres/pginstall/include/internal/fe-auth-sasl.h +153 -0
  54. embedded_postgres/pginstall/include/internal/libpq/pqcomm.h +175 -0
  55. embedded_postgres/pginstall/include/internal/libpq/protocol.h +89 -0
  56. embedded_postgres/pginstall/include/internal/libpq-int.h +980 -0
  57. embedded_postgres/pginstall/include/internal/port.h +565 -0
  58. embedded_postgres/pginstall/include/internal/postgres_fe.h +34 -0
  59. embedded_postgres/pginstall/include/internal/pqexpbuffer.h +192 -0
  60. embedded_postgres/pginstall/include/libpq/libpq-fs.h +24 -0
  61. embedded_postgres/pginstall/include/libpq-events.h +94 -0
  62. embedded_postgres/pginstall/include/libpq-fe.h +837 -0
  63. embedded_postgres/pginstall/include/pg_config.h +824 -0
  64. embedded_postgres/pginstall/include/pg_config_manual.h +363 -0
  65. embedded_postgres/pginstall/include/pg_config_os.h +59 -0
  66. embedded_postgres/pginstall/include/pgtypes.h +17 -0
  67. embedded_postgres/pginstall/include/pgtypes_date.h +32 -0
  68. embedded_postgres/pginstall/include/pgtypes_error.h +18 -0
  69. embedded_postgres/pginstall/include/pgtypes_interval.h +40 -0
  70. embedded_postgres/pginstall/include/pgtypes_numeric.h +69 -0
  71. embedded_postgres/pginstall/include/pgtypes_timestamp.h +31 -0
  72. embedded_postgres/pginstall/include/postgres_ext.h +74 -0
  73. embedded_postgres/pginstall/include/server/access/amapi.h +332 -0
  74. embedded_postgres/pginstall/include/server/access/amvalidate.h +40 -0
  75. embedded_postgres/pginstall/include/server/access/attmap.h +54 -0
  76. embedded_postgres/pginstall/include/server/access/attnum.h +64 -0
  77. embedded_postgres/pginstall/include/server/access/brin.h +58 -0
  78. embedded_postgres/pginstall/include/server/access/brin_internal.h +116 -0
  79. embedded_postgres/pginstall/include/server/access/brin_page.h +96 -0
  80. embedded_postgres/pginstall/include/server/access/brin_pageops.h +38 -0
  81. embedded_postgres/pginstall/include/server/access/brin_revmap.h +41 -0
  82. embedded_postgres/pginstall/include/server/access/brin_tuple.h +112 -0
  83. embedded_postgres/pginstall/include/server/access/brin_xlog.h +151 -0
  84. embedded_postgres/pginstall/include/server/access/bufmask.h +32 -0
  85. embedded_postgres/pginstall/include/server/access/clog.h +62 -0
  86. embedded_postgres/pginstall/include/server/access/cmptype.h +44 -0
  87. embedded_postgres/pginstall/include/server/access/commit_ts.h +73 -0
  88. embedded_postgres/pginstall/include/server/access/detoast.h +82 -0
  89. embedded_postgres/pginstall/include/server/access/genam.h +278 -0
  90. embedded_postgres/pginstall/include/server/access/generic_xlog.h +45 -0
  91. embedded_postgres/pginstall/include/server/access/gin.h +106 -0
  92. embedded_postgres/pginstall/include/server/access/gin_private.h +506 -0
  93. embedded_postgres/pginstall/include/server/access/gin_tuple.h +44 -0
  94. embedded_postgres/pginstall/include/server/access/ginblock.h +346 -0
  95. embedded_postgres/pginstall/include/server/access/ginxlog.h +216 -0
  96. embedded_postgres/pginstall/include/server/access/gist.h +253 -0
  97. embedded_postgres/pginstall/include/server/access/gist_private.h +571 -0
  98. embedded_postgres/pginstall/include/server/access/gistscan.h +24 -0
  99. embedded_postgres/pginstall/include/server/access/gistxlog.h +117 -0
  100. embedded_postgres/pginstall/include/server/access/hash.h +490 -0
  101. embedded_postgres/pginstall/include/server/access/hash_xlog.h +270 -0
  102. embedded_postgres/pginstall/include/server/access/heapam.h +455 -0
  103. embedded_postgres/pginstall/include/server/access/heapam_xlog.h +538 -0
  104. embedded_postgres/pginstall/include/server/access/heaptoast.h +149 -0
  105. embedded_postgres/pginstall/include/server/access/hio.h +62 -0
  106. embedded_postgres/pginstall/include/server/access/htup.h +89 -0
  107. embedded_postgres/pginstall/include/server/access/htup_details.h +923 -0
  108. embedded_postgres/pginstall/include/server/access/itup.h +186 -0
  109. embedded_postgres/pginstall/include/server/access/multixact.h +161 -0
  110. embedded_postgres/pginstall/include/server/access/nbtree.h +1367 -0
  111. embedded_postgres/pginstall/include/server/access/nbtxlog.h +367 -0
  112. embedded_postgres/pginstall/include/server/access/parallel.h +81 -0
  113. embedded_postgres/pginstall/include/server/access/printsimple.h +23 -0
  114. embedded_postgres/pginstall/include/server/access/printtup.h +35 -0
  115. embedded_postgres/pginstall/include/server/access/relation.h +28 -0
  116. embedded_postgres/pginstall/include/server/access/reloptions.h +260 -0
  117. embedded_postgres/pginstall/include/server/access/relscan.h +217 -0
  118. embedded_postgres/pginstall/include/server/access/rewriteheap.h +57 -0
  119. embedded_postgres/pginstall/include/server/access/rmgr.h +62 -0
  120. embedded_postgres/pginstall/include/server/access/rmgrdesc_utils.h +22 -0
  121. embedded_postgres/pginstall/include/server/access/rmgrlist.h +49 -0
  122. embedded_postgres/pginstall/include/server/access/sdir.h +67 -0
  123. embedded_postgres/pginstall/include/server/access/sequence.h +23 -0
  124. embedded_postgres/pginstall/include/server/access/session.h +44 -0
  125. embedded_postgres/pginstall/include/server/access/skey.h +151 -0
  126. embedded_postgres/pginstall/include/server/access/slru.h +218 -0
  127. embedded_postgres/pginstall/include/server/access/spgist.h +229 -0
  128. embedded_postgres/pginstall/include/server/access/spgist_private.h +549 -0
  129. embedded_postgres/pginstall/include/server/access/spgxlog.h +259 -0
  130. embedded_postgres/pginstall/include/server/access/stratnum.h +85 -0
  131. embedded_postgres/pginstall/include/server/access/subtrans.h +26 -0
  132. embedded_postgres/pginstall/include/server/access/syncscan.h +30 -0
  133. embedded_postgres/pginstall/include/server/access/sysattr.h +29 -0
  134. embedded_postgres/pginstall/include/server/access/table.h +28 -0
  135. embedded_postgres/pginstall/include/server/access/tableam.h +2060 -0
  136. embedded_postgres/pginstall/include/server/access/tidstore.h +54 -0
  137. embedded_postgres/pginstall/include/server/access/timeline.h +44 -0
  138. embedded_postgres/pginstall/include/server/access/toast_compression.h +73 -0
  139. embedded_postgres/pginstall/include/server/access/toast_helper.h +116 -0
  140. embedded_postgres/pginstall/include/server/access/toast_internals.h +63 -0
  141. embedded_postgres/pginstall/include/server/access/transam.h +418 -0
  142. embedded_postgres/pginstall/include/server/access/tsmapi.h +82 -0
  143. embedded_postgres/pginstall/include/server/access/tupconvert.h +54 -0
  144. embedded_postgres/pginstall/include/server/access/tupdesc.h +251 -0
  145. embedded_postgres/pginstall/include/server/access/tupdesc_details.h +28 -0
  146. embedded_postgres/pginstall/include/server/access/tupmacs.h +235 -0
  147. embedded_postgres/pginstall/include/server/access/twophase.h +70 -0
  148. embedded_postgres/pginstall/include/server/access/twophase_rmgr.h +40 -0
  149. embedded_postgres/pginstall/include/server/access/valid.h +58 -0
  150. embedded_postgres/pginstall/include/server/access/visibilitymap.h +48 -0
  151. embedded_postgres/pginstall/include/server/access/visibilitymapdefs.h +34 -0
  152. embedded_postgres/pginstall/include/server/access/xact.h +536 -0
  153. embedded_postgres/pginstall/include/server/access/xlog.h +317 -0
  154. embedded_postgres/pginstall/include/server/access/xlog_internal.h +405 -0
  155. embedded_postgres/pginstall/include/server/access/xlogarchive.h +35 -0
  156. embedded_postgres/pginstall/include/server/access/xlogbackup.h +43 -0
  157. embedded_postgres/pginstall/include/server/access/xlogdefs.h +83 -0
  158. embedded_postgres/pginstall/include/server/access/xloginsert.h +68 -0
  159. embedded_postgres/pginstall/include/server/access/xlogprefetcher.h +55 -0
  160. embedded_postgres/pginstall/include/server/access/xlogreader.h +444 -0
  161. embedded_postgres/pginstall/include/server/access/xlogrecord.h +248 -0
  162. embedded_postgres/pginstall/include/server/access/xlogrecovery.h +158 -0
  163. embedded_postgres/pginstall/include/server/access/xlogstats.h +43 -0
  164. embedded_postgres/pginstall/include/server/access/xlogutils.h +123 -0
  165. embedded_postgres/pginstall/include/server/archive/archive_module.h +67 -0
  166. embedded_postgres/pginstall/include/server/archive/shell_archive.h +24 -0
  167. embedded_postgres/pginstall/include/server/bootstrap/bootstrap.h +69 -0
  168. embedded_postgres/pginstall/include/server/c.h +1364 -0
  169. embedded_postgres/pginstall/include/server/catalog/binary_upgrade.h +38 -0
  170. embedded_postgres/pginstall/include/server/catalog/catalog.h +48 -0
  171. embedded_postgres/pginstall/include/server/catalog/catversion.h +62 -0
  172. embedded_postgres/pginstall/include/server/catalog/dependency.h +234 -0
  173. embedded_postgres/pginstall/include/server/catalog/genbki.h +149 -0
  174. embedded_postgres/pginstall/include/server/catalog/heap.h +168 -0
  175. embedded_postgres/pginstall/include/server/catalog/index.h +220 -0
  176. embedded_postgres/pginstall/include/server/catalog/indexing.h +54 -0
  177. embedded_postgres/pginstall/include/server/catalog/namespace.h +189 -0
  178. embedded_postgres/pginstall/include/server/catalog/objectaccess.h +267 -0
  179. embedded_postgres/pginstall/include/server/catalog/objectaddress.h +93 -0
  180. embedded_postgres/pginstall/include/server/catalog/partition.h +34 -0
  181. embedded_postgres/pginstall/include/server/catalog/pg_aggregate.h +182 -0
  182. embedded_postgres/pginstall/include/server/catalog/pg_aggregate_d.h +85 -0
  183. embedded_postgres/pginstall/include/server/catalog/pg_am.h +66 -0
  184. embedded_postgres/pginstall/include/server/catalog/pg_am_d.h +54 -0
  185. embedded_postgres/pginstall/include/server/catalog/pg_amop.h +105 -0
  186. embedded_postgres/pginstall/include/server/catalog/pg_amop_d.h +51 -0
  187. embedded_postgres/pginstall/include/server/catalog/pg_amproc.h +75 -0
  188. embedded_postgres/pginstall/include/server/catalog/pg_amproc_d.h +42 -0
  189. embedded_postgres/pginstall/include/server/catalog/pg_attrdef.h +69 -0
  190. embedded_postgres/pginstall/include/server/catalog/pg_attrdef_d.h +40 -0
  191. embedded_postgres/pginstall/include/server/catalog/pg_attribute.h +234 -0
  192. embedded_postgres/pginstall/include/server/catalog/pg_attribute_d.h +69 -0
  193. embedded_postgres/pginstall/include/server/catalog/pg_auth_members.h +56 -0
  194. embedded_postgres/pginstall/include/server/catalog/pg_auth_members_d.h +46 -0
  195. embedded_postgres/pginstall/include/server/catalog/pg_authid.h +64 -0
  196. embedded_postgres/pginstall/include/server/catalog/pg_authid_d.h +66 -0
  197. embedded_postgres/pginstall/include/server/catalog/pg_cast.h +106 -0
  198. embedded_postgres/pginstall/include/server/catalog/pg_cast_d.h +71 -0
  199. embedded_postgres/pginstall/include/server/catalog/pg_class.h +238 -0
  200. embedded_postgres/pginstall/include/server/catalog/pg_class_d.h +140 -0
  201. embedded_postgres/pginstall/include/server/catalog/pg_collation.h +106 -0
  202. embedded_postgres/pginstall/include/server/catalog/pg_collation_d.h +72 -0
  203. embedded_postgres/pginstall/include/server/catalog/pg_constraint.h +301 -0
  204. embedded_postgres/pginstall/include/server/catalog/pg_constraint_d.h +83 -0
  205. embedded_postgres/pginstall/include/server/catalog/pg_control.h +266 -0
  206. embedded_postgres/pginstall/include/server/catalog/pg_conversion.h +79 -0
  207. embedded_postgres/pginstall/include/server/catalog/pg_conversion_d.h +45 -0
  208. embedded_postgres/pginstall/include/server/catalog/pg_database.h +129 -0
  209. embedded_postgres/pginstall/include/server/catalog/pg_database_d.h +60 -0
  210. embedded_postgres/pginstall/include/server/catalog/pg_db_role_setting.h +61 -0
  211. embedded_postgres/pginstall/include/server/catalog/pg_db_role_setting_d.h +40 -0
  212. embedded_postgres/pginstall/include/server/catalog/pg_default_acl.h +75 -0
  213. embedded_postgres/pginstall/include/server/catalog/pg_default_acl_d.h +54 -0
  214. embedded_postgres/pginstall/include/server/catalog/pg_depend.h +77 -0
  215. embedded_postgres/pginstall/include/server/catalog/pg_depend_d.h +43 -0
  216. embedded_postgres/pginstall/include/server/catalog/pg_description.h +73 -0
  217. embedded_postgres/pginstall/include/server/catalog/pg_description_d.h +39 -0
  218. embedded_postgres/pginstall/include/server/catalog/pg_enum.h +69 -0
  219. embedded_postgres/pginstall/include/server/catalog/pg_enum_d.h +41 -0
  220. embedded_postgres/pginstall/include/server/catalog/pg_event_trigger.h +60 -0
  221. embedded_postgres/pginstall/include/server/catalog/pg_event_trigger_d.h +43 -0
  222. embedded_postgres/pginstall/include/server/catalog/pg_extension.h +62 -0
  223. embedded_postgres/pginstall/include/server/catalog/pg_extension_d.h +44 -0
  224. embedded_postgres/pginstall/include/server/catalog/pg_foreign_data_wrapper.h +61 -0
  225. embedded_postgres/pginstall/include/server/catalog/pg_foreign_data_wrapper_d.h +43 -0
  226. embedded_postgres/pginstall/include/server/catalog/pg_foreign_server.h +58 -0
  227. embedded_postgres/pginstall/include/server/catalog/pg_foreign_server_d.h +44 -0
  228. embedded_postgres/pginstall/include/server/catalog/pg_foreign_table.h +51 -0
  229. embedded_postgres/pginstall/include/server/catalog/pg_foreign_table_d.h +38 -0
  230. embedded_postgres/pginstall/include/server/catalog/pg_index.h +94 -0
  231. embedded_postgres/pginstall/include/server/catalog/pg_index_d.h +68 -0
  232. embedded_postgres/pginstall/include/server/catalog/pg_inherits.h +67 -0
  233. embedded_postgres/pginstall/include/server/catalog/pg_inherits_d.h +40 -0
  234. embedded_postgres/pginstall/include/server/catalog/pg_init_privs.h +83 -0
  235. embedded_postgres/pginstall/include/server/catalog/pg_init_privs_d.h +40 -0
  236. embedded_postgres/pginstall/include/server/catalog/pg_language.h +75 -0
  237. embedded_postgres/pginstall/include/server/catalog/pg_language_d.h +48 -0
  238. embedded_postgres/pginstall/include/server/catalog/pg_largeobject.h +55 -0
  239. embedded_postgres/pginstall/include/server/catalog/pg_largeobject_d.h +38 -0
  240. embedded_postgres/pginstall/include/server/catalog/pg_largeobject_metadata.h +51 -0
  241. embedded_postgres/pginstall/include/server/catalog/pg_largeobject_metadata_d.h +38 -0
  242. embedded_postgres/pginstall/include/server/catalog/pg_namespace.h +67 -0
  243. embedded_postgres/pginstall/include/server/catalog/pg_namespace_d.h +43 -0
  244. embedded_postgres/pginstall/include/server/catalog/pg_opclass.h +91 -0
  245. embedded_postgres/pginstall/include/server/catalog/pg_opclass_d.h +58 -0
  246. embedded_postgres/pginstall/include/server/catalog/pg_operator.h +124 -0
  247. embedded_postgres/pginstall/include/server/catalog/pg_operator_d.h +153 -0
  248. embedded_postgres/pginstall/include/server/catalog/pg_opfamily.h +67 -0
  249. embedded_postgres/pginstall/include/server/catalog/pg_opfamily_d.h +58 -0
  250. embedded_postgres/pginstall/include/server/catalog/pg_parameter_acl.h +62 -0
  251. embedded_postgres/pginstall/include/server/catalog/pg_parameter_acl_d.h +41 -0
  252. embedded_postgres/pginstall/include/server/catalog/pg_partitioned_table.h +76 -0
  253. embedded_postgres/pginstall/include/server/catalog/pg_partitioned_table_d.h +43 -0
  254. embedded_postgres/pginstall/include/server/catalog/pg_policy.h +58 -0
  255. embedded_postgres/pginstall/include/server/catalog/pg_policy_d.h +44 -0
  256. embedded_postgres/pginstall/include/server/catalog/pg_proc.h +224 -0
  257. embedded_postgres/pginstall/include/server/catalog/pg_proc_d.h +108 -0
  258. embedded_postgres/pginstall/include/server/catalog/pg_publication.h +194 -0
  259. embedded_postgres/pginstall/include/server/catalog/pg_publication_d.h +57 -0
  260. embedded_postgres/pginstall/include/server/catalog/pg_publication_namespace.h +50 -0
  261. embedded_postgres/pginstall/include/server/catalog/pg_publication_namespace_d.h +39 -0
  262. embedded_postgres/pginstall/include/server/catalog/pg_publication_rel.h +57 -0
  263. embedded_postgres/pginstall/include/server/catalog/pg_publication_rel_d.h +42 -0
  264. embedded_postgres/pginstall/include/server/catalog/pg_range.h +75 -0
  265. embedded_postgres/pginstall/include/server/catalog/pg_range_d.h +43 -0
  266. embedded_postgres/pginstall/include/server/catalog/pg_replication_origin.h +63 -0
  267. embedded_postgres/pginstall/include/server/catalog/pg_replication_origin_d.h +38 -0
  268. embedded_postgres/pginstall/include/server/catalog/pg_rewrite.h +61 -0
  269. embedded_postgres/pginstall/include/server/catalog/pg_rewrite_d.h +44 -0
  270. embedded_postgres/pginstall/include/server/catalog/pg_seclabel.h +45 -0
  271. embedded_postgres/pginstall/include/server/catalog/pg_seclabel_d.h +40 -0
  272. embedded_postgres/pginstall/include/server/catalog/pg_sequence.h +46 -0
  273. embedded_postgres/pginstall/include/server/catalog/pg_sequence_d.h +43 -0
  274. embedded_postgres/pginstall/include/server/catalog/pg_shdepend.h +78 -0
  275. embedded_postgres/pginstall/include/server/catalog/pg_shdepend_d.h +43 -0
  276. embedded_postgres/pginstall/include/server/catalog/pg_shdescription.h +65 -0
  277. embedded_postgres/pginstall/include/server/catalog/pg_shdescription_d.h +40 -0
  278. embedded_postgres/pginstall/include/server/catalog/pg_shseclabel.h +46 -0
  279. embedded_postgres/pginstall/include/server/catalog/pg_shseclabel_d.h +42 -0
  280. embedded_postgres/pginstall/include/server/catalog/pg_statistic.h +288 -0
  281. embedded_postgres/pginstall/include/server/catalog/pg_statistic_d.h +206 -0
  282. embedded_postgres/pginstall/include/server/catalog/pg_statistic_ext.h +91 -0
  283. embedded_postgres/pginstall/include/server/catalog/pg_statistic_ext_d.h +52 -0
  284. embedded_postgres/pginstall/include/server/catalog/pg_statistic_ext_data.h +61 -0
  285. embedded_postgres/pginstall/include/server/catalog/pg_statistic_ext_data_d.h +41 -0
  286. embedded_postgres/pginstall/include/server/catalog/pg_subscription.h +190 -0
  287. embedded_postgres/pginstall/include/server/catalog/pg_subscription_d.h +93 -0
  288. embedded_postgres/pginstall/include/server/catalog/pg_subscription_rel.h +95 -0
  289. embedded_postgres/pginstall/include/server/catalog/pg_subscription_rel_d.h +58 -0
  290. embedded_postgres/pginstall/include/server/catalog/pg_tablespace.h +57 -0
  291. embedded_postgres/pginstall/include/server/catalog/pg_tablespace_d.h +45 -0
  292. embedded_postgres/pginstall/include/server/catalog/pg_transform.h +51 -0
  293. embedded_postgres/pginstall/include/server/catalog/pg_transform_d.h +41 -0
  294. embedded_postgres/pginstall/include/server/catalog/pg_trigger.h +153 -0
  295. embedded_postgres/pginstall/include/server/catalog/pg_trigger_d.h +116 -0
  296. embedded_postgres/pginstall/include/server/catalog/pg_ts_config.h +56 -0
  297. embedded_postgres/pginstall/include/server/catalog/pg_ts_config_d.h +41 -0
  298. embedded_postgres/pginstall/include/server/catalog/pg_ts_config_map.h +51 -0
  299. embedded_postgres/pginstall/include/server/catalog/pg_ts_config_map_d.h +39 -0
  300. embedded_postgres/pginstall/include/server/catalog/pg_ts_dict.h +62 -0
  301. embedded_postgres/pginstall/include/server/catalog/pg_ts_dict_d.h +42 -0
  302. embedded_postgres/pginstall/include/server/catalog/pg_ts_parser.h +63 -0
  303. embedded_postgres/pginstall/include/server/catalog/pg_ts_parser_d.h +44 -0
  304. embedded_postgres/pginstall/include/server/catalog/pg_ts_template.h +54 -0
  305. embedded_postgres/pginstall/include/server/catalog/pg_ts_template_d.h +41 -0
  306. embedded_postgres/pginstall/include/server/catalog/pg_type.h +407 -0
  307. embedded_postgres/pginstall/include/server/catalog/pg_type_d.h +331 -0
  308. embedded_postgres/pginstall/include/server/catalog/pg_user_mapping.h +58 -0
  309. embedded_postgres/pginstall/include/server/catalog/pg_user_mapping_d.h +40 -0
  310. embedded_postgres/pginstall/include/server/catalog/schemapg.h +242 -0
  311. embedded_postgres/pginstall/include/server/catalog/storage.h +50 -0
  312. embedded_postgres/pginstall/include/server/catalog/storage_xlog.h +59 -0
  313. embedded_postgres/pginstall/include/server/catalog/syscache_ids.h +106 -0
  314. embedded_postgres/pginstall/include/server/catalog/syscache_info.h +581 -0
  315. embedded_postgres/pginstall/include/server/catalog/system_fk_info.h +253 -0
  316. embedded_postgres/pginstall/include/server/catalog/toasting.h +30 -0
  317. embedded_postgres/pginstall/include/server/commands/alter.h +34 -0
  318. embedded_postgres/pginstall/include/server/commands/async.h +52 -0
  319. embedded_postgres/pginstall/include/server/commands/cluster.h +51 -0
  320. embedded_postgres/pginstall/include/server/commands/collationcmds.h +25 -0
  321. embedded_postgres/pginstall/include/server/commands/comment.h +45 -0
  322. embedded_postgres/pginstall/include/server/commands/conversioncmds.h +23 -0
  323. embedded_postgres/pginstall/include/server/commands/copy.h +130 -0
  324. embedded_postgres/pginstall/include/server/commands/copyapi.h +105 -0
  325. embedded_postgres/pginstall/include/server/commands/copyfrom_internal.h +197 -0
  326. embedded_postgres/pginstall/include/server/commands/createas.h +34 -0
  327. embedded_postgres/pginstall/include/server/commands/dbcommands.h +37 -0
  328. embedded_postgres/pginstall/include/server/commands/dbcommands_xlog.h +60 -0
  329. embedded_postgres/pginstall/include/server/commands/defrem.h +165 -0
  330. embedded_postgres/pginstall/include/server/commands/discard.h +20 -0
  331. embedded_postgres/pginstall/include/server/commands/event_trigger.h +97 -0
  332. embedded_postgres/pginstall/include/server/commands/explain.h +84 -0
  333. embedded_postgres/pginstall/include/server/commands/explain_dr.h +32 -0
  334. embedded_postgres/pginstall/include/server/commands/explain_format.h +58 -0
  335. embedded_postgres/pginstall/include/server/commands/explain_state.h +100 -0
  336. embedded_postgres/pginstall/include/server/commands/extension.h +60 -0
  337. embedded_postgres/pginstall/include/server/commands/lockcmds.h +24 -0
  338. embedded_postgres/pginstall/include/server/commands/matview.h +36 -0
  339. embedded_postgres/pginstall/include/server/commands/policy.h +38 -0
  340. embedded_postgres/pginstall/include/server/commands/portalcmds.h +34 -0
  341. embedded_postgres/pginstall/include/server/commands/prepare.h +62 -0
  342. embedded_postgres/pginstall/include/server/commands/proclang.h +23 -0
  343. embedded_postgres/pginstall/include/server/commands/progress.h +160 -0
  344. embedded_postgres/pginstall/include/server/commands/publicationcmds.h +43 -0
  345. embedded_postgres/pginstall/include/server/commands/schemacmds.h +29 -0
  346. embedded_postgres/pginstall/include/server/commands/seclabel.h +34 -0
  347. embedded_postgres/pginstall/include/server/commands/sequence.h +70 -0
  348. embedded_postgres/pginstall/include/server/commands/subscriptioncmds.h +31 -0
  349. embedded_postgres/pginstall/include/server/commands/tablecmds.h +110 -0
  350. embedded_postgres/pginstall/include/server/commands/tablespace.h +71 -0
  351. embedded_postgres/pginstall/include/server/commands/trigger.h +292 -0
  352. embedded_postgres/pginstall/include/server/commands/typecmds.h +64 -0
  353. embedded_postgres/pginstall/include/server/commands/user.h +43 -0
  354. embedded_postgres/pginstall/include/server/commands/vacuum.h +410 -0
  355. embedded_postgres/pginstall/include/server/commands/view.h +25 -0
  356. embedded_postgres/pginstall/include/server/common/archive.h +21 -0
  357. embedded_postgres/pginstall/include/server/common/base64.h +19 -0
  358. embedded_postgres/pginstall/include/server/common/blkreftable.h +116 -0
  359. embedded_postgres/pginstall/include/server/common/checksum_helper.h +72 -0
  360. embedded_postgres/pginstall/include/server/common/compression.h +53 -0
  361. embedded_postgres/pginstall/include/server/common/config_info.h +21 -0
  362. embedded_postgres/pginstall/include/server/common/connect.h +28 -0
  363. embedded_postgres/pginstall/include/server/common/controldata_utils.h +21 -0
  364. embedded_postgres/pginstall/include/server/common/cryptohash.h +39 -0
  365. embedded_postgres/pginstall/include/server/common/fe_memutils.h +101 -0
  366. embedded_postgres/pginstall/include/server/common/file_perm.h +56 -0
  367. embedded_postgres/pginstall/include/server/common/file_utils.h +66 -0
  368. embedded_postgres/pginstall/include/server/common/hashfn.h +119 -0
  369. embedded_postgres/pginstall/include/server/common/hashfn_unstable.h +407 -0
  370. embedded_postgres/pginstall/include/server/common/hmac.h +30 -0
  371. embedded_postgres/pginstall/include/server/common/int.h +742 -0
  372. embedded_postgres/pginstall/include/server/common/int128.h +276 -0
  373. embedded_postgres/pginstall/include/server/common/ip.h +33 -0
  374. embedded_postgres/pginstall/include/server/common/jsonapi.h +267 -0
  375. embedded_postgres/pginstall/include/server/common/keywords.h +29 -0
  376. embedded_postgres/pginstall/include/server/common/kwlookup.h +44 -0
  377. embedded_postgres/pginstall/include/server/common/link-canary.h +17 -0
  378. embedded_postgres/pginstall/include/server/common/logging.h +163 -0
  379. embedded_postgres/pginstall/include/server/common/md5.h +37 -0
  380. embedded_postgres/pginstall/include/server/common/oauth-common.h +19 -0
  381. embedded_postgres/pginstall/include/server/common/openssl.h +43 -0
  382. embedded_postgres/pginstall/include/server/common/parse_manifest.h +57 -0
  383. embedded_postgres/pginstall/include/server/common/percentrepl.h +18 -0
  384. embedded_postgres/pginstall/include/server/common/pg_lzcompress.h +93 -0
  385. embedded_postgres/pginstall/include/server/common/pg_prng.h +62 -0
  386. embedded_postgres/pginstall/include/server/common/relpath.h +154 -0
  387. embedded_postgres/pginstall/include/server/common/restricted_token.h +24 -0
  388. embedded_postgres/pginstall/include/server/common/saslprep.h +30 -0
  389. embedded_postgres/pginstall/include/server/common/scram-common.h +70 -0
  390. embedded_postgres/pginstall/include/server/common/sha1.h +21 -0
  391. embedded_postgres/pginstall/include/server/common/sha2.h +32 -0
  392. embedded_postgres/pginstall/include/server/common/shortest_dec.h +63 -0
  393. embedded_postgres/pginstall/include/server/common/string.h +44 -0
  394. embedded_postgres/pginstall/include/server/common/unicode_case.h +35 -0
  395. embedded_postgres/pginstall/include/server/common/unicode_case_table.h +13630 -0
  396. embedded_postgres/pginstall/include/server/common/unicode_category.h +91 -0
  397. embedded_postgres/pginstall/include/server/common/unicode_category_table.h +7153 -0
  398. embedded_postgres/pginstall/include/server/common/unicode_east_asian_fw_table.h +126 -0
  399. embedded_postgres/pginstall/include/server/common/unicode_nonspacing_table.h +338 -0
  400. embedded_postgres/pginstall/include/server/common/unicode_norm.h +39 -0
  401. embedded_postgres/pginstall/include/server/common/unicode_norm_hashfunc.h +3016 -0
  402. embedded_postgres/pginstall/include/server/common/unicode_norm_table.h +9202 -0
  403. embedded_postgres/pginstall/include/server/common/unicode_normprops_table.h +8025 -0
  404. embedded_postgres/pginstall/include/server/common/unicode_version.h +14 -0
  405. embedded_postgres/pginstall/include/server/common/username.h +15 -0
  406. embedded_postgres/pginstall/include/server/datatype/timestamp.h +269 -0
  407. embedded_postgres/pginstall/include/server/executor/execAsync.h +25 -0
  408. embedded_postgres/pginstall/include/server/executor/execExpr.h +924 -0
  409. embedded_postgres/pginstall/include/server/executor/execParallel.h +51 -0
  410. embedded_postgres/pginstall/include/server/executor/execPartition.h +143 -0
  411. embedded_postgres/pginstall/include/server/executor/execScan.h +254 -0
  412. embedded_postgres/pginstall/include/server/executor/execdebug.h +130 -0
  413. embedded_postgres/pginstall/include/server/executor/execdesc.h +70 -0
  414. embedded_postgres/pginstall/include/server/executor/executor.h +789 -0
  415. embedded_postgres/pginstall/include/server/executor/functions.h +55 -0
  416. embedded_postgres/pginstall/include/server/executor/hashjoin.h +365 -0
  417. embedded_postgres/pginstall/include/server/executor/instrument.h +121 -0
  418. embedded_postgres/pginstall/include/server/executor/nodeAgg.h +341 -0
  419. embedded_postgres/pginstall/include/server/executor/nodeAppend.h +30 -0
  420. embedded_postgres/pginstall/include/server/executor/nodeBitmapAnd.h +24 -0
  421. embedded_postgres/pginstall/include/server/executor/nodeBitmapHeapscan.h +33 -0
  422. embedded_postgres/pginstall/include/server/executor/nodeBitmapIndexscan.h +30 -0
  423. embedded_postgres/pginstall/include/server/executor/nodeBitmapOr.h +24 -0
  424. embedded_postgres/pginstall/include/server/executor/nodeCtescan.h +23 -0
  425. embedded_postgres/pginstall/include/server/executor/nodeCustom.h +42 -0
  426. embedded_postgres/pginstall/include/server/executor/nodeForeignscan.h +38 -0
  427. embedded_postgres/pginstall/include/server/executor/nodeFunctionscan.h +23 -0
  428. embedded_postgres/pginstall/include/server/executor/nodeGather.h +24 -0
  429. embedded_postgres/pginstall/include/server/executor/nodeGatherMerge.h +26 -0
  430. embedded_postgres/pginstall/include/server/executor/nodeGroup.h +23 -0
  431. embedded_postgres/pginstall/include/server/executor/nodeHash.h +75 -0
  432. embedded_postgres/pginstall/include/server/executor/nodeHashjoin.h +34 -0
  433. embedded_postgres/pginstall/include/server/executor/nodeIncrementalSort.h +28 -0
  434. embedded_postgres/pginstall/include/server/executor/nodeIndexonlyscan.h +37 -0
  435. embedded_postgres/pginstall/include/server/executor/nodeIndexscan.h +48 -0
  436. embedded_postgres/pginstall/include/server/executor/nodeLimit.h +23 -0
  437. embedded_postgres/pginstall/include/server/executor/nodeLockRows.h +23 -0
  438. embedded_postgres/pginstall/include/server/executor/nodeMaterial.h +25 -0
  439. embedded_postgres/pginstall/include/server/executor/nodeMemoize.h +32 -0
  440. embedded_postgres/pginstall/include/server/executor/nodeMergeAppend.h +23 -0
  441. embedded_postgres/pginstall/include/server/executor/nodeMergejoin.h +23 -0
  442. embedded_postgres/pginstall/include/server/executor/nodeModifyTable.h +33 -0
  443. embedded_postgres/pginstall/include/server/executor/nodeNamedtuplestorescan.h +22 -0
  444. embedded_postgres/pginstall/include/server/executor/nodeNestloop.h +23 -0
  445. embedded_postgres/pginstall/include/server/executor/nodeProjectSet.h +23 -0
  446. embedded_postgres/pginstall/include/server/executor/nodeRecursiveunion.h +23 -0
  447. embedded_postgres/pginstall/include/server/executor/nodeResult.h +25 -0
  448. embedded_postgres/pginstall/include/server/executor/nodeSamplescan.h +23 -0
  449. embedded_postgres/pginstall/include/server/executor/nodeSeqscan.h +31 -0
  450. embedded_postgres/pginstall/include/server/executor/nodeSetOp.h +23 -0
  451. embedded_postgres/pginstall/include/server/executor/nodeSort.h +32 -0
  452. embedded_postgres/pginstall/include/server/executor/nodeSubplan.h +29 -0
  453. embedded_postgres/pginstall/include/server/executor/nodeSubqueryscan.h +23 -0
  454. embedded_postgres/pginstall/include/server/executor/nodeTableFuncscan.h +23 -0
  455. embedded_postgres/pginstall/include/server/executor/nodeTidrangescan.h +24 -0
  456. embedded_postgres/pginstall/include/server/executor/nodeTidscan.h +23 -0
  457. embedded_postgres/pginstall/include/server/executor/nodeUnique.h +23 -0
  458. embedded_postgres/pginstall/include/server/executor/nodeValuesscan.h +22 -0
  459. embedded_postgres/pginstall/include/server/executor/nodeWindowAgg.h +23 -0
  460. embedded_postgres/pginstall/include/server/executor/nodeWorktablescan.h +22 -0
  461. embedded_postgres/pginstall/include/server/executor/spi.h +207 -0
  462. embedded_postgres/pginstall/include/server/executor/spi_priv.h +105 -0
  463. embedded_postgres/pginstall/include/server/executor/tablefunc.h +67 -0
  464. embedded_postgres/pginstall/include/server/executor/tqueue.h +32 -0
  465. embedded_postgres/pginstall/include/server/executor/tstoreReceiver.h +31 -0
  466. embedded_postgres/pginstall/include/server/executor/tuptable.h +539 -0
  467. embedded_postgres/pginstall/include/server/extension/cube/cubedata.h +82 -0
  468. embedded_postgres/pginstall/include/server/extension/hstore/hstore.h +205 -0
  469. embedded_postgres/pginstall/include/server/extension/isn/isn.h +34 -0
  470. embedded_postgres/pginstall/include/server/extension/ltree/ltree.h +319 -0
  471. embedded_postgres/pginstall/include/server/extension/seg/segdata.h +33 -0
  472. embedded_postgres/pginstall/include/server/extension/vector/halfvec.h +77 -0
  473. embedded_postgres/pginstall/include/server/extension/vector/sparsevec.h +51 -0
  474. embedded_postgres/pginstall/include/server/extension/vector/vector.h +37 -0
  475. embedded_postgres/pginstall/include/server/fe_utils/archive.h +21 -0
  476. embedded_postgres/pginstall/include/server/fe_utils/astreamer.h +231 -0
  477. embedded_postgres/pginstall/include/server/fe_utils/cancel.h +32 -0
  478. embedded_postgres/pginstall/include/server/fe_utils/conditional.h +107 -0
  479. embedded_postgres/pginstall/include/server/fe_utils/connect_utils.h +48 -0
  480. embedded_postgres/pginstall/include/server/fe_utils/mbprint.h +30 -0
  481. embedded_postgres/pginstall/include/server/fe_utils/option_utils.h +28 -0
  482. embedded_postgres/pginstall/include/server/fe_utils/parallel_slot.h +77 -0
  483. embedded_postgres/pginstall/include/server/fe_utils/print.h +236 -0
  484. embedded_postgres/pginstall/include/server/fe_utils/psqlscan.h +98 -0
  485. embedded_postgres/pginstall/include/server/fe_utils/psqlscan_int.h +181 -0
  486. embedded_postgres/pginstall/include/server/fe_utils/query_utils.h +24 -0
  487. embedded_postgres/pginstall/include/server/fe_utils/recovery_gen.h +30 -0
  488. embedded_postgres/pginstall/include/server/fe_utils/simple_list.h +71 -0
  489. embedded_postgres/pginstall/include/server/fe_utils/string_utils.h +71 -0
  490. embedded_postgres/pginstall/include/server/fmgr.h +851 -0
  491. embedded_postgres/pginstall/include/server/foreign/fdwapi.h +294 -0
  492. embedded_postgres/pginstall/include/server/foreign/foreign.h +85 -0
  493. embedded_postgres/pginstall/include/server/funcapi.h +360 -0
  494. embedded_postgres/pginstall/include/server/getopt_long.h +37 -0
  495. embedded_postgres/pginstall/include/server/jit/SectionMemoryManager.h +226 -0
  496. embedded_postgres/pginstall/include/server/jit/jit.h +106 -0
  497. embedded_postgres/pginstall/include/server/jit/llvmjit.h +152 -0
  498. embedded_postgres/pginstall/include/server/jit/llvmjit_backport.h +22 -0
  499. embedded_postgres/pginstall/include/server/jit/llvmjit_emit.h +320 -0
  500. embedded_postgres/pginstall/include/server/lib/binaryheap.h +69 -0
  501. embedded_postgres/pginstall/include/server/lib/bipartite_match.h +46 -0
  502. embedded_postgres/pginstall/include/server/lib/bloomfilter.h +27 -0
  503. embedded_postgres/pginstall/include/server/lib/dshash.h +130 -0
  504. embedded_postgres/pginstall/include/server/lib/hyperloglog.h +68 -0
  505. embedded_postgres/pginstall/include/server/lib/ilist.h +1159 -0
  506. embedded_postgres/pginstall/include/server/lib/integerset.h +24 -0
  507. embedded_postgres/pginstall/include/server/lib/knapsack.h +16 -0
  508. embedded_postgres/pginstall/include/server/lib/pairingheap.h +102 -0
  509. embedded_postgres/pginstall/include/server/lib/qunique.h +67 -0
  510. embedded_postgres/pginstall/include/server/lib/radixtree.h +3026 -0
  511. embedded_postgres/pginstall/include/server/lib/rbtree.h +81 -0
  512. embedded_postgres/pginstall/include/server/lib/simplehash.h +1210 -0
  513. embedded_postgres/pginstall/include/server/lib/sort_template.h +445 -0
  514. embedded_postgres/pginstall/include/server/lib/stringinfo.h +270 -0
  515. embedded_postgres/pginstall/include/server/libpq/auth.h +54 -0
  516. embedded_postgres/pginstall/include/server/libpq/be-fsstubs.h +32 -0
  517. embedded_postgres/pginstall/include/server/libpq/be-gssapi-common.h +27 -0
  518. embedded_postgres/pginstall/include/server/libpq/crypt.h +60 -0
  519. embedded_postgres/pginstall/include/server/libpq/hba.h +191 -0
  520. embedded_postgres/pginstall/include/server/libpq/ifaddr.h +30 -0
  521. embedded_postgres/pginstall/include/server/libpq/libpq-be-fe-helpers.h +457 -0
  522. embedded_postgres/pginstall/include/server/libpq/libpq-be.h +370 -0
  523. embedded_postgres/pginstall/include/server/libpq/libpq-fs.h +24 -0
  524. embedded_postgres/pginstall/include/server/libpq/libpq.h +145 -0
  525. embedded_postgres/pginstall/include/server/libpq/oauth.h +101 -0
  526. embedded_postgres/pginstall/include/server/libpq/pg-gssapi.h +42 -0
  527. embedded_postgres/pginstall/include/server/libpq/pqcomm.h +175 -0
  528. embedded_postgres/pginstall/include/server/libpq/pqformat.h +209 -0
  529. embedded_postgres/pginstall/include/server/libpq/pqmq.h +24 -0
  530. embedded_postgres/pginstall/include/server/libpq/pqsignal.h +54 -0
  531. embedded_postgres/pginstall/include/server/libpq/protocol.h +89 -0
  532. embedded_postgres/pginstall/include/server/libpq/sasl.h +147 -0
  533. embedded_postgres/pginstall/include/server/libpq/scram.h +37 -0
  534. embedded_postgres/pginstall/include/server/mb/pg_wchar.h +802 -0
  535. embedded_postgres/pginstall/include/server/mb/stringinfo_mb.h +24 -0
  536. embedded_postgres/pginstall/include/server/miscadmin.h +543 -0
  537. embedded_postgres/pginstall/include/server/nodes/bitmapset.h +140 -0
  538. embedded_postgres/pginstall/include/server/nodes/execnodes.h +2924 -0
  539. embedded_postgres/pginstall/include/server/nodes/extensible.h +164 -0
  540. embedded_postgres/pginstall/include/server/nodes/lockoptions.h +61 -0
  541. embedded_postgres/pginstall/include/server/nodes/makefuncs.h +128 -0
  542. embedded_postgres/pginstall/include/server/nodes/memnodes.h +152 -0
  543. embedded_postgres/pginstall/include/server/nodes/miscnodes.h +57 -0
  544. embedded_postgres/pginstall/include/server/nodes/multibitmapset.h +39 -0
  545. embedded_postgres/pginstall/include/server/nodes/nodeFuncs.h +224 -0
  546. embedded_postgres/pginstall/include/server/nodes/nodes.h +441 -0
  547. embedded_postgres/pginstall/include/server/nodes/nodetags.h +496 -0
  548. embedded_postgres/pginstall/include/server/nodes/params.h +170 -0
  549. embedded_postgres/pginstall/include/server/nodes/parsenodes.h +4335 -0
  550. embedded_postgres/pginstall/include/server/nodes/pathnodes.h +3609 -0
  551. embedded_postgres/pginstall/include/server/nodes/pg_list.h +686 -0
  552. embedded_postgres/pginstall/include/server/nodes/plannodes.h +1767 -0
  553. embedded_postgres/pginstall/include/server/nodes/primnodes.h +2374 -0
  554. embedded_postgres/pginstall/include/server/nodes/print.h +34 -0
  555. embedded_postgres/pginstall/include/server/nodes/queryjumble.h +113 -0
  556. embedded_postgres/pginstall/include/server/nodes/readfuncs.h +38 -0
  557. embedded_postgres/pginstall/include/server/nodes/replnodes.h +132 -0
  558. embedded_postgres/pginstall/include/server/nodes/subscripting.h +167 -0
  559. embedded_postgres/pginstall/include/server/nodes/supportnodes.h +393 -0
  560. embedded_postgres/pginstall/include/server/nodes/tidbitmap.h +128 -0
  561. embedded_postgres/pginstall/include/server/nodes/value.h +90 -0
  562. embedded_postgres/pginstall/include/server/optimizer/appendinfo.h +50 -0
  563. embedded_postgres/pginstall/include/server/optimizer/clauses.h +72 -0
  564. embedded_postgres/pginstall/include/server/optimizer/cost.h +226 -0
  565. embedded_postgres/pginstall/include/server/optimizer/geqo.h +90 -0
  566. embedded_postgres/pginstall/include/server/optimizer/geqo_copy.h +30 -0
  567. embedded_postgres/pginstall/include/server/optimizer/geqo_gene.h +45 -0
  568. embedded_postgres/pginstall/include/server/optimizer/geqo_misc.h +34 -0
  569. embedded_postgres/pginstall/include/server/optimizer/geqo_mutation.h +30 -0
  570. embedded_postgres/pginstall/include/server/optimizer/geqo_pool.h +40 -0
  571. embedded_postgres/pginstall/include/server/optimizer/geqo_random.h +38 -0
  572. embedded_postgres/pginstall/include/server/optimizer/geqo_recombination.h +89 -0
  573. embedded_postgres/pginstall/include/server/optimizer/geqo_selection.h +33 -0
  574. embedded_postgres/pginstall/include/server/optimizer/inherit.h +29 -0
  575. embedded_postgres/pginstall/include/server/optimizer/joininfo.h +30 -0
  576. embedded_postgres/pginstall/include/server/optimizer/optimizer.h +215 -0
  577. embedded_postgres/pginstall/include/server/optimizer/orclauses.h +21 -0
  578. embedded_postgres/pginstall/include/server/optimizer/paramassign.h +39 -0
  579. embedded_postgres/pginstall/include/server/optimizer/pathnode.h +356 -0
  580. embedded_postgres/pginstall/include/server/optimizer/paths.h +282 -0
  581. embedded_postgres/pginstall/include/server/optimizer/placeholder.h +37 -0
  582. embedded_postgres/pginstall/include/server/optimizer/plancat.h +82 -0
  583. embedded_postgres/pginstall/include/server/optimizer/planmain.h +134 -0
  584. embedded_postgres/pginstall/include/server/optimizer/planner.h +62 -0
  585. embedded_postgres/pginstall/include/server/optimizer/prep.h +58 -0
  586. embedded_postgres/pginstall/include/server/optimizer/restrictinfo.h +93 -0
  587. embedded_postgres/pginstall/include/server/optimizer/subselect.h +46 -0
  588. embedded_postgres/pginstall/include/server/optimizer/tlist.h +61 -0
  589. embedded_postgres/pginstall/include/server/parser/analyze.h +68 -0
  590. embedded_postgres/pginstall/include/server/parser/kwlist.h +521 -0
  591. embedded_postgres/pginstall/include/server/parser/parse_agg.h +65 -0
  592. embedded_postgres/pginstall/include/server/parser/parse_clause.h +57 -0
  593. embedded_postgres/pginstall/include/server/parser/parse_coerce.h +105 -0
  594. embedded_postgres/pginstall/include/server/parser/parse_collate.h +27 -0
  595. embedded_postgres/pginstall/include/server/parser/parse_cte.h +24 -0
  596. embedded_postgres/pginstall/include/server/parser/parse_enr.h +22 -0
  597. embedded_postgres/pginstall/include/server/parser/parse_expr.h +25 -0
  598. embedded_postgres/pginstall/include/server/parser/parse_func.h +74 -0
  599. embedded_postgres/pginstall/include/server/parser/parse_merge.h +21 -0
  600. embedded_postgres/pginstall/include/server/parser/parse_node.h +368 -0
  601. embedded_postgres/pginstall/include/server/parser/parse_oper.h +68 -0
  602. embedded_postgres/pginstall/include/server/parser/parse_param.h +25 -0
  603. embedded_postgres/pginstall/include/server/parser/parse_relation.h +133 -0
  604. embedded_postgres/pginstall/include/server/parser/parse_target.h +58 -0
  605. embedded_postgres/pginstall/include/server/parser/parse_type.h +61 -0
  606. embedded_postgres/pginstall/include/server/parser/parse_utilcmd.h +44 -0
  607. embedded_postgres/pginstall/include/server/parser/parser.h +68 -0
  608. embedded_postgres/pginstall/include/server/parser/parsetree.h +61 -0
  609. embedded_postgres/pginstall/include/server/parser/scanner.h +150 -0
  610. embedded_postgres/pginstall/include/server/parser/scansup.h +27 -0
  611. embedded_postgres/pginstall/include/server/partitioning/partbounds.h +146 -0
  612. embedded_postgres/pginstall/include/server/partitioning/partdefs.h +26 -0
  613. embedded_postgres/pginstall/include/server/partitioning/partdesc.h +75 -0
  614. embedded_postgres/pginstall/include/server/partitioning/partprune.h +81 -0
  615. embedded_postgres/pginstall/include/server/pg_config.h +824 -0
  616. embedded_postgres/pginstall/include/server/pg_config_manual.h +363 -0
  617. embedded_postgres/pginstall/include/server/pg_config_os.h +59 -0
  618. embedded_postgres/pginstall/include/server/pg_getopt.h +57 -0
  619. embedded_postgres/pginstall/include/server/pg_trace.h +17 -0
  620. embedded_postgres/pginstall/include/server/pgstat.h +842 -0
  621. embedded_postgres/pginstall/include/server/pgtar.h +89 -0
  622. embedded_postgres/pginstall/include/server/pgtime.h +101 -0
  623. embedded_postgres/pginstall/include/server/plpgsql.h +1336 -0
  624. embedded_postgres/pginstall/include/server/port/atomics/arch-arm.h +32 -0
  625. embedded_postgres/pginstall/include/server/port/atomics/arch-ppc.h +256 -0
  626. embedded_postgres/pginstall/include/server/port/atomics/arch-x86.h +246 -0
  627. embedded_postgres/pginstall/include/server/port/atomics/fallback.h +42 -0
  628. embedded_postgres/pginstall/include/server/port/atomics/generic-gcc.h +327 -0
  629. embedded_postgres/pginstall/include/server/port/atomics/generic-msvc.h +115 -0
  630. embedded_postgres/pginstall/include/server/port/atomics/generic-sunpro.h +113 -0
  631. embedded_postgres/pginstall/include/server/port/atomics/generic.h +427 -0
  632. embedded_postgres/pginstall/include/server/port/atomics.h +611 -0
  633. embedded_postgres/pginstall/include/server/port/cygwin.h +23 -0
  634. embedded_postgres/pginstall/include/server/port/darwin.h +13 -0
  635. embedded_postgres/pginstall/include/server/port/freebsd.h +8 -0
  636. embedded_postgres/pginstall/include/server/port/linux.h +22 -0
  637. embedded_postgres/pginstall/include/server/port/netbsd.h +1 -0
  638. embedded_postgres/pginstall/include/server/port/openbsd.h +1 -0
  639. embedded_postgres/pginstall/include/server/port/pg_bitutils.h +445 -0
  640. embedded_postgres/pginstall/include/server/port/pg_bswap.h +161 -0
  641. embedded_postgres/pginstall/include/server/port/pg_crc32c.h +169 -0
  642. embedded_postgres/pginstall/include/server/port/pg_iovec.h +127 -0
  643. embedded_postgres/pginstall/include/server/port/pg_lfind.h +209 -0
  644. embedded_postgres/pginstall/include/server/port/pg_numa.h +42 -0
  645. embedded_postgres/pginstall/include/server/port/pg_pthread.h +41 -0
  646. embedded_postgres/pginstall/include/server/port/simd.h +422 -0
  647. embedded_postgres/pginstall/include/server/port/solaris.h +35 -0
  648. embedded_postgres/pginstall/include/server/port/win32/arpa/inet.h +3 -0
  649. embedded_postgres/pginstall/include/server/port/win32/dlfcn.h +1 -0
  650. embedded_postgres/pginstall/include/server/port/win32/grp.h +1 -0
  651. embedded_postgres/pginstall/include/server/port/win32/netdb.h +7 -0
  652. embedded_postgres/pginstall/include/server/port/win32/netinet/in.h +3 -0
  653. embedded_postgres/pginstall/include/server/port/win32/netinet/tcp.h +7 -0
  654. embedded_postgres/pginstall/include/server/port/win32/pwd.h +3 -0
  655. embedded_postgres/pginstall/include/server/port/win32/sys/resource.h +20 -0
  656. embedded_postgres/pginstall/include/server/port/win32/sys/select.h +3 -0
  657. embedded_postgres/pginstall/include/server/port/win32/sys/socket.h +34 -0
  658. embedded_postgres/pginstall/include/server/port/win32/sys/un.h +17 -0
  659. embedded_postgres/pginstall/include/server/port/win32/sys/wait.h +3 -0
  660. embedded_postgres/pginstall/include/server/port/win32.h +59 -0
  661. embedded_postgres/pginstall/include/server/port/win32_msvc/dirent.h +34 -0
  662. embedded_postgres/pginstall/include/server/port/win32_msvc/sys/file.h +1 -0
  663. embedded_postgres/pginstall/include/server/port/win32_msvc/sys/param.h +1 -0
  664. embedded_postgres/pginstall/include/server/port/win32_msvc/sys/time.h +1 -0
  665. embedded_postgres/pginstall/include/server/port/win32_msvc/unistd.h +9 -0
  666. embedded_postgres/pginstall/include/server/port/win32_msvc/utime.h +3 -0
  667. embedded_postgres/pginstall/include/server/port/win32_port.h +589 -0
  668. embedded_postgres/pginstall/include/server/port/win32ntdll.h +34 -0
  669. embedded_postgres/pginstall/include/server/port.h +565 -0
  670. embedded_postgres/pginstall/include/server/portability/instr_time.h +197 -0
  671. embedded_postgres/pginstall/include/server/portability/mem.h +48 -0
  672. embedded_postgres/pginstall/include/server/postgres.h +584 -0
  673. embedded_postgres/pginstall/include/server/postgres_ext.h +74 -0
  674. embedded_postgres/pginstall/include/server/postgres_fe.h +34 -0
  675. embedded_postgres/pginstall/include/server/postmaster/autovacuum.h +71 -0
  676. embedded_postgres/pginstall/include/server/postmaster/auxprocess.h +18 -0
  677. embedded_postgres/pginstall/include/server/postmaster/bgworker.h +164 -0
  678. embedded_postgres/pginstall/include/server/postmaster/bgworker_internals.h +57 -0
  679. embedded_postgres/pginstall/include/server/postmaster/bgwriter.h +45 -0
  680. embedded_postgres/pginstall/include/server/postmaster/fork_process.h +17 -0
  681. embedded_postgres/pginstall/include/server/postmaster/interrupt.h +32 -0
  682. embedded_postgres/pginstall/include/server/postmaster/pgarch.h +36 -0
  683. embedded_postgres/pginstall/include/server/postmaster/postmaster.h +145 -0
  684. embedded_postgres/pginstall/include/server/postmaster/startup.h +41 -0
  685. embedded_postgres/pginstall/include/server/postmaster/syslogger.h +105 -0
  686. embedded_postgres/pginstall/include/server/postmaster/walsummarizer.h +35 -0
  687. embedded_postgres/pginstall/include/server/postmaster/walwriter.h +23 -0
  688. embedded_postgres/pginstall/include/server/regex/regcustom.h +99 -0
  689. embedded_postgres/pginstall/include/server/regex/regerrs.h +83 -0
  690. embedded_postgres/pginstall/include/server/regex/regex.h +272 -0
  691. embedded_postgres/pginstall/include/server/regex/regexport.h +61 -0
  692. embedded_postgres/pginstall/include/server/regex/regguts.h +563 -0
  693. embedded_postgres/pginstall/include/server/replication/conflict.h +90 -0
  694. embedded_postgres/pginstall/include/server/replication/decode.h +34 -0
  695. embedded_postgres/pginstall/include/server/replication/logical.h +158 -0
  696. embedded_postgres/pginstall/include/server/replication/logicallauncher.h +34 -0
  697. embedded_postgres/pginstall/include/server/replication/logicalproto.h +280 -0
  698. embedded_postgres/pginstall/include/server/replication/logicalrelation.h +54 -0
  699. embedded_postgres/pginstall/include/server/replication/logicalworker.h +33 -0
  700. embedded_postgres/pginstall/include/server/replication/message.h +42 -0
  701. embedded_postgres/pginstall/include/server/replication/origin.h +83 -0
  702. embedded_postgres/pginstall/include/server/replication/output_plugin.h +250 -0
  703. embedded_postgres/pginstall/include/server/replication/pgoutput.h +39 -0
  704. embedded_postgres/pginstall/include/server/replication/reorderbuffer.h +783 -0
  705. embedded_postgres/pginstall/include/server/replication/slot.h +327 -0
  706. embedded_postgres/pginstall/include/server/replication/slotsync.h +45 -0
  707. embedded_postgres/pginstall/include/server/replication/snapbuild.h +101 -0
  708. embedded_postgres/pginstall/include/server/replication/snapbuild_internal.h +199 -0
  709. embedded_postgres/pginstall/include/server/replication/syncrep.h +110 -0
  710. embedded_postgres/pginstall/include/server/replication/walreceiver.h +513 -0
  711. embedded_postgres/pginstall/include/server/replication/walsender.h +75 -0
  712. embedded_postgres/pginstall/include/server/replication/walsender_private.h +155 -0
  713. embedded_postgres/pginstall/include/server/replication/worker_internal.h +354 -0
  714. embedded_postgres/pginstall/include/server/rewrite/prs2lock.h +46 -0
  715. embedded_postgres/pginstall/include/server/rewrite/rewriteDefine.h +44 -0
  716. embedded_postgres/pginstall/include/server/rewrite/rewriteHandler.h +44 -0
  717. embedded_postgres/pginstall/include/server/rewrite/rewriteManip.h +122 -0
  718. embedded_postgres/pginstall/include/server/rewrite/rewriteRemove.h +21 -0
  719. embedded_postgres/pginstall/include/server/rewrite/rewriteSearchCycle.h +21 -0
  720. embedded_postgres/pginstall/include/server/rewrite/rewriteSupport.h +26 -0
  721. embedded_postgres/pginstall/include/server/rewrite/rowsecurity.h +49 -0
  722. embedded_postgres/pginstall/include/server/snowball/header.h +67 -0
  723. embedded_postgres/pginstall/include/server/snowball/libstemmer/api.h +32 -0
  724. embedded_postgres/pginstall/include/server/snowball/libstemmer/header.h +61 -0
  725. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_basque.h +15 -0
  726. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_catalan.h +15 -0
  727. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_danish.h +15 -0
  728. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_dutch.h +15 -0
  729. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_english.h +15 -0
  730. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_finnish.h +15 -0
  731. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_french.h +15 -0
  732. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_german.h +15 -0
  733. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_indonesian.h +15 -0
  734. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_irish.h +15 -0
  735. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_italian.h +15 -0
  736. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_norwegian.h +15 -0
  737. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_porter.h +15 -0
  738. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_portuguese.h +15 -0
  739. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_spanish.h +15 -0
  740. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_1_swedish.h +15 -0
  741. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_ISO_8859_2_hungarian.h +15 -0
  742. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_KOI8_R_russian.h +15 -0
  743. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_arabic.h +15 -0
  744. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_armenian.h +15 -0
  745. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_basque.h +15 -0
  746. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_catalan.h +15 -0
  747. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_danish.h +15 -0
  748. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_dutch.h +15 -0
  749. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_english.h +15 -0
  750. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_estonian.h +15 -0
  751. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_finnish.h +15 -0
  752. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_french.h +15 -0
  753. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_german.h +15 -0
  754. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_greek.h +15 -0
  755. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_hindi.h +15 -0
  756. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_hungarian.h +15 -0
  757. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_indonesian.h +15 -0
  758. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_irish.h +15 -0
  759. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_italian.h +15 -0
  760. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_lithuanian.h +15 -0
  761. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_nepali.h +15 -0
  762. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_norwegian.h +15 -0
  763. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_porter.h +15 -0
  764. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_portuguese.h +15 -0
  765. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_romanian.h +15 -0
  766. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_russian.h +15 -0
  767. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_serbian.h +15 -0
  768. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_spanish.h +15 -0
  769. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_swedish.h +15 -0
  770. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_tamil.h +15 -0
  771. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_turkish.h +15 -0
  772. embedded_postgres/pginstall/include/server/snowball/libstemmer/stem_UTF_8_yiddish.h +15 -0
  773. embedded_postgres/pginstall/include/server/statistics/extended_stats_internal.h +130 -0
  774. embedded_postgres/pginstall/include/server/statistics/stat_utils.h +43 -0
  775. embedded_postgres/pginstall/include/server/statistics/statistics.h +130 -0
  776. embedded_postgres/pginstall/include/server/storage/aio.h +369 -0
  777. embedded_postgres/pginstall/include/server/storage/aio_internal.h +416 -0
  778. embedded_postgres/pginstall/include/server/storage/aio_subsys.h +37 -0
  779. embedded_postgres/pginstall/include/server/storage/aio_types.h +137 -0
  780. embedded_postgres/pginstall/include/server/storage/barrier.h +46 -0
  781. embedded_postgres/pginstall/include/server/storage/block.h +108 -0
  782. embedded_postgres/pginstall/include/server/storage/buf.h +46 -0
  783. embedded_postgres/pginstall/include/server/storage/buf_internals.h +494 -0
  784. embedded_postgres/pginstall/include/server/storage/buffile.h +59 -0
  785. embedded_postgres/pginstall/include/server/storage/bufmgr.h +424 -0
  786. embedded_postgres/pginstall/include/server/storage/bufpage.h +511 -0
  787. embedded_postgres/pginstall/include/server/storage/bulk_write.h +41 -0
  788. embedded_postgres/pginstall/include/server/storage/checksum.h +24 -0
  789. embedded_postgres/pginstall/include/server/storage/checksum_impl.h +215 -0
  790. embedded_postgres/pginstall/include/server/storage/condition_variable.h +73 -0
  791. embedded_postgres/pginstall/include/server/storage/copydir.h +28 -0
  792. embedded_postgres/pginstall/include/server/storage/dsm.h +61 -0
  793. embedded_postgres/pginstall/include/server/storage/dsm_impl.h +79 -0
  794. embedded_postgres/pginstall/include/server/storage/dsm_registry.h +23 -0
  795. embedded_postgres/pginstall/include/server/storage/fd.h +233 -0
  796. embedded_postgres/pginstall/include/server/storage/fileset.h +40 -0
  797. embedded_postgres/pginstall/include/server/storage/freespace.h +39 -0
  798. embedded_postgres/pginstall/include/server/storage/fsm_internals.h +72 -0
  799. embedded_postgres/pginstall/include/server/storage/indexfsm.h +26 -0
  800. embedded_postgres/pginstall/include/server/storage/io_worker.h +22 -0
  801. embedded_postgres/pginstall/include/server/storage/ipc.h +87 -0
  802. embedded_postgres/pginstall/include/server/storage/item.h +19 -0
  803. embedded_postgres/pginstall/include/server/storage/itemid.h +184 -0
  804. embedded_postgres/pginstall/include/server/storage/itemptr.h +245 -0
  805. embedded_postgres/pginstall/include/server/storage/large_object.h +100 -0
  806. embedded_postgres/pginstall/include/server/storage/latch.h +140 -0
  807. embedded_postgres/pginstall/include/server/storage/lmgr.h +127 -0
  808. embedded_postgres/pginstall/include/server/storage/lock.h +630 -0
  809. embedded_postgres/pginstall/include/server/storage/lockdefs.h +61 -0
  810. embedded_postgres/pginstall/include/server/storage/lwlock.h +234 -0
  811. embedded_postgres/pginstall/include/server/storage/lwlocklist.h +86 -0
  812. embedded_postgres/pginstall/include/server/storage/lwlocknames.h +48 -0
  813. embedded_postgres/pginstall/include/server/storage/md.h +65 -0
  814. embedded_postgres/pginstall/include/server/storage/off.h +57 -0
  815. embedded_postgres/pginstall/include/server/storage/pg_sema.h +61 -0
  816. embedded_postgres/pginstall/include/server/storage/pg_shmem.h +94 -0
  817. embedded_postgres/pginstall/include/server/storage/pmsignal.h +110 -0
  818. embedded_postgres/pginstall/include/server/storage/predicate.h +84 -0
  819. embedded_postgres/pginstall/include/server/storage/predicate_internals.h +478 -0
  820. embedded_postgres/pginstall/include/server/storage/proc.h +516 -0
  821. embedded_postgres/pginstall/include/server/storage/procarray.h +103 -0
  822. embedded_postgres/pginstall/include/server/storage/proclist.h +219 -0
  823. embedded_postgres/pginstall/include/server/storage/proclist_types.h +53 -0
  824. embedded_postgres/pginstall/include/server/storage/procnumber.h +56 -0
  825. embedded_postgres/pginstall/include/server/storage/procsignal.h +95 -0
  826. embedded_postgres/pginstall/include/server/storage/read_stream.h +106 -0
  827. embedded_postgres/pginstall/include/server/storage/reinit.h +30 -0
  828. embedded_postgres/pginstall/include/server/storage/relfilelocator.h +100 -0
  829. embedded_postgres/pginstall/include/server/storage/s_lock.h +755 -0
  830. embedded_postgres/pginstall/include/server/storage/sharedfileset.h +37 -0
  831. embedded_postgres/pginstall/include/server/storage/shm_mq.h +86 -0
  832. embedded_postgres/pginstall/include/server/storage/shm_toc.h +58 -0
  833. embedded_postgres/pginstall/include/server/storage/shmem.h +62 -0
  834. embedded_postgres/pginstall/include/server/storage/sinval.h +167 -0
  835. embedded_postgres/pginstall/include/server/storage/sinvaladt.h +41 -0
  836. embedded_postgres/pginstall/include/server/storage/smgr.h +144 -0
  837. embedded_postgres/pginstall/include/server/storage/spin.h +65 -0
  838. embedded_postgres/pginstall/include/server/storage/standby.h +109 -0
  839. embedded_postgres/pginstall/include/server/storage/standbydefs.h +74 -0
  840. embedded_postgres/pginstall/include/server/storage/sync.h +66 -0
  841. embedded_postgres/pginstall/include/server/storage/waiteventset.h +98 -0
  842. embedded_postgres/pginstall/include/server/tcop/backend_startup.h +122 -0
  843. embedded_postgres/pginstall/include/server/tcop/cmdtag.h +62 -0
  844. embedded_postgres/pginstall/include/server/tcop/cmdtaglist.h +219 -0
  845. embedded_postgres/pginstall/include/server/tcop/deparse_utility.h +108 -0
  846. embedded_postgres/pginstall/include/server/tcop/dest.h +148 -0
  847. embedded_postgres/pginstall/include/server/tcop/fastpath.h +20 -0
  848. embedded_postgres/pginstall/include/server/tcop/pquery.h +51 -0
  849. embedded_postgres/pginstall/include/server/tcop/tcopprot.h +94 -0
  850. embedded_postgres/pginstall/include/server/tcop/utility.h +112 -0
  851. embedded_postgres/pginstall/include/server/tsearch/dicts/regis.h +49 -0
  852. embedded_postgres/pginstall/include/server/tsearch/dicts/spell.h +241 -0
  853. embedded_postgres/pginstall/include/server/tsearch/ts_cache.h +96 -0
  854. embedded_postgres/pginstall/include/server/tsearch/ts_locale.h +74 -0
  855. embedded_postgres/pginstall/include/server/tsearch/ts_public.h +159 -0
  856. embedded_postgres/pginstall/include/server/tsearch/ts_type.h +290 -0
  857. embedded_postgres/pginstall/include/server/tsearch/ts_utils.h +281 -0
  858. embedded_postgres/pginstall/include/server/utils/acl.h +293 -0
  859. embedded_postgres/pginstall/include/server/utils/aclchk_internal.h +45 -0
  860. embedded_postgres/pginstall/include/server/utils/array.h +481 -0
  861. embedded_postgres/pginstall/include/server/utils/arrayaccess.h +118 -0
  862. embedded_postgres/pginstall/include/server/utils/ascii.h +84 -0
  863. embedded_postgres/pginstall/include/server/utils/attoptcache.h +28 -0
  864. embedded_postgres/pginstall/include/server/utils/backend_progress.h +46 -0
  865. embedded_postgres/pginstall/include/server/utils/backend_status.h +349 -0
  866. embedded_postgres/pginstall/include/server/utils/builtins.h +140 -0
  867. embedded_postgres/pginstall/include/server/utils/bytea.h +28 -0
  868. embedded_postgres/pginstall/include/server/utils/cash.h +35 -0
  869. embedded_postgres/pginstall/include/server/utils/catcache.h +232 -0
  870. embedded_postgres/pginstall/include/server/utils/combocid.h +28 -0
  871. embedded_postgres/pginstall/include/server/utils/conffiles.h +27 -0
  872. embedded_postgres/pginstall/include/server/utils/date.h +118 -0
  873. embedded_postgres/pginstall/include/server/utils/datetime.h +369 -0
  874. embedded_postgres/pginstall/include/server/utils/datum.h +76 -0
  875. embedded_postgres/pginstall/include/server/utils/dsa.h +166 -0
  876. embedded_postgres/pginstall/include/server/utils/dynahash.h +20 -0
  877. embedded_postgres/pginstall/include/server/utils/elog.h +532 -0
  878. embedded_postgres/pginstall/include/server/utils/errcodes.h +356 -0
  879. embedded_postgres/pginstall/include/server/utils/evtcache.h +38 -0
  880. embedded_postgres/pginstall/include/server/utils/expandeddatum.h +170 -0
  881. embedded_postgres/pginstall/include/server/utils/expandedrecord.h +241 -0
  882. embedded_postgres/pginstall/include/server/utils/float.h +357 -0
  883. embedded_postgres/pginstall/include/server/utils/fmgroids.h +3430 -0
  884. embedded_postgres/pginstall/include/server/utils/fmgrprotos.h +2982 -0
  885. embedded_postgres/pginstall/include/server/utils/fmgrtab.h +49 -0
  886. embedded_postgres/pginstall/include/server/utils/formatting.h +35 -0
  887. embedded_postgres/pginstall/include/server/utils/freepage.h +99 -0
  888. embedded_postgres/pginstall/include/server/utils/funccache.h +134 -0
  889. embedded_postgres/pginstall/include/server/utils/geo_decls.h +285 -0
  890. embedded_postgres/pginstall/include/server/utils/guc.h +489 -0
  891. embedded_postgres/pginstall/include/server/utils/guc_hooks.h +178 -0
  892. embedded_postgres/pginstall/include/server/utils/guc_tables.h +341 -0
  893. embedded_postgres/pginstall/include/server/utils/help_config.h +17 -0
  894. embedded_postgres/pginstall/include/server/utils/hsearch.h +158 -0
  895. embedded_postgres/pginstall/include/server/utils/index_selfuncs.h +74 -0
  896. embedded_postgres/pginstall/include/server/utils/inet.h +184 -0
  897. embedded_postgres/pginstall/include/server/utils/injection_point.h +54 -0
  898. embedded_postgres/pginstall/include/server/utils/inval.h +84 -0
  899. embedded_postgres/pginstall/include/server/utils/json.h +33 -0
  900. embedded_postgres/pginstall/include/server/utils/jsonb.h +440 -0
  901. embedded_postgres/pginstall/include/server/utils/jsonfuncs.h +99 -0
  902. embedded_postgres/pginstall/include/server/utils/jsonpath.h +310 -0
  903. embedded_postgres/pginstall/include/server/utils/logtape.h +77 -0
  904. embedded_postgres/pginstall/include/server/utils/lsyscache.h +224 -0
  905. embedded_postgres/pginstall/include/server/utils/memdebug.h +82 -0
  906. embedded_postgres/pginstall/include/server/utils/memutils.h +322 -0
  907. embedded_postgres/pginstall/include/server/utils/memutils_internal.h +176 -0
  908. embedded_postgres/pginstall/include/server/utils/memutils_memorychunk.h +253 -0
  909. embedded_postgres/pginstall/include/server/utils/multirangetypes.h +150 -0
  910. embedded_postgres/pginstall/include/server/utils/numeric.h +115 -0
  911. embedded_postgres/pginstall/include/server/utils/palloc.h +165 -0
  912. embedded_postgres/pginstall/include/server/utils/partcache.h +103 -0
  913. embedded_postgres/pginstall/include/server/utils/pg_crc.h +107 -0
  914. embedded_postgres/pginstall/include/server/utils/pg_locale.h +185 -0
  915. embedded_postgres/pginstall/include/server/utils/pg_lsn.h +38 -0
  916. embedded_postgres/pginstall/include/server/utils/pg_rusage.h +32 -0
  917. embedded_postgres/pginstall/include/server/utils/pgstat_internal.h +945 -0
  918. embedded_postgres/pginstall/include/server/utils/pgstat_kind.h +72 -0
  919. embedded_postgres/pginstall/include/server/utils/pidfile.h +56 -0
  920. embedded_postgres/pginstall/include/server/utils/plancache.h +256 -0
  921. embedded_postgres/pginstall/include/server/utils/portal.h +251 -0
  922. embedded_postgres/pginstall/include/server/utils/probes.h +114 -0
  923. embedded_postgres/pginstall/include/server/utils/ps_status.h +47 -0
  924. embedded_postgres/pginstall/include/server/utils/queryenvironment.h +74 -0
  925. embedded_postgres/pginstall/include/server/utils/rangetypes.h +168 -0
  926. embedded_postgres/pginstall/include/server/utils/regproc.h +39 -0
  927. embedded_postgres/pginstall/include/server/utils/rel.h +731 -0
  928. embedded_postgres/pginstall/include/server/utils/relcache.h +163 -0
  929. embedded_postgres/pginstall/include/server/utils/relfilenumbermap.h +21 -0
  930. embedded_postgres/pginstall/include/server/utils/relmapper.h +73 -0
  931. embedded_postgres/pginstall/include/server/utils/relptr.h +93 -0
  932. embedded_postgres/pginstall/include/server/utils/reltrigger.h +81 -0
  933. embedded_postgres/pginstall/include/server/utils/resowner.h +172 -0
  934. embedded_postgres/pginstall/include/server/utils/rls.h +50 -0
  935. embedded_postgres/pginstall/include/server/utils/ruleutils.h +57 -0
  936. embedded_postgres/pginstall/include/server/utils/sampling.h +64 -0
  937. embedded_postgres/pginstall/include/server/utils/selfuncs.h +251 -0
  938. embedded_postgres/pginstall/include/server/utils/sharedtuplestore.h +61 -0
  939. embedded_postgres/pginstall/include/server/utils/skipsupport.h +98 -0
  940. embedded_postgres/pginstall/include/server/utils/snapmgr.h +122 -0
  941. embedded_postgres/pginstall/include/server/utils/snapshot.h +212 -0
  942. embedded_postgres/pginstall/include/server/utils/sortsupport.h +391 -0
  943. embedded_postgres/pginstall/include/server/utils/spccache.h +21 -0
  944. embedded_postgres/pginstall/include/server/utils/syscache.h +136 -0
  945. embedded_postgres/pginstall/include/server/utils/timeout.h +96 -0
  946. embedded_postgres/pginstall/include/server/utils/timestamp.h +159 -0
  947. embedded_postgres/pginstall/include/server/utils/tuplesort.h +480 -0
  948. embedded_postgres/pginstall/include/server/utils/tuplestore.h +91 -0
  949. embedded_postgres/pginstall/include/server/utils/typcache.h +215 -0
  950. embedded_postgres/pginstall/include/server/utils/tzparser.h +39 -0
  951. embedded_postgres/pginstall/include/server/utils/usercontext.h +26 -0
  952. embedded_postgres/pginstall/include/server/utils/uuid.h +42 -0
  953. embedded_postgres/pginstall/include/server/utils/varbit.h +89 -0
  954. embedded_postgres/pginstall/include/server/utils/varlena.h +53 -0
  955. embedded_postgres/pginstall/include/server/utils/wait_classes.h +29 -0
  956. embedded_postgres/pginstall/include/server/utils/wait_event.h +92 -0
  957. embedded_postgres/pginstall/include/server/utils/wait_event_types.h +225 -0
  958. embedded_postgres/pginstall/include/server/utils/xid8.h +32 -0
  959. embedded_postgres/pginstall/include/server/utils/xml.h +94 -0
  960. embedded_postgres/pginstall/include/server/varatt.h +358 -0
  961. embedded_postgres/pginstall/include/server/windowapi.h +64 -0
  962. embedded_postgres/pginstall/include/sql3types.h +43 -0
  963. embedded_postgres/pginstall/include/sqlca.h +66 -0
  964. embedded_postgres/pginstall/include/sqlda-compat.h +47 -0
  965. embedded_postgres/pginstall/include/sqlda-native.h +43 -0
  966. embedded_postgres/pginstall/include/sqlda.h +18 -0
  967. embedded_postgres/pginstall/lib/_int.dll +0 -0
  968. embedded_postgres/pginstall/lib/amcheck.dll +0 -0
  969. embedded_postgres/pginstall/lib/auth_delay.dll +0 -0
  970. embedded_postgres/pginstall/lib/auto_explain.dll +0 -0
  971. embedded_postgres/pginstall/lib/autoinc.dll +0 -0
  972. embedded_postgres/pginstall/lib/basebackup_to_shell.dll +0 -0
  973. embedded_postgres/pginstall/lib/basic_archive.dll +0 -0
  974. embedded_postgres/pginstall/lib/bloom.dll +0 -0
  975. embedded_postgres/pginstall/lib/btree_gin.dll +0 -0
  976. embedded_postgres/pginstall/lib/btree_gist.dll +0 -0
  977. embedded_postgres/pginstall/lib/citext.dll +0 -0
  978. embedded_postgres/pginstall/lib/cube.dll +0 -0
  979. embedded_postgres/pginstall/lib/cyrillic_and_mic.dll +0 -0
  980. embedded_postgres/pginstall/lib/dblink.dll +0 -0
  981. embedded_postgres/pginstall/lib/dict_int.dll +0 -0
  982. embedded_postgres/pginstall/lib/dict_snowball.dll +0 -0
  983. embedded_postgres/pginstall/lib/dict_xsyn.dll +0 -0
  984. embedded_postgres/pginstall/lib/earthdistance.dll +0 -0
  985. embedded_postgres/pginstall/lib/euc2004_sjis2004.dll +0 -0
  986. embedded_postgres/pginstall/lib/euc_cn_and_mic.dll +0 -0
  987. embedded_postgres/pginstall/lib/euc_jp_and_sjis.dll +0 -0
  988. embedded_postgres/pginstall/lib/euc_kr_and_mic.dll +0 -0
  989. embedded_postgres/pginstall/lib/euc_tw_and_big5.dll +0 -0
  990. embedded_postgres/pginstall/lib/file_fdw.dll +0 -0
  991. embedded_postgres/pginstall/lib/fuzzystrmatch.dll +0 -0
  992. embedded_postgres/pginstall/lib/hstore.dll +0 -0
  993. embedded_postgres/pginstall/lib/insert_username.dll +0 -0
  994. embedded_postgres/pginstall/lib/isn.dll +0 -0
  995. embedded_postgres/pginstall/lib/latin2_and_win1250.dll +0 -0
  996. embedded_postgres/pginstall/lib/latin_and_mic.dll +0 -0
  997. embedded_postgres/pginstall/lib/libecpg.a +0 -0
  998. embedded_postgres/pginstall/lib/libecpg.dll +0 -0
  999. embedded_postgres/pginstall/lib/libecpg_compat.a +0 -0
  1000. embedded_postgres/pginstall/lib/libecpg_compat.dll +0 -0
  1001. embedded_postgres/pginstall/lib/libpgcommon.a +0 -0
  1002. embedded_postgres/pginstall/lib/libpgcommon_shlib.a +0 -0
  1003. embedded_postgres/pginstall/lib/libpgfeutils.a +0 -0
  1004. embedded_postgres/pginstall/lib/libpgport.a +0 -0
  1005. embedded_postgres/pginstall/lib/libpgport_shlib.a +0 -0
  1006. embedded_postgres/pginstall/lib/libpgtypes.a +0 -0
  1007. embedded_postgres/pginstall/lib/libpgtypes.dll +0 -0
  1008. embedded_postgres/pginstall/lib/libpostgres.a +0 -0
  1009. embedded_postgres/pginstall/lib/libpq.a +0 -0
  1010. embedded_postgres/pginstall/lib/libpq.dll +0 -0
  1011. embedded_postgres/pginstall/lib/libpqwalreceiver.dll +0 -0
  1012. embedded_postgres/pginstall/lib/lo.dll +0 -0
  1013. embedded_postgres/pginstall/lib/ltree.dll +0 -0
  1014. embedded_postgres/pginstall/lib/moddatetime.dll +0 -0
  1015. embedded_postgres/pginstall/lib/pageinspect.dll +0 -0
  1016. embedded_postgres/pginstall/lib/passwordcheck.dll +0 -0
  1017. embedded_postgres/pginstall/lib/pg_buffercache.dll +0 -0
  1018. embedded_postgres/pginstall/lib/pg_freespacemap.dll +0 -0
  1019. embedded_postgres/pginstall/lib/pg_logicalinspect.dll +0 -0
  1020. embedded_postgres/pginstall/lib/pg_overexplain.dll +0 -0
  1021. embedded_postgres/pginstall/lib/pg_prewarm.dll +0 -0
  1022. embedded_postgres/pginstall/lib/pg_stat_statements.dll +0 -0
  1023. embedded_postgres/pginstall/lib/pg_surgery.dll +0 -0
  1024. embedded_postgres/pginstall/lib/pg_trgm.dll +0 -0
  1025. embedded_postgres/pginstall/lib/pg_visibility.dll +0 -0
  1026. embedded_postgres/pginstall/lib/pg_walinspect.dll +0 -0
  1027. embedded_postgres/pginstall/lib/pgevent.dll +0 -0
  1028. embedded_postgres/pginstall/lib/pgoutput.dll +0 -0
  1029. embedded_postgres/pginstall/lib/pgrowlocks.dll +0 -0
  1030. embedded_postgres/pginstall/lib/pgstattuple.dll +0 -0
  1031. embedded_postgres/pginstall/lib/pgxs/config/install-sh +527 -0
  1032. embedded_postgres/pginstall/lib/pgxs/config/missing +54 -0
  1033. embedded_postgres/pginstall/lib/pgxs/src/Makefile.global +1139 -0
  1034. embedded_postgres/pginstall/lib/pgxs/src/Makefile.port +83 -0
  1035. embedded_postgres/pginstall/lib/pgxs/src/Makefile.shlib +436 -0
  1036. embedded_postgres/pginstall/lib/pgxs/src/makefiles/pgxs.mk +476 -0
  1037. embedded_postgres/pginstall/lib/pgxs/src/nls-global.mk +182 -0
  1038. embedded_postgres/pginstall/lib/pgxs/src/test/isolation/isolationtester.exe +0 -0
  1039. embedded_postgres/pginstall/lib/pgxs/src/test/isolation/pg_isolation_regress.exe +0 -0
  1040. embedded_postgres/pginstall/lib/pgxs/src/test/regress/pg_regress.exe +0 -0
  1041. embedded_postgres/pginstall/lib/pkgconfig/libecpg.pc +14 -0
  1042. embedded_postgres/pginstall/lib/pkgconfig/libecpg_compat.pc +14 -0
  1043. embedded_postgres/pginstall/lib/pkgconfig/libpgtypes.pc +14 -0
  1044. embedded_postgres/pginstall/lib/pkgconfig/libpq.pc +14 -0
  1045. embedded_postgres/pginstall/lib/plpgsql.dll +0 -0
  1046. embedded_postgres/pginstall/lib/postgres_fdw.dll +0 -0
  1047. embedded_postgres/pginstall/lib/refint.dll +0 -0
  1048. embedded_postgres/pginstall/lib/seg.dll +0 -0
  1049. embedded_postgres/pginstall/lib/tablefunc.dll +0 -0
  1050. embedded_postgres/pginstall/lib/tcn.dll +0 -0
  1051. embedded_postgres/pginstall/lib/test_decoding.dll +0 -0
  1052. embedded_postgres/pginstall/lib/tsm_system_rows.dll +0 -0
  1053. embedded_postgres/pginstall/lib/tsm_system_time.dll +0 -0
  1054. embedded_postgres/pginstall/lib/unaccent.dll +0 -0
  1055. embedded_postgres/pginstall/lib/utf8_and_big5.dll +0 -0
  1056. embedded_postgres/pginstall/lib/utf8_and_cyrillic.dll +0 -0
  1057. embedded_postgres/pginstall/lib/utf8_and_euc2004.dll +0 -0
  1058. embedded_postgres/pginstall/lib/utf8_and_euc_cn.dll +0 -0
  1059. embedded_postgres/pginstall/lib/utf8_and_euc_jp.dll +0 -0
  1060. embedded_postgres/pginstall/lib/utf8_and_euc_kr.dll +0 -0
  1061. embedded_postgres/pginstall/lib/utf8_and_euc_tw.dll +0 -0
  1062. embedded_postgres/pginstall/lib/utf8_and_gb18030.dll +0 -0
  1063. embedded_postgres/pginstall/lib/utf8_and_gbk.dll +0 -0
  1064. embedded_postgres/pginstall/lib/utf8_and_iso8859.dll +0 -0
  1065. embedded_postgres/pginstall/lib/utf8_and_iso8859_1.dll +0 -0
  1066. embedded_postgres/pginstall/lib/utf8_and_johab.dll +0 -0
  1067. embedded_postgres/pginstall/lib/utf8_and_sjis.dll +0 -0
  1068. embedded_postgres/pginstall/lib/utf8_and_sjis2004.dll +0 -0
  1069. embedded_postgres/pginstall/lib/utf8_and_uhc.dll +0 -0
  1070. embedded_postgres/pginstall/lib/utf8_and_win.dll +0 -0
  1071. embedded_postgres/pginstall/lib/vector.dll +0 -0
  1072. embedded_postgres/pginstall/share/doc/extension/autoinc.example +35 -0
  1073. embedded_postgres/pginstall/share/doc/extension/insert_username.example +20 -0
  1074. embedded_postgres/pginstall/share/doc/extension/moddatetime.example +27 -0
  1075. embedded_postgres/pginstall/share/doc/extension/refint.example +82 -0
  1076. embedded_postgres/pginstall/share/errcodes.txt +501 -0
  1077. embedded_postgres/pginstall/share/extension/amcheck--1.0--1.1.sql +29 -0
  1078. embedded_postgres/pginstall/share/extension/amcheck--1.0.sql +24 -0
  1079. embedded_postgres/pginstall/share/extension/amcheck--1.1--1.2.sql +19 -0
  1080. embedded_postgres/pginstall/share/extension/amcheck--1.2--1.3.sql +30 -0
  1081. embedded_postgres/pginstall/share/extension/amcheck--1.3--1.4.sql +29 -0
  1082. embedded_postgres/pginstall/share/extension/amcheck--1.4--1.5.sql +14 -0
  1083. embedded_postgres/pginstall/share/extension/amcheck.control +5 -0
  1084. embedded_postgres/pginstall/share/extension/autoinc--1.0.sql +9 -0
  1085. embedded_postgres/pginstall/share/extension/autoinc.control +5 -0
  1086. embedded_postgres/pginstall/share/extension/bloom--1.0.sql +25 -0
  1087. embedded_postgres/pginstall/share/extension/bloom.control +5 -0
  1088. embedded_postgres/pginstall/share/extension/btree_gin--1.0--1.1.sql +35 -0
  1089. embedded_postgres/pginstall/share/extension/btree_gin--1.0.sql +689 -0
  1090. embedded_postgres/pginstall/share/extension/btree_gin--1.1--1.2.sql +47 -0
  1091. embedded_postgres/pginstall/share/extension/btree_gin--1.2--1.3.sql +128 -0
  1092. embedded_postgres/pginstall/share/extension/btree_gin.control +6 -0
  1093. embedded_postgres/pginstall/share/extension/btree_gist--1.0--1.1.sql +127 -0
  1094. embedded_postgres/pginstall/share/extension/btree_gist--1.1--1.2.sql +79 -0
  1095. embedded_postgres/pginstall/share/extension/btree_gist--1.2--1.3.sql +65 -0
  1096. embedded_postgres/pginstall/share/extension/btree_gist--1.2.sql +1570 -0
  1097. embedded_postgres/pginstall/share/extension/btree_gist--1.3--1.4.sql +64 -0
  1098. embedded_postgres/pginstall/share/extension/btree_gist--1.4--1.5.sql +69 -0
  1099. embedded_postgres/pginstall/share/extension/btree_gist--1.5--1.6.sql +191 -0
  1100. embedded_postgres/pginstall/share/extension/btree_gist--1.6--1.7.sql +77 -0
  1101. embedded_postgres/pginstall/share/extension/btree_gist--1.7--1.8.sql +284 -0
  1102. embedded_postgres/pginstall/share/extension/btree_gist.control +6 -0
  1103. embedded_postgres/pginstall/share/extension/citext--1.0--1.1.sql +21 -0
  1104. embedded_postgres/pginstall/share/extension/citext--1.1--1.2.sql +68 -0
  1105. embedded_postgres/pginstall/share/extension/citext--1.2--1.3.sql +21 -0
  1106. embedded_postgres/pginstall/share/extension/citext--1.3--1.4.sql +12 -0
  1107. embedded_postgres/pginstall/share/extension/citext--1.4--1.5.sql +88 -0
  1108. embedded_postgres/pginstall/share/extension/citext--1.4.sql +501 -0
  1109. embedded_postgres/pginstall/share/extension/citext--1.5--1.6.sql +12 -0
  1110. embedded_postgres/pginstall/share/extension/citext--1.6--1.7.sql +45 -0
  1111. embedded_postgres/pginstall/share/extension/citext--1.7--1.8.sql +60 -0
  1112. embedded_postgres/pginstall/share/extension/citext.control +6 -0
  1113. embedded_postgres/pginstall/share/extension/cube--1.0--1.1.sql +59 -0
  1114. embedded_postgres/pginstall/share/extension/cube--1.1--1.2.sql +75 -0
  1115. embedded_postgres/pginstall/share/extension/cube--1.2--1.3.sql +12 -0
  1116. embedded_postgres/pginstall/share/extension/cube--1.2.sql +378 -0
  1117. embedded_postgres/pginstall/share/extension/cube--1.3--1.4.sql +58 -0
  1118. embedded_postgres/pginstall/share/extension/cube--1.4--1.5.sql +21 -0
  1119. embedded_postgres/pginstall/share/extension/cube.control +6 -0
  1120. embedded_postgres/pginstall/share/extension/dblink--1.0--1.1.sql +14 -0
  1121. embedded_postgres/pginstall/share/extension/dblink--1.1--1.2.sql +46 -0
  1122. embedded_postgres/pginstall/share/extension/dblink--1.2.sql +235 -0
  1123. embedded_postgres/pginstall/share/extension/dblink.control +5 -0
  1124. embedded_postgres/pginstall/share/extension/dict_int--1.0.sql +25 -0
  1125. embedded_postgres/pginstall/share/extension/dict_int.control +6 -0
  1126. embedded_postgres/pginstall/share/extension/dict_xsyn--1.0.sql +25 -0
  1127. embedded_postgres/pginstall/share/extension/dict_xsyn.control +5 -0
  1128. embedded_postgres/pginstall/share/extension/earthdistance--1.0--1.1.sql +14 -0
  1129. embedded_postgres/pginstall/share/extension/earthdistance--1.1--1.2.sql +73 -0
  1130. embedded_postgres/pginstall/share/extension/earthdistance--1.1.sql +98 -0
  1131. embedded_postgres/pginstall/share/extension/earthdistance.control +6 -0
  1132. embedded_postgres/pginstall/share/extension/file_fdw--1.0.sql +18 -0
  1133. embedded_postgres/pginstall/share/extension/file_fdw.control +5 -0
  1134. embedded_postgres/pginstall/share/extension/fuzzystrmatch--1.0--1.1.sql +15 -0
  1135. embedded_postgres/pginstall/share/extension/fuzzystrmatch--1.1--1.2.sql +8 -0
  1136. embedded_postgres/pginstall/share/extension/fuzzystrmatch--1.1.sql +44 -0
  1137. embedded_postgres/pginstall/share/extension/fuzzystrmatch.control +6 -0
  1138. embedded_postgres/pginstall/share/extension/hstore--1.1--1.2.sql +53 -0
  1139. embedded_postgres/pginstall/share/extension/hstore--1.2--1.3.sql +17 -0
  1140. embedded_postgres/pginstall/share/extension/hstore--1.3--1.4.sql +99 -0
  1141. embedded_postgres/pginstall/share/extension/hstore--1.4--1.5.sql +14 -0
  1142. embedded_postgres/pginstall/share/extension/hstore--1.4.sql +550 -0
  1143. embedded_postgres/pginstall/share/extension/hstore--1.5--1.6.sql +12 -0
  1144. embedded_postgres/pginstall/share/extension/hstore--1.6--1.7.sql +27 -0
  1145. embedded_postgres/pginstall/share/extension/hstore--1.7--1.8.sql +17 -0
  1146. embedded_postgres/pginstall/share/extension/hstore.control +6 -0
  1147. embedded_postgres/pginstall/share/extension/insert_username--1.0.sql +9 -0
  1148. embedded_postgres/pginstall/share/extension/insert_username.control +5 -0
  1149. embedded_postgres/pginstall/share/extension/intagg--1.0--1.1.sql +23 -0
  1150. embedded_postgres/pginstall/share/extension/intagg--1.1.sql +37 -0
  1151. embedded_postgres/pginstall/share/extension/intagg.control +4 -0
  1152. embedded_postgres/pginstall/share/extension/intarray--1.0--1.1.sql +49 -0
  1153. embedded_postgres/pginstall/share/extension/intarray--1.1--1.2.sql +94 -0
  1154. embedded_postgres/pginstall/share/extension/intarray--1.2--1.3.sql +20 -0
  1155. embedded_postgres/pginstall/share/extension/intarray--1.2.sql +520 -0
  1156. embedded_postgres/pginstall/share/extension/intarray--1.3--1.4.sql +21 -0
  1157. embedded_postgres/pginstall/share/extension/intarray--1.4--1.5.sql +8 -0
  1158. embedded_postgres/pginstall/share/extension/intarray.control +6 -0
  1159. embedded_postgres/pginstall/share/extension/isn--1.0--1.1.sql +250 -0
  1160. embedded_postgres/pginstall/share/extension/isn--1.1--1.2.sql +228 -0
  1161. embedded_postgres/pginstall/share/extension/isn--1.1.sql +3434 -0
  1162. embedded_postgres/pginstall/share/extension/isn--1.2--1.3.sql +7 -0
  1163. embedded_postgres/pginstall/share/extension/isn.control +6 -0
  1164. embedded_postgres/pginstall/share/extension/lo--1.0--1.1.sql +6 -0
  1165. embedded_postgres/pginstall/share/extension/lo--1.1--1.2.sql +8 -0
  1166. embedded_postgres/pginstall/share/extension/lo--1.1.sql +25 -0
  1167. embedded_postgres/pginstall/share/extension/lo.control +6 -0
  1168. embedded_postgres/pginstall/share/extension/ltree--1.0--1.1.sql +115 -0
  1169. embedded_postgres/pginstall/share/extension/ltree--1.1--1.2.sql +139 -0
  1170. embedded_postgres/pginstall/share/extension/ltree--1.1.sql +872 -0
  1171. embedded_postgres/pginstall/share/extension/ltree--1.2--1.3.sql +23 -0
  1172. embedded_postgres/pginstall/share/extension/ltree.control +6 -0
  1173. embedded_postgres/pginstall/share/extension/moddatetime--1.0.sql +9 -0
  1174. embedded_postgres/pginstall/share/extension/moddatetime.control +5 -0
  1175. embedded_postgres/pginstall/share/extension/pageinspect--1.0--1.1.sql +18 -0
  1176. embedded_postgres/pginstall/share/extension/pageinspect--1.1--1.2.sql +18 -0
  1177. embedded_postgres/pginstall/share/extension/pageinspect--1.10--1.11.sql +28 -0
  1178. embedded_postgres/pginstall/share/extension/pageinspect--1.11--1.12.sql +40 -0
  1179. embedded_postgres/pginstall/share/extension/pageinspect--1.12--1.13.sql +74 -0
  1180. embedded_postgres/pginstall/share/extension/pageinspect--1.2--1.3.sql +82 -0
  1181. embedded_postgres/pginstall/share/extension/pageinspect--1.3--1.4.sql +118 -0
  1182. embedded_postgres/pginstall/share/extension/pageinspect--1.4--1.5.sql +24 -0
  1183. embedded_postgres/pginstall/share/extension/pageinspect--1.5--1.6.sql +99 -0
  1184. embedded_postgres/pginstall/share/extension/pageinspect--1.5.sql +279 -0
  1185. embedded_postgres/pginstall/share/extension/pageinspect--1.6--1.7.sql +26 -0
  1186. embedded_postgres/pginstall/share/extension/pageinspect--1.7--1.8.sql +69 -0
  1187. embedded_postgres/pginstall/share/extension/pageinspect--1.8--1.9.sql +137 -0
  1188. embedded_postgres/pginstall/share/extension/pageinspect--1.9--1.10.sql +21 -0
  1189. embedded_postgres/pginstall/share/extension/pageinspect.control +5 -0
  1190. embedded_postgres/pginstall/share/extension/pg_buffercache--1.0--1.1.sql +11 -0
  1191. embedded_postgres/pginstall/share/extension/pg_buffercache--1.1--1.2.sql +6 -0
  1192. embedded_postgres/pginstall/share/extension/pg_buffercache--1.2--1.3.sql +7 -0
  1193. embedded_postgres/pginstall/share/extension/pg_buffercache--1.2.sql +21 -0
  1194. embedded_postgres/pginstall/share/extension/pg_buffercache--1.3--1.4.sql +28 -0
  1195. embedded_postgres/pginstall/share/extension/pg_buffercache--1.4--1.5.sql +6 -0
  1196. embedded_postgres/pginstall/share/extension/pg_buffercache--1.5--1.6.sql +46 -0
  1197. embedded_postgres/pginstall/share/extension/pg_buffercache.control +5 -0
  1198. embedded_postgres/pginstall/share/extension/pg_freespacemap--1.0--1.1.sql +7 -0
  1199. embedded_postgres/pginstall/share/extension/pg_freespacemap--1.1--1.2.sql +7 -0
  1200. embedded_postgres/pginstall/share/extension/pg_freespacemap--1.1.sql +25 -0
  1201. embedded_postgres/pginstall/share/extension/pg_freespacemap--1.2--1.3.sql +13 -0
  1202. embedded_postgres/pginstall/share/extension/pg_freespacemap.control +5 -0
  1203. embedded_postgres/pginstall/share/extension/pg_logicalinspect--1.0.sql +43 -0
  1204. embedded_postgres/pginstall/share/extension/pg_logicalinspect.control +5 -0
  1205. embedded_postgres/pginstall/share/extension/pg_prewarm--1.0--1.1.sql +6 -0
  1206. embedded_postgres/pginstall/share/extension/pg_prewarm--1.1--1.2.sql +14 -0
  1207. embedded_postgres/pginstall/share/extension/pg_prewarm--1.1.sql +14 -0
  1208. embedded_postgres/pginstall/share/extension/pg_prewarm.control +5 -0
  1209. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.0--1.1.sql +42 -0
  1210. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.1--1.2.sql +43 -0
  1211. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.10--1.11.sql +82 -0
  1212. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.11--1.12.sql +76 -0
  1213. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.2--1.3.sql +47 -0
  1214. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.3--1.4.sql +7 -0
  1215. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.4--1.5.sql +6 -0
  1216. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.4.sql +48 -0
  1217. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.5--1.6.sql +7 -0
  1218. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.6--1.7.sql +22 -0
  1219. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.7--1.8.sql +56 -0
  1220. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.8--1.9.sql +71 -0
  1221. embedded_postgres/pginstall/share/extension/pg_stat_statements--1.9--1.10.sql +67 -0
  1222. embedded_postgres/pginstall/share/extension/pg_stat_statements.control +5 -0
  1223. embedded_postgres/pginstall/share/extension/pg_surgery--1.0.sql +18 -0
  1224. embedded_postgres/pginstall/share/extension/pg_surgery.control +5 -0
  1225. embedded_postgres/pginstall/share/extension/pg_trgm--1.0--1.1.sql +12 -0
  1226. embedded_postgres/pginstall/share/extension/pg_trgm--1.1--1.2.sql +74 -0
  1227. embedded_postgres/pginstall/share/extension/pg_trgm--1.2--1.3.sql +65 -0
  1228. embedded_postgres/pginstall/share/extension/pg_trgm--1.3--1.4.sql +68 -0
  1229. embedded_postgres/pginstall/share/extension/pg_trgm--1.3.sql +254 -0
  1230. embedded_postgres/pginstall/share/extension/pg_trgm--1.4--1.5.sql +23 -0
  1231. embedded_postgres/pginstall/share/extension/pg_trgm--1.5--1.6.sql +10 -0
  1232. embedded_postgres/pginstall/share/extension/pg_trgm.control +6 -0
  1233. embedded_postgres/pginstall/share/extension/pg_visibility--1.0--1.1.sql +24 -0
  1234. embedded_postgres/pginstall/share/extension/pg_visibility--1.1--1.2.sql +13 -0
  1235. embedded_postgres/pginstall/share/extension/pg_visibility--1.1.sql +75 -0
  1236. embedded_postgres/pginstall/share/extension/pg_visibility.control +5 -0
  1237. embedded_postgres/pginstall/share/extension/pg_walinspect--1.0--1.1.sql +42 -0
  1238. embedded_postgres/pginstall/share/extension/pg_walinspect--1.0.sql +118 -0
  1239. embedded_postgres/pginstall/share/extension/pg_walinspect.control +5 -0
  1240. embedded_postgres/pginstall/share/extension/pgrowlocks--1.0--1.1.sql +17 -0
  1241. embedded_postgres/pginstall/share/extension/pgrowlocks--1.1--1.2.sql +6 -0
  1242. embedded_postgres/pginstall/share/extension/pgrowlocks--1.2.sql +15 -0
  1243. embedded_postgres/pginstall/share/extension/pgrowlocks.control +5 -0
  1244. embedded_postgres/pginstall/share/extension/pgstattuple--1.0--1.1.sql +11 -0
  1245. embedded_postgres/pginstall/share/extension/pgstattuple--1.1--1.2.sql +39 -0
  1246. embedded_postgres/pginstall/share/extension/pgstattuple--1.2--1.3.sql +18 -0
  1247. embedded_postgres/pginstall/share/extension/pgstattuple--1.3--1.4.sql +13 -0
  1248. embedded_postgres/pginstall/share/extension/pgstattuple--1.4--1.5.sql +136 -0
  1249. embedded_postgres/pginstall/share/extension/pgstattuple--1.4.sql +95 -0
  1250. embedded_postgres/pginstall/share/extension/pgstattuple.control +5 -0
  1251. embedded_postgres/pginstall/share/extension/plpgsql--1.0.sql +20 -0
  1252. embedded_postgres/pginstall/share/extension/plpgsql.control +8 -0
  1253. embedded_postgres/pginstall/share/extension/postgres_fdw--1.0--1.1.sql +20 -0
  1254. embedded_postgres/pginstall/share/extension/postgres_fdw--1.0.sql +18 -0
  1255. embedded_postgres/pginstall/share/extension/postgres_fdw--1.1--1.2.sql +18 -0
  1256. embedded_postgres/pginstall/share/extension/postgres_fdw.control +5 -0
  1257. embedded_postgres/pginstall/share/extension/refint--1.0.sql +14 -0
  1258. embedded_postgres/pginstall/share/extension/refint.control +5 -0
  1259. embedded_postgres/pginstall/share/extension/seg--1.0--1.1.sql +63 -0
  1260. embedded_postgres/pginstall/share/extension/seg--1.1--1.2.sql +14 -0
  1261. embedded_postgres/pginstall/share/extension/seg--1.1.sql +395 -0
  1262. embedded_postgres/pginstall/share/extension/seg--1.2--1.3.sql +58 -0
  1263. embedded_postgres/pginstall/share/extension/seg--1.3--1.4.sql +8 -0
  1264. embedded_postgres/pginstall/share/extension/seg.control +6 -0
  1265. embedded_postgres/pginstall/share/extension/tablefunc--1.0.sql +88 -0
  1266. embedded_postgres/pginstall/share/extension/tablefunc.control +6 -0
  1267. embedded_postgres/pginstall/share/extension/tcn--1.0.sql +9 -0
  1268. embedded_postgres/pginstall/share/extension/tcn.control +6 -0
  1269. embedded_postgres/pginstall/share/extension/tsm_system_rows--1.0.sql +9 -0
  1270. embedded_postgres/pginstall/share/extension/tsm_system_rows.control +6 -0
  1271. embedded_postgres/pginstall/share/extension/tsm_system_time--1.0.sql +9 -0
  1272. embedded_postgres/pginstall/share/extension/tsm_system_time.control +6 -0
  1273. embedded_postgres/pginstall/share/extension/unaccent--1.0--1.1.sql +9 -0
  1274. embedded_postgres/pginstall/share/extension/unaccent--1.1.sql +34 -0
  1275. embedded_postgres/pginstall/share/extension/unaccent.control +6 -0
  1276. embedded_postgres/pginstall/share/extension/vector--0.1.0--0.1.1.sql +39 -0
  1277. embedded_postgres/pginstall/share/extension/vector--0.1.1--0.1.3.sql +2 -0
  1278. embedded_postgres/pginstall/share/extension/vector--0.1.3--0.1.4.sql +2 -0
  1279. embedded_postgres/pginstall/share/extension/vector--0.1.4--0.1.5.sql +2 -0
  1280. embedded_postgres/pginstall/share/extension/vector--0.1.5--0.1.6.sql +2 -0
  1281. embedded_postgres/pginstall/share/extension/vector--0.1.6--0.1.7.sql +8 -0
  1282. embedded_postgres/pginstall/share/extension/vector--0.1.7--0.1.8.sql +8 -0
  1283. embedded_postgres/pginstall/share/extension/vector--0.1.8--0.2.0.sql +2 -0
  1284. embedded_postgres/pginstall/share/extension/vector--0.2.0--0.2.1.sql +19 -0
  1285. embedded_postgres/pginstall/share/extension/vector--0.2.1--0.2.2.sql +2 -0
  1286. embedded_postgres/pginstall/share/extension/vector--0.2.2--0.2.3.sql +2 -0
  1287. embedded_postgres/pginstall/share/extension/vector--0.2.3--0.2.4.sql +2 -0
  1288. embedded_postgres/pginstall/share/extension/vector--0.2.4--0.2.5.sql +2 -0
  1289. embedded_postgres/pginstall/share/extension/vector--0.2.5--0.2.6.sql +2 -0
  1290. embedded_postgres/pginstall/share/extension/vector--0.2.6--0.2.7.sql +2 -0
  1291. embedded_postgres/pginstall/share/extension/vector--0.2.7--0.3.0.sql +2 -0
  1292. embedded_postgres/pginstall/share/extension/vector--0.3.0--0.3.1.sql +2 -0
  1293. embedded_postgres/pginstall/share/extension/vector--0.3.1--0.3.2.sql +2 -0
  1294. embedded_postgres/pginstall/share/extension/vector--0.3.2--0.4.0.sql +23 -0
  1295. embedded_postgres/pginstall/share/extension/vector--0.4.0--0.4.1.sql +2 -0
  1296. embedded_postgres/pginstall/share/extension/vector--0.4.1--0.4.2.sql +2 -0
  1297. embedded_postgres/pginstall/share/extension/vector--0.4.2--0.4.3.sql +2 -0
  1298. embedded_postgres/pginstall/share/extension/vector--0.4.3--0.4.4.sql +2 -0
  1299. embedded_postgres/pginstall/share/extension/vector--0.4.4--0.5.0.sql +43 -0
  1300. embedded_postgres/pginstall/share/extension/vector--0.5.0--0.5.1.sql +2 -0
  1301. embedded_postgres/pginstall/share/extension/vector--0.5.1--0.6.0.sql +5 -0
  1302. embedded_postgres/pginstall/share/extension/vector--0.6.0--0.6.1.sql +16 -0
  1303. embedded_postgres/pginstall/share/extension/vector--0.6.1--0.6.2.sql +2 -0
  1304. embedded_postgres/pginstall/share/extension/vector--0.6.2--0.7.0.sql +569 -0
  1305. embedded_postgres/pginstall/share/extension/vector--0.7.0--0.7.1.sql +2 -0
  1306. embedded_postgres/pginstall/share/extension/vector--0.7.1--0.7.2.sql +2 -0
  1307. embedded_postgres/pginstall/share/extension/vector--0.7.2--0.7.3.sql +2 -0
  1308. embedded_postgres/pginstall/share/extension/vector--0.7.3--0.7.4.sql +2 -0
  1309. embedded_postgres/pginstall/share/extension/vector--0.7.4--0.8.0.sql +26 -0
  1310. embedded_postgres/pginstall/share/extension/vector--0.8.0--0.8.1.sql +2 -0
  1311. embedded_postgres/pginstall/share/extension/vector--0.8.1--0.8.2.sql +2 -0
  1312. embedded_postgres/pginstall/share/extension/vector--0.8.2--0.8.3.sql +2 -0
  1313. embedded_postgres/pginstall/share/extension/vector--0.8.3--0.8.4.sql +2 -0
  1314. embedded_postgres/pginstall/share/extension/vector--0.8.4--0.8.5.sql +2 -0
  1315. embedded_postgres/pginstall/share/extension/vector--0.8.5--0.8.6.sql +2 -0
  1316. embedded_postgres/pginstall/share/extension/vector--0.8.6.sql +918 -0
  1317. embedded_postgres/pginstall/share/extension/vector.control +4 -0
  1318. embedded_postgres/pginstall/share/information_schema.sql +3011 -0
  1319. embedded_postgres/pginstall/share/pg_hba.conf.sample +122 -0
  1320. embedded_postgres/pginstall/share/pg_ident.conf.sample +72 -0
  1321. embedded_postgres/pginstall/share/pg_service.conf.sample +17 -0
  1322. embedded_postgres/pginstall/share/postgres.bki +11870 -0
  1323. embedded_postgres/pginstall/share/postgresql.conf.sample +889 -0
  1324. embedded_postgres/pginstall/share/psqlrc.sample +8 -0
  1325. embedded_postgres/pginstall/share/snowball_create.sql +1253 -0
  1326. embedded_postgres/pginstall/share/sql_features.txt +755 -0
  1327. embedded_postgres/pginstall/share/system_constraints.sql +220 -0
  1328. embedded_postgres/pginstall/share/system_functions.sql +808 -0
  1329. embedded_postgres/pginstall/share/system_views.sql +1409 -0
  1330. embedded_postgres/pginstall/share/timezonesets/Africa.txt +176 -0
  1331. embedded_postgres/pginstall/share/timezonesets/America.txt +257 -0
  1332. embedded_postgres/pginstall/share/timezonesets/Antarctica.txt +27 -0
  1333. embedded_postgres/pginstall/share/timezonesets/Asia.txt +190 -0
  1334. embedded_postgres/pginstall/share/timezonesets/Atlantic.txt +85 -0
  1335. embedded_postgres/pginstall/share/timezonesets/Australia +27 -0
  1336. embedded_postgres/pginstall/share/timezonesets/Australia.txt +71 -0
  1337. embedded_postgres/pginstall/share/timezonesets/Default +629 -0
  1338. embedded_postgres/pginstall/share/timezonesets/Etc.txt +34 -0
  1339. embedded_postgres/pginstall/share/timezonesets/Europe.txt +217 -0
  1340. embedded_postgres/pginstall/share/timezonesets/India +19 -0
  1341. embedded_postgres/pginstall/share/timezonesets/Indian.txt +30 -0
  1342. embedded_postgres/pginstall/share/timezonesets/Pacific.txt +84 -0
  1343. embedded_postgres/pginstall/share/tsearch_data/danish.stop +94 -0
  1344. embedded_postgres/pginstall/share/tsearch_data/dutch.stop +101 -0
  1345. embedded_postgres/pginstall/share/tsearch_data/english.stop +127 -0
  1346. embedded_postgres/pginstall/share/tsearch_data/finnish.stop +235 -0
  1347. embedded_postgres/pginstall/share/tsearch_data/french.stop +155 -0
  1348. embedded_postgres/pginstall/share/tsearch_data/german.stop +231 -0
  1349. embedded_postgres/pginstall/share/tsearch_data/hungarian.stop +199 -0
  1350. embedded_postgres/pginstall/share/tsearch_data/hunspell_sample.affix +23 -0
  1351. embedded_postgres/pginstall/share/tsearch_data/hunspell_sample_long.affix +53 -0
  1352. embedded_postgres/pginstall/share/tsearch_data/hunspell_sample_long.dict +11 -0
  1353. embedded_postgres/pginstall/share/tsearch_data/hunspell_sample_num.affix +33 -0
  1354. embedded_postgres/pginstall/share/tsearch_data/hunspell_sample_num.dict +9 -0
  1355. embedded_postgres/pginstall/share/tsearch_data/ispell_sample.affix +26 -0
  1356. embedded_postgres/pginstall/share/tsearch_data/ispell_sample.dict +8 -0
  1357. embedded_postgres/pginstall/share/tsearch_data/italian.stop +279 -0
  1358. embedded_postgres/pginstall/share/tsearch_data/nepali.stop +304 -0
  1359. embedded_postgres/pginstall/share/tsearch_data/norwegian.stop +176 -0
  1360. embedded_postgres/pginstall/share/tsearch_data/portuguese.stop +203 -0
  1361. embedded_postgres/pginstall/share/tsearch_data/russian.stop +151 -0
  1362. embedded_postgres/pginstall/share/tsearch_data/spanish.stop +313 -0
  1363. embedded_postgres/pginstall/share/tsearch_data/swedish.stop +114 -0
  1364. embedded_postgres/pginstall/share/tsearch_data/synonym_sample.syn +5 -0
  1365. embedded_postgres/pginstall/share/tsearch_data/thesaurus_sample.ths +17 -0
  1366. embedded_postgres/pginstall/share/tsearch_data/turkish.stop +53 -0
  1367. embedded_postgres/pginstall/share/tsearch_data/unaccent.rules +2661 -0
  1368. embedded_postgres/pginstall/share/tsearch_data/xsyn_sample.rules +6 -0
  1369. embedded_postgres/postgres_server.py +291 -0
  1370. embedded_postgres/py.typed +0 -0
  1371. embedded_postgres/utils.py +278 -0
  1372. embedded_postgres-18.6.0.dist-info/METADATA +106 -0
  1373. embedded_postgres-18.6.0.dist-info/RECORD +1378 -0
  1374. embedded_postgres-18.6.0.dist-info/WHEEL +5 -0
  1375. embedded_postgres-18.6.0.dist-info/licenses/LICENSE +201 -0
  1376. embedded_postgres-18.6.0.dist-info/licenses/NOTICE +10 -0
  1377. embedded_postgres-18.6.0.dist-info/licenses/THIRD_PARTY_NOTICES.md +53 -0
  1378. embedded_postgres-18.6.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1364 @@
1
+ /*-------------------------------------------------------------------------
2
+ *
3
+ * c.h
4
+ * Fundamental C definitions. This is included by every .c file in
5
+ * PostgreSQL (via either postgres.h or postgres_fe.h, as appropriate).
6
+ *
7
+ * Note that the definitions here are not intended to be exposed to clients
8
+ * of the frontend interface libraries --- so we don't worry much about
9
+ * polluting the namespace with lots of stuff...
10
+ *
11
+ *
12
+ * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
13
+ * Portions Copyright (c) 1994, Regents of the University of California
14
+ *
15
+ * src/include/c.h
16
+ *
17
+ *-------------------------------------------------------------------------
18
+ */
19
+ /* IWYU pragma: always_keep */
20
+ /*
21
+ *----------------------------------------------------------------
22
+ * TABLE OF CONTENTS
23
+ *
24
+ * When adding stuff to this file, please try to put stuff
25
+ * into the relevant section, or add new sections as appropriate.
26
+ *
27
+ * section description
28
+ * ------- ------------------------------------------------
29
+ * 0) pg_config.h and standard system headers
30
+ * 1) compiler characteristics
31
+ * 2) bool, true, false
32
+ * 3) standard system types
33
+ * 4) IsValid macros for system types
34
+ * 5) lengthof, alignment
35
+ * 6) assertions
36
+ * 7) widely useful macros
37
+ * 8) random stuff
38
+ * 9) system-specific hacks
39
+ *
40
+ * NOTE: since this file is included by both frontend and backend modules,
41
+ * it's usually wrong to put an "extern" declaration here, unless it's
42
+ * ifdef'd so that it's seen in only one case or the other.
43
+ * typedefs and macros are the kind of thing that might go here.
44
+ *
45
+ *----------------------------------------------------------------
46
+ */
47
+ #ifndef C_H
48
+ #define C_H
49
+
50
+ /* IWYU pragma: begin_exports */
51
+
52
+ /*
53
+ * These headers must be included before any system headers, because on some
54
+ * platforms they affect the behavior of the system headers (for example, by
55
+ * defining _FILE_OFFSET_BITS).
56
+ */
57
+ #include "pg_config.h"
58
+ #include "pg_config_manual.h" /* must be after pg_config.h */
59
+ #include "pg_config_os.h" /* config from include/port/PORTNAME.h */
60
+
61
+ /* System header files that should be available everywhere in Postgres */
62
+ #include <inttypes.h>
63
+ #include <stdio.h>
64
+ #include <stdlib.h>
65
+ #include <string.h>
66
+ #include <stddef.h>
67
+ #include <stdarg.h>
68
+ #ifdef HAVE_STRINGS_H
69
+ #include <strings.h>
70
+ #endif
71
+ #include <stdint.h>
72
+ #include <sys/types.h>
73
+ #include <errno.h>
74
+ #if defined(WIN32) || defined(__CYGWIN__)
75
+ #include <fcntl.h> /* ensure O_BINARY is available */
76
+ #endif
77
+ #include <locale.h>
78
+ #ifdef HAVE_XLOCALE_H
79
+ #include <xlocale.h>
80
+ #endif
81
+ #ifdef ENABLE_NLS
82
+ #include <libintl.h>
83
+ #endif
84
+
85
+ /* Pull in fundamental symbols that we also expose to applications */
86
+ #include "postgres_ext.h"
87
+
88
+ /* Define before including zlib.h to add const decorations to zlib API. */
89
+ #ifdef HAVE_LIBZ
90
+ #define ZLIB_CONST
91
+ #endif
92
+
93
+
94
+ /* ----------------------------------------------------------------
95
+ * Section 1: compiler characteristics
96
+ *
97
+ * type prefixes (const, signed, volatile, inline) are handled in pg_config.h.
98
+ * ----------------------------------------------------------------
99
+ */
100
+
101
+ /*
102
+ * Disable "inline" if PG_FORCE_DISABLE_INLINE is defined.
103
+ * This is used to work around compiler bugs and might also be useful for
104
+ * investigatory purposes.
105
+ */
106
+ #ifdef PG_FORCE_DISABLE_INLINE
107
+ #undef inline
108
+ #define inline
109
+ #endif
110
+
111
+ /*
112
+ * Attribute macros
113
+ *
114
+ * GCC: https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
115
+ * GCC: https://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html
116
+ * Clang: https://clang.llvm.org/docs/AttributeReference.html
117
+ * Sunpro: https://docs.oracle.com/cd/E18659_01/html/821-1384/gjzke.html
118
+ */
119
+
120
+ /*
121
+ * For compilers which don't support __has_attribute, we just define
122
+ * __has_attribute(x) to 0 so that we can define macros for various
123
+ * __attribute__s more easily below.
124
+ */
125
+ #ifndef __has_attribute
126
+ #define __has_attribute(attribute) 0
127
+ #endif
128
+
129
+ /* only GCC supports the unused attribute */
130
+ #ifdef __GNUC__
131
+ #define pg_attribute_unused() __attribute__((unused))
132
+ #else
133
+ #define pg_attribute_unused()
134
+ #endif
135
+
136
+ /*
137
+ * pg_nodiscard means the compiler should warn if the result of a function
138
+ * call is ignored. The name "nodiscard" is chosen in alignment with the C23
139
+ * standard attribute with the same name. For maximum forward compatibility,
140
+ * place it before the declaration.
141
+ */
142
+ #ifdef __GNUC__
143
+ #define pg_nodiscard __attribute__((warn_unused_result))
144
+ #else
145
+ #define pg_nodiscard
146
+ #endif
147
+
148
+ /*
149
+ * pg_noreturn corresponds to the C11 noreturn/_Noreturn function specifier.
150
+ * We can't use the standard name "noreturn" because some third-party code
151
+ * uses __attribute__((noreturn)) in headers, which would get confused if
152
+ * "noreturn" is defined to "_Noreturn", as is done by <stdnoreturn.h>.
153
+ *
154
+ * In a declaration, function specifiers go before the function name. The
155
+ * common style is to put them before the return type. (The MSVC fallback has
156
+ * the same requirement. The GCC fallback is more flexible.)
157
+ */
158
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
159
+ #define pg_noreturn _Noreturn
160
+ #elif defined(__GNUC__) || defined(__SUNPRO_C)
161
+ #define pg_noreturn __attribute__((noreturn))
162
+ #elif defined(_MSC_VER)
163
+ #define pg_noreturn __declspec(noreturn)
164
+ #else
165
+ #define pg_noreturn
166
+ #endif
167
+
168
+ /*
169
+ * This macro will disable address safety instrumentation for a function
170
+ * when running with "-fsanitize=address". Think twice before using this!
171
+ */
172
+ #if defined(__clang__) || __GNUC__ >= 8
173
+ #define pg_attribute_no_sanitize_address() __attribute__((no_sanitize("address")))
174
+ #elif __has_attribute(no_sanitize_address)
175
+ /* This would work for clang, but it's deprecated. */
176
+ #define pg_attribute_no_sanitize_address() __attribute__((no_sanitize_address))
177
+ #else
178
+ #define pg_attribute_no_sanitize_address()
179
+ #endif
180
+
181
+ /*
182
+ * Place this macro before functions that should be allowed to make misaligned
183
+ * accesses. Think twice before using it on non-x86-specific code!
184
+ * Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment"
185
+ * on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc.
186
+ */
187
+ #if __clang_major__ >= 7 || __GNUC__ >= 8
188
+ #define pg_attribute_no_sanitize_alignment() __attribute__((no_sanitize("alignment")))
189
+ #else
190
+ #define pg_attribute_no_sanitize_alignment()
191
+ #endif
192
+
193
+ /*
194
+ * pg_attribute_nonnull means the compiler should warn if the function is
195
+ * called with the listed arguments set to NULL. If no arguments are
196
+ * listed, the compiler should warn if any pointer arguments are set to NULL.
197
+ */
198
+ #if __has_attribute (nonnull)
199
+ #define pg_attribute_nonnull(...) __attribute__((nonnull(__VA_ARGS__)))
200
+ #else
201
+ #define pg_attribute_nonnull(...)
202
+ #endif
203
+
204
+ /*
205
+ * pg_attribute_target allows specifying different target options that the
206
+ * function should be compiled with (e.g., for using special CPU instructions).
207
+ * Note that there still needs to be a configure-time check to verify that a
208
+ * specific target is understood by the compiler.
209
+ */
210
+ #if __has_attribute (target)
211
+ #define pg_attribute_target(...) __attribute__((target(__VA_ARGS__)))
212
+ #else
213
+ #define pg_attribute_target(...)
214
+ #endif
215
+
216
+ /*
217
+ * Append PG_USED_FOR_ASSERTS_ONLY to definitions of variables that are only
218
+ * used in assert-enabled builds, to avoid compiler warnings about unused
219
+ * variables in assert-disabled builds.
220
+ */
221
+ #ifdef USE_ASSERT_CHECKING
222
+ #define PG_USED_FOR_ASSERTS_ONLY
223
+ #else
224
+ #define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused()
225
+ #endif
226
+
227
+ /*
228
+ * Our C and C++ compilers may have different ideas about which printf
229
+ * archetype best represents what src/port/snprintf.c can do.
230
+ */
231
+ #ifndef __cplusplus
232
+ #define PG_PRINTF_ATTRIBUTE PG_C_PRINTF_ATTRIBUTE
233
+ #else
234
+ #define PG_PRINTF_ATTRIBUTE PG_CXX_PRINTF_ATTRIBUTE
235
+ #endif
236
+
237
+ /* GCC supports format attributes */
238
+ #if defined(__GNUC__)
239
+ #define pg_attribute_format_arg(a) __attribute__((format_arg(a)))
240
+ #define pg_attribute_printf(f,a) __attribute__((format(PG_PRINTF_ATTRIBUTE, f, a)))
241
+ #else
242
+ #define pg_attribute_format_arg(a)
243
+ #define pg_attribute_printf(f,a)
244
+ #endif
245
+
246
+ /* GCC and Sunpro support aligned and packed */
247
+ #if defined(__GNUC__) || defined(__SUNPRO_C)
248
+ #define pg_attribute_aligned(a) __attribute__((aligned(a)))
249
+ #define pg_attribute_packed() __attribute__((packed))
250
+ #elif defined(_MSC_VER)
251
+ /*
252
+ * MSVC supports aligned.
253
+ *
254
+ * Packing is also possible but only by wrapping the entire struct definition
255
+ * which doesn't fit into our current macro declarations.
256
+ */
257
+ #define pg_attribute_aligned(a) __declspec(align(a))
258
+ #else
259
+ /*
260
+ * NB: aligned and packed are not given default definitions because they
261
+ * affect code functionality; they *must* be implemented by the compiler
262
+ * if they are to be used.
263
+ */
264
+ #endif
265
+
266
+ /*
267
+ * Use "pg_always_inline" in place of "inline" for functions that
268
+ * we wish to force inlining of, even when the compiler's heuristics would
269
+ * choose not to. But, if possible, don't force inlining in unoptimized
270
+ * debug builds.
271
+ *
272
+ * XXX The "pg_attribute_always_inline" variant is kept for backwards
273
+ * compatibility with existing code. All new code should use the shorter
274
+ * variant "pg_always_inline."
275
+ */
276
+ #if (defined(__GNUC__) && __GNUC__ > 3 && defined(__OPTIMIZE__)) || defined(__SUNPRO_C)
277
+ /* GCC > 3 and Sunpro support always_inline via __attribute__ */
278
+ #define pg_always_inline __attribute__((always_inline)) inline
279
+ #define pg_attribute_always_inline __attribute__((always_inline)) inline
280
+ #elif defined(_MSC_VER)
281
+ /* MSVC has a special keyword for this */
282
+ #define pg_always_inline __forceinline
283
+ #define pg_attribute_always_inline __forceinline
284
+ #else
285
+ /* Otherwise, the best we can do is to say "inline" */
286
+ #define pg_always_inline inline
287
+ #define pg_attribute_always_inline inline
288
+ #endif
289
+
290
+ /*
291
+ * Forcing a function not to be inlined can be useful if it's the slow path of
292
+ * a performance-critical function, or should be visible in profiles to allow
293
+ * for proper cost attribution. Note that unlike the pg_attribute_XXX macros
294
+ * above, this should be placed before the function's return type and name.
295
+ */
296
+ /* GCC and Sunpro support noinline via __attribute__ */
297
+ #if (defined(__GNUC__) && __GNUC__ > 2) || defined(__SUNPRO_C)
298
+ #define pg_noinline __attribute__((noinline))
299
+ /* msvc via declspec */
300
+ #elif defined(_MSC_VER)
301
+ #define pg_noinline __declspec(noinline)
302
+ #else
303
+ #define pg_noinline
304
+ #endif
305
+
306
+ /*
307
+ * For now, just define pg_attribute_cold and pg_attribute_hot to be empty
308
+ * macros on minGW 8.1. There appears to be a compiler bug that results in
309
+ * compilation failure. At this time, we still have at least one buildfarm
310
+ * animal running that compiler, so this should make that green again. It's
311
+ * likely this compiler is not popular enough to warrant keeping this code
312
+ * around forever, so let's just remove it once the last buildfarm animal
313
+ * upgrades.
314
+ */
315
+ #if defined(__MINGW64__) && __GNUC__ == 8 && __GNUC_MINOR__ == 1
316
+
317
+ #define pg_attribute_cold
318
+ #define pg_attribute_hot
319
+
320
+ #else
321
+ /*
322
+ * Marking certain functions as "hot" or "cold" can be useful to assist the
323
+ * compiler in arranging the assembly code in a more efficient way.
324
+ */
325
+ #if __has_attribute (cold)
326
+ #define pg_attribute_cold __attribute__((cold))
327
+ #else
328
+ #define pg_attribute_cold
329
+ #endif
330
+
331
+ #if __has_attribute (hot)
332
+ #define pg_attribute_hot __attribute__((hot))
333
+ #else
334
+ #define pg_attribute_hot
335
+ #endif
336
+
337
+ #endif /* defined(__MINGW64__) && __GNUC__ == 8 &&
338
+ * __GNUC_MINOR__ == 1 */
339
+ /*
340
+ * Mark a point as unreachable in a portable fashion. This should preferably
341
+ * be something that the compiler understands, to aid code generation.
342
+ * In assert-enabled builds, we prefer abort() for debugging reasons.
343
+ */
344
+ #if defined(HAVE__BUILTIN_UNREACHABLE) && !defined(USE_ASSERT_CHECKING)
345
+ #define pg_unreachable() __builtin_unreachable()
346
+ #elif defined(_MSC_VER) && !defined(USE_ASSERT_CHECKING)
347
+ #define pg_unreachable() __assume(0)
348
+ #else
349
+ #define pg_unreachable() abort()
350
+ #endif
351
+
352
+ /*
353
+ * Hints to the compiler about the likelihood of a branch. Both likely() and
354
+ * unlikely() return the boolean value of the contained expression.
355
+ *
356
+ * These should only be used sparingly, in very hot code paths. It's very easy
357
+ * to mis-estimate likelihoods.
358
+ */
359
+ #if __GNUC__ >= 3
360
+ #define likely(x) __builtin_expect((x) != 0, 1)
361
+ #define unlikely(x) __builtin_expect((x) != 0, 0)
362
+ #else
363
+ #define likely(x) ((x) != 0)
364
+ #define unlikely(x) ((x) != 0)
365
+ #endif
366
+
367
+ /*
368
+ * CppAsString
369
+ * Convert the argument to a string, using the C preprocessor.
370
+ * CppAsString2
371
+ * Convert the argument to a string, after one round of macro expansion.
372
+ * CppConcat
373
+ * Concatenate two arguments together, using the C preprocessor.
374
+ *
375
+ * Note: There used to be support here for pre-ANSI C compilers that didn't
376
+ * support # and ##. Nowadays, these macros are just for clarity and/or
377
+ * backward compatibility with existing PostgreSQL code.
378
+ */
379
+ #define CppAsString(identifier) #identifier
380
+ #define CppAsString2(x) CppAsString(x)
381
+ #define CppConcat(x, y) x##y
382
+
383
+ /*
384
+ * VA_ARGS_NARGS
385
+ * Returns the number of macro arguments it is passed.
386
+ *
387
+ * An empty argument still counts as an argument, so effectively, this is
388
+ * "one more than the number of commas in the argument list".
389
+ *
390
+ * This works for up to 63 arguments. Internally, VA_ARGS_NARGS_() is passed
391
+ * 64+N arguments, and the C99 standard only requires macros to allow up to
392
+ * 127 arguments, so we can't portably go higher. The implementation is
393
+ * pretty trivial: VA_ARGS_NARGS_() returns its 64th argument, and we set up
394
+ * the call so that that is the appropriate one of the list of constants.
395
+ * This idea is due to Laurent Deniau.
396
+ *
397
+ * MSVC has an implementation of __VA_ARGS__ that doesn't conform to the
398
+ * standard unless you use the /Zc:preprocessor compiler flag, but that
399
+ * isn't available before Visual Studio 2019. For now, use a different
400
+ * definition that also works on older compilers.
401
+ */
402
+ #ifdef _MSC_VER
403
+ #define EXPAND(args) args
404
+ #define VA_ARGS_NARGS(...) \
405
+ VA_ARGS_NARGS_ EXPAND((__VA_ARGS__, \
406
+ 63,62,61,60, \
407
+ 59,58,57,56,55,54,53,52,51,50, \
408
+ 49,48,47,46,45,44,43,42,41,40, \
409
+ 39,38,37,36,35,34,33,32,31,30, \
410
+ 29,28,27,26,25,24,23,22,21,20, \
411
+ 19,18,17,16,15,14,13,12,11,10, \
412
+ 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
413
+ #else
414
+
415
+ #define VA_ARGS_NARGS(...) \
416
+ VA_ARGS_NARGS_(__VA_ARGS__, \
417
+ 63,62,61,60, \
418
+ 59,58,57,56,55,54,53,52,51,50, \
419
+ 49,48,47,46,45,44,43,42,41,40, \
420
+ 39,38,37,36,35,34,33,32,31,30, \
421
+ 29,28,27,26,25,24,23,22,21,20, \
422
+ 19,18,17,16,15,14,13,12,11,10, \
423
+ 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
424
+ #endif
425
+
426
+ #define VA_ARGS_NARGS_( \
427
+ _01,_02,_03,_04,_05,_06,_07,_08,_09,_10, \
428
+ _11,_12,_13,_14,_15,_16,_17,_18,_19,_20, \
429
+ _21,_22,_23,_24,_25,_26,_27,_28,_29,_30, \
430
+ _31,_32,_33,_34,_35,_36,_37,_38,_39,_40, \
431
+ _41,_42,_43,_44,_45,_46,_47,_48,_49,_50, \
432
+ _51,_52,_53,_54,_55,_56,_57,_58,_59,_60, \
433
+ _61,_62,_63, N, ...) \
434
+ (N)
435
+
436
+ /*
437
+ * Generic function pointer. This can be used in the rare cases where it's
438
+ * necessary to cast a function pointer to a seemingly incompatible function
439
+ * pointer type while avoiding gcc's -Wcast-function-type warnings.
440
+ */
441
+ typedef void (*pg_funcptr_t) (void);
442
+
443
+ /*
444
+ * We require C99, hence the compiler should understand flexible array
445
+ * members. However, for documentation purposes we still consider it to be
446
+ * project style to write "field[FLEXIBLE_ARRAY_MEMBER]" not just "field[]".
447
+ * When computing the size of such an object, use "offsetof(struct s, f)"
448
+ * for portability. Don't use "offsetof(struct s, f[0])", as this doesn't
449
+ * work with MSVC and with C++ compilers.
450
+ */
451
+ #define FLEXIBLE_ARRAY_MEMBER /* empty */
452
+
453
+ /*
454
+ * Does the compiler support #pragma GCC system_header? We optionally use it
455
+ * to avoid warnings that we can't fix (e.g. in the perl headers).
456
+ * See https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
457
+ *
458
+ * Headers for which we do not want to show compiler warnings can,
459
+ * conditionally, use #pragma GCC system_header to avoid warnings. Obviously
460
+ * this should only be used for external headers over which we do not have
461
+ * control.
462
+ *
463
+ * Support for the pragma is tested here, instead of during configure, as gcc
464
+ * also warns about the pragma being used in a .c file. It's surprisingly hard
465
+ * to get autoconf to use .h as the file-ending. Looks like gcc has
466
+ * implemented the pragma since the 2000, so this test should suffice.
467
+ *
468
+ *
469
+ * Alternatively, we could add the include paths for problematic headers with
470
+ * -isystem, but that is a larger hammer and is harder to search for.
471
+ *
472
+ * A more granular alternative would be to use #pragma GCC diagnostic
473
+ * push/ignored/pop, but gcc warns about unknown warnings being ignored, so
474
+ * every to-be-ignored-temporarily compiler warning would require its own
475
+ * pg_config.h symbol and #ifdef.
476
+ */
477
+ #ifdef __GNUC__
478
+ #define HAVE_PRAGMA_GCC_SYSTEM_HEADER 1
479
+ #endif
480
+
481
+
482
+ /* ----------------------------------------------------------------
483
+ * Section 2: bool, true, false
484
+ * ----------------------------------------------------------------
485
+ */
486
+
487
+ /*
488
+ * bool
489
+ * Boolean value, either true or false.
490
+ *
491
+ * PostgreSQL currently cannot deal with bool of size other than 1; there are
492
+ * static assertions around the code to prevent that.
493
+ */
494
+
495
+ #include <stdbool.h>
496
+
497
+
498
+ /* ----------------------------------------------------------------
499
+ * Section 3: standard system types
500
+ * ----------------------------------------------------------------
501
+ */
502
+
503
+ /*
504
+ * Pointer
505
+ * Variable holding address of any memory resident object.
506
+ *
507
+ * XXX Pointer arithmetic is done with this, so it can't be void *
508
+ * under "true" ANSI compilers.
509
+ */
510
+ typedef char *Pointer;
511
+
512
+ /* Historical names for types in <stdint.h>. */
513
+ typedef int8_t int8;
514
+ typedef int16_t int16;
515
+ typedef int32_t int32;
516
+ typedef int64_t int64;
517
+ typedef uint8_t uint8;
518
+ typedef uint16_t uint16;
519
+ typedef uint32_t uint32;
520
+ typedef uint64_t uint64;
521
+
522
+ /*
523
+ * bitsN
524
+ * Unit of bitwise operation, AT LEAST N BITS IN SIZE.
525
+ */
526
+ typedef uint8 bits8; /* >= 8 bits */
527
+ typedef uint16 bits16; /* >= 16 bits */
528
+ typedef uint32 bits32; /* >= 32 bits */
529
+
530
+ /*
531
+ * 64-bit integers
532
+ */
533
+ #define INT64CONST(x) INT64_C(x)
534
+ #define UINT64CONST(x) UINT64_C(x)
535
+
536
+ /* snprintf format strings to use for 64-bit integers */
537
+ #define INT64_FORMAT "%" PRId64
538
+ #define UINT64_FORMAT "%" PRIu64
539
+
540
+ /*
541
+ * 128-bit signed and unsigned integers
542
+ * There currently is only limited support for such types.
543
+ * E.g. 128bit literals and snprintf are not supported; but math is.
544
+ * Also, because we exclude such types when choosing MAXIMUM_ALIGNOF,
545
+ * it must be possible to coerce the compiler to allocate them on no
546
+ * more than MAXALIGN boundaries.
547
+ */
548
+ #if defined(PG_INT128_TYPE)
549
+ #if defined(pg_attribute_aligned) || ALIGNOF_PG_INT128_TYPE <= MAXIMUM_ALIGNOF
550
+ #define HAVE_INT128 1
551
+
552
+ typedef PG_INT128_TYPE int128
553
+ #if defined(pg_attribute_aligned)
554
+ pg_attribute_aligned(MAXIMUM_ALIGNOF)
555
+ #endif
556
+ ;
557
+
558
+ typedef unsigned PG_INT128_TYPE uint128
559
+ #if defined(pg_attribute_aligned)
560
+ pg_attribute_aligned(MAXIMUM_ALIGNOF)
561
+ #endif
562
+ ;
563
+
564
+ #endif
565
+ #endif
566
+
567
+ /* Historical names for limits in <stdint.h>. */
568
+ #define PG_INT8_MIN INT8_MIN
569
+ #define PG_INT8_MAX INT8_MAX
570
+ #define PG_UINT8_MAX UINT8_MAX
571
+ #define PG_INT16_MIN INT16_MIN
572
+ #define PG_INT16_MAX INT16_MAX
573
+ #define PG_UINT16_MAX UINT16_MAX
574
+ #define PG_INT32_MIN INT32_MIN
575
+ #define PG_INT32_MAX INT32_MAX
576
+ #define PG_UINT32_MAX UINT32_MAX
577
+ #define PG_INT64_MIN INT64_MIN
578
+ #define PG_INT64_MAX INT64_MAX
579
+ #define PG_UINT64_MAX UINT64_MAX
580
+
581
+ /*
582
+ * We now always use int64 timestamps, but keep this symbol defined for the
583
+ * benefit of external code that might test it.
584
+ */
585
+ #define HAVE_INT64_TIMESTAMP
586
+
587
+ /*
588
+ * Size
589
+ * Size of any memory resident object, as returned by sizeof.
590
+ */
591
+ typedef size_t Size;
592
+
593
+ /*
594
+ * Index
595
+ * Index into any memory resident array.
596
+ *
597
+ * Note:
598
+ * Indices are non negative.
599
+ */
600
+ typedef unsigned int Index;
601
+
602
+ /*
603
+ * Offset
604
+ * Offset into any memory resident array.
605
+ *
606
+ * Note:
607
+ * This differs from an Index in that an Index is always
608
+ * non negative, whereas Offset may be negative.
609
+ */
610
+ typedef signed int Offset;
611
+
612
+ /*
613
+ * Common Postgres datatype names (as used in the catalogs)
614
+ */
615
+ typedef float float4;
616
+ typedef double float8;
617
+
618
+ #ifdef USE_FLOAT8_BYVAL
619
+ #define FLOAT8PASSBYVAL true
620
+ #else
621
+ #define FLOAT8PASSBYVAL false
622
+ #endif
623
+
624
+ /*
625
+ * Oid, RegProcedure, TransactionId, SubTransactionId, MultiXactId,
626
+ * CommandId
627
+ */
628
+
629
+ /* typedef Oid is in postgres_ext.h */
630
+
631
+ /*
632
+ * regproc is the type name used in the include/catalog headers, but
633
+ * RegProcedure is the preferred name in C code.
634
+ */
635
+ typedef Oid regproc;
636
+ typedef regproc RegProcedure;
637
+
638
+ typedef uint32 TransactionId;
639
+
640
+ typedef uint32 LocalTransactionId;
641
+
642
+ typedef uint32 SubTransactionId;
643
+
644
+ #define InvalidSubTransactionId ((SubTransactionId) 0)
645
+ #define TopSubTransactionId ((SubTransactionId) 1)
646
+
647
+ /* MultiXactId must be equivalent to TransactionId, to fit in t_xmax */
648
+ typedef TransactionId MultiXactId;
649
+
650
+ typedef uint32 MultiXactOffset;
651
+
652
+ typedef uint32 CommandId;
653
+
654
+ #define FirstCommandId ((CommandId) 0)
655
+ #define InvalidCommandId (~(CommandId)0)
656
+
657
+
658
+ /* ----------------
659
+ * Variable-length datatypes all share the 'struct varlena' header.
660
+ *
661
+ * NOTE: for TOASTable types, this is an oversimplification, since the value
662
+ * may be compressed or moved out-of-line. However datatype-specific routines
663
+ * are mostly content to deal with de-TOASTed values only, and of course
664
+ * client-side routines should never see a TOASTed value. But even in a
665
+ * de-TOASTed value, beware of touching vl_len_ directly, as its
666
+ * representation is no longer convenient. It's recommended that code always
667
+ * use macros VARDATA_ANY, VARSIZE_ANY, VARSIZE_ANY_EXHDR, VARDATA, VARSIZE,
668
+ * and SET_VARSIZE instead of relying on direct mentions of the struct fields.
669
+ * See postgres.h for details of the TOASTed form.
670
+ * ----------------
671
+ */
672
+ struct varlena
673
+ {
674
+ char vl_len_[4]; /* Do not touch this field directly! */
675
+ char vl_dat[FLEXIBLE_ARRAY_MEMBER]; /* Data content is here */
676
+ };
677
+
678
+ #define VARHDRSZ ((int32) sizeof(int32))
679
+
680
+ /*
681
+ * These widely-used datatypes are just a varlena header and the data bytes.
682
+ * There is no terminating null or anything like that --- the data length is
683
+ * always VARSIZE_ANY_EXHDR(ptr).
684
+ */
685
+ typedef struct varlena bytea;
686
+ typedef struct varlena text;
687
+ typedef struct varlena BpChar; /* blank-padded char, ie SQL char(n) */
688
+ typedef struct varlena VarChar; /* var-length char, ie SQL varchar(n) */
689
+
690
+ /*
691
+ * Specialized array types. These are physically laid out just the same
692
+ * as regular arrays (so that the regular array subscripting code works
693
+ * with them). They exist as distinct types mostly for historical reasons:
694
+ * they have nonstandard I/O behavior which we don't want to change for fear
695
+ * of breaking applications that look at the system catalogs. There is also
696
+ * an implementation issue for oidvector: it's part of the primary key for
697
+ * pg_proc, and we can't use the normal btree array support routines for that
698
+ * without circularity.
699
+ */
700
+ typedef struct
701
+ {
702
+ int32 vl_len_; /* these fields must match ArrayType! */
703
+ int ndim; /* always 1 for int2vector */
704
+ int32 dataoffset; /* always 0 for int2vector */
705
+ Oid elemtype;
706
+ int dim1;
707
+ int lbound1;
708
+ int16 values[FLEXIBLE_ARRAY_MEMBER];
709
+ } int2vector;
710
+
711
+ typedef struct
712
+ {
713
+ int32 vl_len_; /* these fields must match ArrayType! */
714
+ int ndim; /* always 1 for oidvector */
715
+ int32 dataoffset; /* always 0 for oidvector */
716
+ Oid elemtype;
717
+ int dim1;
718
+ int lbound1;
719
+ Oid values[FLEXIBLE_ARRAY_MEMBER];
720
+ } oidvector;
721
+
722
+ /*
723
+ * Representation of a Name: effectively just a C string, but null-padded to
724
+ * exactly NAMEDATALEN bytes. The use of a struct is historical.
725
+ */
726
+ typedef struct nameData
727
+ {
728
+ char data[NAMEDATALEN];
729
+ } NameData;
730
+ typedef NameData *Name;
731
+
732
+ #define NameStr(name) ((name).data)
733
+
734
+
735
+ /* ----------------------------------------------------------------
736
+ * Section 4: IsValid macros for system types
737
+ * ----------------------------------------------------------------
738
+ */
739
+ /*
740
+ * BoolIsValid
741
+ * True iff bool is valid.
742
+ */
743
+ #define BoolIsValid(boolean) ((boolean) == false || (boolean) == true)
744
+
745
+ /*
746
+ * PointerIsValid
747
+ * True iff pointer is valid.
748
+ */
749
+ #define PointerIsValid(pointer) ((const void*)(pointer) != NULL)
750
+
751
+ /*
752
+ * PointerIsAligned
753
+ * True iff pointer is properly aligned to point to the given type.
754
+ */
755
+ #define PointerIsAligned(pointer, type) \
756
+ (((uintptr_t)(pointer) % (sizeof (type))) == 0)
757
+
758
+ #define OffsetToPointer(base, offset) \
759
+ ((void *)((char *) base + offset))
760
+
761
+ #define OidIsValid(objectId) ((bool) ((objectId) != InvalidOid))
762
+
763
+ #define RegProcedureIsValid(p) OidIsValid(p)
764
+
765
+
766
+ /* ----------------------------------------------------------------
767
+ * Section 5: lengthof, alignment
768
+ * ----------------------------------------------------------------
769
+ */
770
+ /*
771
+ * lengthof
772
+ * Number of elements in an array.
773
+ */
774
+ #define lengthof(array) (sizeof (array) / sizeof ((array)[0]))
775
+
776
+ /* ----------------
777
+ * Alignment macros: align a length or address appropriately for a given type.
778
+ * The fooALIGN() macros round up to a multiple of the required alignment,
779
+ * while the fooALIGN_DOWN() macros round down. The latter are more useful
780
+ * for problems like "how many X-sized structures will fit in a page?".
781
+ *
782
+ * NOTE: TYPEALIGN[_DOWN] will not work if ALIGNVAL is not a power of 2.
783
+ * That case seems extremely unlikely to be needed in practice, however.
784
+ *
785
+ * NOTE: MAXIMUM_ALIGNOF, and hence MAXALIGN(), intentionally exclude any
786
+ * larger-than-8-byte types the compiler might have.
787
+ * ----------------
788
+ */
789
+
790
+ #define TYPEALIGN(ALIGNVAL,LEN) \
791
+ (((uintptr_t) (LEN) + ((ALIGNVAL) - 1)) & ~((uintptr_t) ((ALIGNVAL) - 1)))
792
+
793
+ #define SHORTALIGN(LEN) TYPEALIGN(ALIGNOF_SHORT, (LEN))
794
+ #define INTALIGN(LEN) TYPEALIGN(ALIGNOF_INT, (LEN))
795
+ #define LONGALIGN(LEN) TYPEALIGN(ALIGNOF_LONG, (LEN))
796
+ #define DOUBLEALIGN(LEN) TYPEALIGN(ALIGNOF_DOUBLE, (LEN))
797
+ #define MAXALIGN(LEN) TYPEALIGN(MAXIMUM_ALIGNOF, (LEN))
798
+ /* MAXALIGN covers only built-in types, not buffers */
799
+ #define BUFFERALIGN(LEN) TYPEALIGN(ALIGNOF_BUFFER, (LEN))
800
+ #define CACHELINEALIGN(LEN) TYPEALIGN(PG_CACHE_LINE_SIZE, (LEN))
801
+
802
+ #define TYPEALIGN_DOWN(ALIGNVAL,LEN) \
803
+ (((uintptr_t) (LEN)) & ~((uintptr_t) ((ALIGNVAL) - 1)))
804
+
805
+ #define SHORTALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_SHORT, (LEN))
806
+ #define INTALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_INT, (LEN))
807
+ #define LONGALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_LONG, (LEN))
808
+ #define DOUBLEALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_DOUBLE, (LEN))
809
+ #define MAXALIGN_DOWN(LEN) TYPEALIGN_DOWN(MAXIMUM_ALIGNOF, (LEN))
810
+ #define BUFFERALIGN_DOWN(LEN) TYPEALIGN_DOWN(ALIGNOF_BUFFER, (LEN))
811
+
812
+ /*
813
+ * The above macros will not work with types wider than uintptr_t, like with
814
+ * uint64 on 32-bit platforms. That's not problem for the usual use where a
815
+ * pointer or a length is aligned, but for the odd case that you need to
816
+ * align something (potentially) wider, use TYPEALIGN64.
817
+ */
818
+ #define TYPEALIGN64(ALIGNVAL,LEN) \
819
+ (((uint64) (LEN) + ((ALIGNVAL) - 1)) & ~((uint64) ((ALIGNVAL) - 1)))
820
+
821
+ /* we don't currently need wider versions of the other ALIGN macros */
822
+ #define MAXALIGN64(LEN) TYPEALIGN64(MAXIMUM_ALIGNOF, (LEN))
823
+
824
+
825
+ /* ----------------------------------------------------------------
826
+ * Section 6: assertions
827
+ * ----------------------------------------------------------------
828
+ */
829
+
830
+ /*
831
+ * USE_ASSERT_CHECKING, if defined, turns on all the assertions.
832
+ * - plai 9/5/90
833
+ *
834
+ * It should _NOT_ be defined in releases or in benchmark copies
835
+ */
836
+
837
+ /*
838
+ * Assert() can be used in both frontend and backend code. In frontend code it
839
+ * just calls the standard assert, if it's available. If use of assertions is
840
+ * not configured, it does nothing.
841
+ */
842
+ #ifndef USE_ASSERT_CHECKING
843
+
844
+ #define Assert(condition) ((void)true)
845
+ #define AssertMacro(condition) ((void)true)
846
+
847
+ #elif defined(FRONTEND)
848
+
849
+ #include <assert.h>
850
+ #define Assert(p) assert(p)
851
+ #define AssertMacro(p) ((void) assert(p))
852
+
853
+ #else /* USE_ASSERT_CHECKING && !FRONTEND */
854
+
855
+ /*
856
+ * Assert
857
+ * Generates a fatal exception if the given condition is false.
858
+ */
859
+ #define Assert(condition) \
860
+ do { \
861
+ if (!(condition)) \
862
+ ExceptionalCondition(#condition, __FILE__, __LINE__); \
863
+ } while (0)
864
+
865
+ /*
866
+ * AssertMacro is the same as Assert but it's suitable for use in
867
+ * expression-like macros, for example:
868
+ *
869
+ * #define foo(x) (AssertMacro(x != 0), bar(x))
870
+ */
871
+ #define AssertMacro(condition) \
872
+ ((void) ((condition) || \
873
+ (ExceptionalCondition(#condition, __FILE__, __LINE__), 0)))
874
+
875
+ #endif /* USE_ASSERT_CHECKING && !FRONTEND */
876
+
877
+ /*
878
+ * Check that `ptr' is `bndr' aligned.
879
+ */
880
+ #define AssertPointerAlignment(ptr, bndr) \
881
+ Assert(TYPEALIGN(bndr, (uintptr_t)(ptr)) == (uintptr_t)(ptr))
882
+
883
+ /*
884
+ * ExceptionalCondition is compiled into the backend whether or not
885
+ * USE_ASSERT_CHECKING is defined, so as to support use of extensions
886
+ * that are built with that #define with a backend that isn't. Hence,
887
+ * we should declare it as long as !FRONTEND.
888
+ */
889
+ #ifndef FRONTEND
890
+ pg_noreturn extern void ExceptionalCondition(const char *conditionName,
891
+ const char *fileName, int lineNumber);
892
+ #endif
893
+
894
+ /*
895
+ * Macros to support compile-time assertion checks.
896
+ *
897
+ * If the "condition" (a compile-time-constant expression) evaluates to false,
898
+ * throw a compile error using the "errmessage" (a string literal).
899
+ *
900
+ * C11 has _Static_assert(), and most C99 compilers already support that. For
901
+ * portability, we wrap it into StaticAssertDecl(). _Static_assert() is a
902
+ * "declaration", and so it must be placed where for example a variable
903
+ * declaration would be valid. As long as we compile with
904
+ * -Wno-declaration-after-statement, that also means it cannot be placed after
905
+ * statements in a function. Macros StaticAssertStmt() and StaticAssertExpr()
906
+ * make it safe to use as a statement or in an expression, respectively.
907
+ *
908
+ * For compilers without _Static_assert(), we fall back on a kluge that
909
+ * assumes the compiler will complain about a negative width for a struct
910
+ * bit-field. This will not include a helpful error message, but it beats not
911
+ * getting an error at all.
912
+ */
913
+ #ifndef __cplusplus
914
+ #ifdef HAVE__STATIC_ASSERT
915
+ #define StaticAssertDecl(condition, errmessage) \
916
+ _Static_assert(condition, errmessage)
917
+ #define StaticAssertStmt(condition, errmessage) \
918
+ do { _Static_assert(condition, errmessage); } while(0)
919
+ #define StaticAssertExpr(condition, errmessage) \
920
+ ((void) ({ StaticAssertStmt(condition, errmessage); true; }))
921
+ #else /* !HAVE__STATIC_ASSERT */
922
+ #define StaticAssertDecl(condition, errmessage) \
923
+ extern void static_assert_func(int static_assert_failure[(condition) ? 1 : -1])
924
+ #define StaticAssertStmt(condition, errmessage) \
925
+ ((void) sizeof(struct { int static_assert_failure : (condition) ? 1 : -1; }))
926
+ #define StaticAssertExpr(condition, errmessage) \
927
+ StaticAssertStmt(condition, errmessage)
928
+ #endif /* HAVE__STATIC_ASSERT */
929
+ #else /* C++ */
930
+ #if defined(__cpp_static_assert) && __cpp_static_assert >= 200410
931
+ #define StaticAssertDecl(condition, errmessage) \
932
+ static_assert(condition, errmessage)
933
+ #define StaticAssertStmt(condition, errmessage) \
934
+ static_assert(condition, errmessage)
935
+ #define StaticAssertExpr(condition, errmessage) \
936
+ ({ static_assert(condition, errmessage); })
937
+ #else /* !__cpp_static_assert */
938
+ #define StaticAssertDecl(condition, errmessage) \
939
+ extern void static_assert_func(int static_assert_failure[(condition) ? 1 : -1])
940
+ #define StaticAssertStmt(condition, errmessage) \
941
+ do { struct static_assert_struct { int static_assert_failure : (condition) ? 1 : -1; }; } while(0)
942
+ #define StaticAssertExpr(condition, errmessage) \
943
+ ((void) ({ StaticAssertStmt(condition, errmessage); }))
944
+ #endif /* __cpp_static_assert */
945
+ #endif /* C++ */
946
+
947
+
948
+ /*
949
+ * Compile-time checks that a variable (or expression) has the specified type.
950
+ *
951
+ * AssertVariableIsOfType() can be used as a statement.
952
+ * AssertVariableIsOfTypeMacro() is intended for use in macros, eg
953
+ * #define foo(x) (AssertVariableIsOfTypeMacro(x, int), bar(x))
954
+ *
955
+ * If we don't have __builtin_types_compatible_p, we can still assert that
956
+ * the types have the same size. This is far from ideal (especially on 32-bit
957
+ * platforms) but it provides at least some coverage.
958
+ */
959
+ #ifdef HAVE__BUILTIN_TYPES_COMPATIBLE_P
960
+ #define AssertVariableIsOfType(varname, typename) \
961
+ StaticAssertStmt(__builtin_types_compatible_p(__typeof__(varname), typename), \
962
+ CppAsString(varname) " does not have type " CppAsString(typename))
963
+ #define AssertVariableIsOfTypeMacro(varname, typename) \
964
+ (StaticAssertExpr(__builtin_types_compatible_p(__typeof__(varname), typename), \
965
+ CppAsString(varname) " does not have type " CppAsString(typename)))
966
+ #else /* !HAVE__BUILTIN_TYPES_COMPATIBLE_P */
967
+ #define AssertVariableIsOfType(varname, typename) \
968
+ StaticAssertStmt(sizeof(varname) == sizeof(typename), \
969
+ CppAsString(varname) " does not have type " CppAsString(typename))
970
+ #define AssertVariableIsOfTypeMacro(varname, typename) \
971
+ (StaticAssertExpr(sizeof(varname) == sizeof(typename), \
972
+ CppAsString(varname) " does not have type " CppAsString(typename)))
973
+ #endif /* HAVE__BUILTIN_TYPES_COMPATIBLE_P */
974
+
975
+
976
+ /* ----------------------------------------------------------------
977
+ * Section 7: widely useful macros
978
+ * ----------------------------------------------------------------
979
+ */
980
+ /*
981
+ * Max
982
+ * Return the maximum of two numbers.
983
+ */
984
+ #define Max(x, y) ((x) > (y) ? (x) : (y))
985
+
986
+ /*
987
+ * Min
988
+ * Return the minimum of two numbers.
989
+ */
990
+ #define Min(x, y) ((x) < (y) ? (x) : (y))
991
+
992
+
993
+ /* Get a bit mask of the bits set in non-long aligned addresses */
994
+ #define LONG_ALIGN_MASK (sizeof(long) - 1)
995
+
996
+ /*
997
+ * MemSet
998
+ * Exactly the same as standard library function memset(), but considerably
999
+ * faster for zeroing small word-aligned structures (such as parsetree nodes).
1000
+ * This has to be a macro because the main point is to avoid function-call
1001
+ * overhead. However, we have also found that the loop is faster than
1002
+ * native libc memset() on some platforms, even those with assembler
1003
+ * memset() functions. More research needs to be done, perhaps with
1004
+ * MEMSET_LOOP_LIMIT tests in configure.
1005
+ */
1006
+ #define MemSet(start, val, len) \
1007
+ do \
1008
+ { \
1009
+ /* must be void* because we don't know if it is integer aligned yet */ \
1010
+ void *_vstart = (void *) (start); \
1011
+ int _val = (val); \
1012
+ Size _len = (len); \
1013
+ \
1014
+ if ((((uintptr_t) _vstart) & LONG_ALIGN_MASK) == 0 && \
1015
+ (_len & LONG_ALIGN_MASK) == 0 && \
1016
+ _val == 0 && \
1017
+ _len <= MEMSET_LOOP_LIMIT && \
1018
+ /* \
1019
+ * If MEMSET_LOOP_LIMIT == 0, optimizer should find \
1020
+ * the whole "if" false at compile time. \
1021
+ */ \
1022
+ MEMSET_LOOP_LIMIT != 0) \
1023
+ { \
1024
+ long *_start = (long *) _vstart; \
1025
+ long *_stop = (long *) ((char *) _start + _len); \
1026
+ while (_start < _stop) \
1027
+ *_start++ = 0; \
1028
+ } \
1029
+ else \
1030
+ memset(_vstart, _val, _len); \
1031
+ } while (0)
1032
+
1033
+ /*
1034
+ * MemSetAligned is the same as MemSet except it omits the test to see if
1035
+ * "start" is word-aligned. This is okay to use if the caller knows a-priori
1036
+ * that the pointer is suitably aligned (typically, because he just got it
1037
+ * from palloc(), which always delivers a max-aligned pointer).
1038
+ */
1039
+ #define MemSetAligned(start, val, len) \
1040
+ do \
1041
+ { \
1042
+ long *_start = (long *) (start); \
1043
+ int _val = (val); \
1044
+ Size _len = (len); \
1045
+ \
1046
+ if ((_len & LONG_ALIGN_MASK) == 0 && \
1047
+ _val == 0 && \
1048
+ _len <= MEMSET_LOOP_LIMIT && \
1049
+ MEMSET_LOOP_LIMIT != 0) \
1050
+ { \
1051
+ long *_stop = (long *) ((char *) _start + _len); \
1052
+ while (_start < _stop) \
1053
+ *_start++ = 0; \
1054
+ } \
1055
+ else \
1056
+ memset(_start, _val, _len); \
1057
+ } while (0)
1058
+
1059
+
1060
+ /*
1061
+ * Macros for range-checking float values before converting to integer.
1062
+ * We must be careful here that the boundary values are expressed exactly
1063
+ * in the float domain. PG_INTnn_MIN is an exact power of 2, so it will
1064
+ * be represented exactly; but PG_INTnn_MAX isn't, and might get rounded
1065
+ * off, so avoid using that.
1066
+ * The input must be rounded to an integer beforehand, typically with rint(),
1067
+ * else we might draw the wrong conclusion about close-to-the-limit values.
1068
+ * These macros will do the right thing for Inf, but not necessarily for NaN,
1069
+ * so check isnan(num) first if that's a possibility.
1070
+ */
1071
+ #define FLOAT4_FITS_IN_INT16(num) \
1072
+ ((num) >= (float4) PG_INT16_MIN && (num) < -((float4) PG_INT16_MIN))
1073
+ #define FLOAT4_FITS_IN_INT32(num) \
1074
+ ((num) >= (float4) PG_INT32_MIN && (num) < -((float4) PG_INT32_MIN))
1075
+ #define FLOAT4_FITS_IN_INT64(num) \
1076
+ ((num) >= (float4) PG_INT64_MIN && (num) < -((float4) PG_INT64_MIN))
1077
+ #define FLOAT8_FITS_IN_INT16(num) \
1078
+ ((num) >= (float8) PG_INT16_MIN && (num) < -((float8) PG_INT16_MIN))
1079
+ #define FLOAT8_FITS_IN_INT32(num) \
1080
+ ((num) >= (float8) PG_INT32_MIN && (num) < -((float8) PG_INT32_MIN))
1081
+ #define FLOAT8_FITS_IN_INT64(num) \
1082
+ ((num) >= (float8) PG_INT64_MIN && (num) < -((float8) PG_INT64_MIN))
1083
+
1084
+
1085
+ /* ----------------------------------------------------------------
1086
+ * Section 8: random stuff
1087
+ * ----------------------------------------------------------------
1088
+ */
1089
+
1090
+ /*
1091
+ * Invert the sign of a qsort-style comparison result, ie, exchange negative
1092
+ * and positive integer values, being careful not to get the wrong answer
1093
+ * for INT_MIN. The argument should be an integral variable.
1094
+ */
1095
+ #define INVERT_COMPARE_RESULT(var) \
1096
+ ((var) = ((var) < 0) ? 1 : -(var))
1097
+
1098
+ /*
1099
+ * Use this, not "char buf[BLCKSZ]", to declare a field or local variable
1100
+ * holding a page buffer, if that page might be accessed as a page. Otherwise
1101
+ * the variable might be under-aligned, causing problems on alignment-picky
1102
+ * hardware. We include both "double" and "int64" in the union to ensure that
1103
+ * the compiler knows the value must be MAXALIGN'ed (cf. configure's
1104
+ * computation of MAXIMUM_ALIGNOF).
1105
+ */
1106
+ typedef union PGAlignedBlock
1107
+ {
1108
+ char data[BLCKSZ];
1109
+ double force_align_d;
1110
+ int64 force_align_i64;
1111
+ } PGAlignedBlock;
1112
+
1113
+ /*
1114
+ * Use this to declare a field or local variable holding a page buffer, if that
1115
+ * page might be accessed as a page or passed to an SMgr I/O function. If
1116
+ * allocating using the MemoryContext API, the aligned allocation functions
1117
+ * should be used with PG_IO_ALIGN_SIZE. This alignment may be more efficient
1118
+ * for I/O in general, but may be strictly required on some platforms when
1119
+ * using direct I/O.
1120
+ */
1121
+ typedef union PGIOAlignedBlock
1122
+ {
1123
+ #ifdef pg_attribute_aligned
1124
+ pg_attribute_aligned(PG_IO_ALIGN_SIZE)
1125
+ #endif
1126
+ char data[BLCKSZ];
1127
+ double force_align_d;
1128
+ int64 force_align_i64;
1129
+ } PGIOAlignedBlock;
1130
+
1131
+ /* Same, but for an XLOG_BLCKSZ-sized buffer */
1132
+ typedef union PGAlignedXLogBlock
1133
+ {
1134
+ #ifdef pg_attribute_aligned
1135
+ pg_attribute_aligned(PG_IO_ALIGN_SIZE)
1136
+ #endif
1137
+ char data[XLOG_BLCKSZ];
1138
+ double force_align_d;
1139
+ int64 force_align_i64;
1140
+ } PGAlignedXLogBlock;
1141
+
1142
+ /* msb for char */
1143
+ #define HIGHBIT (0x80)
1144
+ #define IS_HIGHBIT_SET(ch) ((unsigned char)(ch) & HIGHBIT)
1145
+
1146
+ /*
1147
+ * Support macros for escaping strings. escape_backslash should be true
1148
+ * if generating a non-standard-conforming string. Prefixing a string
1149
+ * with ESCAPE_STRING_SYNTAX guarantees it is non-standard-conforming.
1150
+ * Beware of multiple evaluation of the "ch" argument!
1151
+ */
1152
+ #define SQL_STR_DOUBLE(ch, escape_backslash) \
1153
+ ((ch) == '\'' || ((ch) == '\\' && (escape_backslash)))
1154
+
1155
+ #define ESCAPE_STRING_SYNTAX 'E'
1156
+
1157
+
1158
+ #define STATUS_OK (0)
1159
+ #define STATUS_ERROR (-1)
1160
+ #define STATUS_EOF (-2)
1161
+
1162
+ /*
1163
+ * gettext support
1164
+ */
1165
+
1166
+ #ifndef ENABLE_NLS
1167
+ /* stuff we'd otherwise get from <libintl.h> */
1168
+ #define gettext(x) (x)
1169
+ #define dgettext(d,x) (x)
1170
+ #define ngettext(s,p,n) ((n) == 1 ? (s) : (p))
1171
+ #define dngettext(d,s,p,n) ((n) == 1 ? (s) : (p))
1172
+ #endif
1173
+
1174
+ #define _(x) gettext(x)
1175
+
1176
+ /*
1177
+ * Use this to mark string constants as needing translation at some later
1178
+ * time, rather than immediately. This is useful for cases where you need
1179
+ * access to the original string and translated string, and for cases where
1180
+ * immediate translation is not possible, like when initializing global
1181
+ * variables.
1182
+ *
1183
+ * https://www.gnu.org/software/gettext/manual/html_node/Special-cases.html
1184
+ */
1185
+ #define gettext_noop(x) (x)
1186
+
1187
+ /*
1188
+ * To better support parallel installations of major PostgreSQL
1189
+ * versions as well as parallel installations of major library soname
1190
+ * versions, we mangle the gettext domain name by appending those
1191
+ * version numbers. The coding rule ought to be that wherever the
1192
+ * domain name is mentioned as a literal, it must be wrapped into
1193
+ * PG_TEXTDOMAIN(). The macros below do not work on non-literals; but
1194
+ * that is somewhat intentional because it avoids having to worry
1195
+ * about multiple states of premangling and postmangling as the values
1196
+ * are being passed around.
1197
+ *
1198
+ * Make sure this matches the installation rules in nls-global.mk.
1199
+ */
1200
+ #ifdef SO_MAJOR_VERSION
1201
+ #define PG_TEXTDOMAIN(domain) (domain CppAsString2(SO_MAJOR_VERSION) "-" PG_MAJORVERSION)
1202
+ #else
1203
+ #define PG_TEXTDOMAIN(domain) (domain "-" PG_MAJORVERSION)
1204
+ #endif
1205
+
1206
+ /*
1207
+ * Macro that allows to cast constness and volatile away from an expression, but doesn't
1208
+ * allow changing the underlying type. Enforcement of the latter
1209
+ * currently only works for gcc like compilers.
1210
+ *
1211
+ * Please note IT IS NOT SAFE to cast constness away if the result will ever
1212
+ * be modified (it would be undefined behaviour). Doing so anyway can cause
1213
+ * compiler misoptimizations or runtime crashes (modifying readonly memory).
1214
+ * It is only safe to use when the result will not be modified, but API
1215
+ * design or language restrictions prevent you from declaring that
1216
+ * (e.g. because a function returns both const and non-const variables).
1217
+ *
1218
+ * Note that this only works in function scope, not for global variables (it'd
1219
+ * be nice, but not trivial, to improve that).
1220
+ */
1221
+ #if defined(__cplusplus)
1222
+ #define unconstify(underlying_type, expr) const_cast<underlying_type>(expr)
1223
+ #define unvolatize(underlying_type, expr) const_cast<underlying_type>(expr)
1224
+ #elif defined(HAVE__BUILTIN_TYPES_COMPATIBLE_P)
1225
+ #define unconstify(underlying_type, expr) \
1226
+ (StaticAssertExpr(__builtin_types_compatible_p(__typeof(expr), const underlying_type), \
1227
+ "wrong cast"), \
1228
+ (underlying_type) (expr))
1229
+ #define unvolatize(underlying_type, expr) \
1230
+ (StaticAssertExpr(__builtin_types_compatible_p(__typeof(expr), volatile underlying_type), \
1231
+ "wrong cast"), \
1232
+ (underlying_type) (expr))
1233
+ #else
1234
+ #define unconstify(underlying_type, expr) \
1235
+ ((underlying_type) (expr))
1236
+ #define unvolatize(underlying_type, expr) \
1237
+ ((underlying_type) (expr))
1238
+ #endif
1239
+
1240
+ /* ----------------------------------------------------------------
1241
+ * Section 9: system-specific hacks
1242
+ *
1243
+ * This should be limited to things that absolutely have to be
1244
+ * included in every source file. The port-specific header file
1245
+ * is usually a better place for this sort of thing.
1246
+ * ----------------------------------------------------------------
1247
+ */
1248
+
1249
+ /*
1250
+ * NOTE: this is also used for opening text files.
1251
+ * WIN32 treats Control-Z as EOF in files opened in text mode.
1252
+ * Therefore, we open files in binary mode on Win32 so we can read
1253
+ * literal control-Z. The other affect is that we see CRLF, but
1254
+ * that is OK because we can already handle those cleanly.
1255
+ */
1256
+ #if defined(WIN32) || defined(__CYGWIN__)
1257
+ #define PG_BINARY O_BINARY
1258
+ #define PG_BINARY_A "ab"
1259
+ #define PG_BINARY_R "rb"
1260
+ #define PG_BINARY_W "wb"
1261
+ #else
1262
+ #define PG_BINARY 0
1263
+ #define PG_BINARY_A "a"
1264
+ #define PG_BINARY_R "r"
1265
+ #define PG_BINARY_W "w"
1266
+ #endif
1267
+
1268
+ /*
1269
+ * Provide prototypes for routines not present in a particular machine's
1270
+ * standard C library.
1271
+ */
1272
+
1273
+ #if !HAVE_DECL_FDATASYNC
1274
+ extern int fdatasync(int fildes);
1275
+ #endif
1276
+
1277
+ /*
1278
+ * Thin wrappers that convert strings to exactly 64-bit integers, matching our
1279
+ * definition of int64. (For the naming, compare that POSIX has
1280
+ * strtoimax()/strtoumax() which return intmax_t/uintmax_t.)
1281
+ */
1282
+ #if SIZEOF_LONG == 8
1283
+ #define strtoi64(str, endptr, base) ((int64) strtol(str, endptr, base))
1284
+ #define strtou64(str, endptr, base) ((uint64) strtoul(str, endptr, base))
1285
+ #elif SIZEOF_LONG_LONG == 8
1286
+ #define strtoi64(str, endptr, base) ((int64) strtoll(str, endptr, base))
1287
+ #define strtou64(str, endptr, base) ((uint64) strtoull(str, endptr, base))
1288
+ #else
1289
+ #error "cannot find integer type of the same size as int64_t"
1290
+ #endif
1291
+
1292
+ /*
1293
+ * Similarly, wrappers around labs()/llabs() matching our int64.
1294
+ */
1295
+ #if SIZEOF_LONG == 8
1296
+ #define i64abs(i) ((int64) labs(i))
1297
+ #elif SIZEOF_LONG_LONG == 8
1298
+ #define i64abs(i) ((int64) llabs(i))
1299
+ #else
1300
+ #error "cannot find integer type of the same size as int64_t"
1301
+ #endif
1302
+
1303
+ /*
1304
+ * Use "extern PGDLLIMPORT ..." to declare variables that are defined
1305
+ * in the core backend and need to be accessible by loadable modules.
1306
+ * No special marking is required on most ports.
1307
+ */
1308
+ #ifndef PGDLLIMPORT
1309
+ #define PGDLLIMPORT
1310
+ #endif
1311
+
1312
+ /*
1313
+ * Use "extern PGDLLEXPORT ..." to declare functions that are defined in
1314
+ * loadable modules and need to be callable by the core backend or other
1315
+ * loadable modules.
1316
+ * If the compiler knows __attribute__((visibility("*"))), we use that,
1317
+ * unless we already have a platform-specific definition. Otherwise,
1318
+ * no special marking is required.
1319
+ */
1320
+ #ifndef PGDLLEXPORT
1321
+ #ifdef HAVE_VISIBILITY_ATTRIBUTE
1322
+ #define PGDLLEXPORT __attribute__((visibility("default")))
1323
+ #else
1324
+ #define PGDLLEXPORT
1325
+ #endif
1326
+ #endif
1327
+
1328
+ /*
1329
+ * The following is used as the arg list for signal handlers. Any ports
1330
+ * that take something other than an int argument should override this in
1331
+ * their pg_config_os.h file. Note that variable names are required
1332
+ * because it is used in both the prototypes as well as the definitions.
1333
+ * Note also the long name. We expect that this won't collide with
1334
+ * other names causing compiler warnings.
1335
+ */
1336
+
1337
+ #ifndef SIGNAL_ARGS
1338
+ #define SIGNAL_ARGS int postgres_signal_arg
1339
+ #endif
1340
+
1341
+ /*
1342
+ * When there is no sigsetjmp, its functionality is provided by plain
1343
+ * setjmp. We now support the case only on Windows. However, it seems
1344
+ * that MinGW-64 has some longstanding issues in its setjmp support,
1345
+ * so on that toolchain we cheat and use gcc's builtins.
1346
+ */
1347
+ #ifdef WIN32
1348
+ #ifdef __MINGW64__
1349
+ typedef intptr_t sigjmp_buf[5];
1350
+ #define sigsetjmp(x,y) __builtin_setjmp(x)
1351
+ #define siglongjmp __builtin_longjmp
1352
+ #else /* !__MINGW64__ */
1353
+ #define sigjmp_buf jmp_buf
1354
+ #define sigsetjmp(x,y) setjmp(x)
1355
+ #define siglongjmp longjmp
1356
+ #endif /* __MINGW64__ */
1357
+ #endif /* WIN32 */
1358
+
1359
+ /* /port compatibility functions */
1360
+ #include "port.h"
1361
+
1362
+ /* IWYU pragma: end_exports */
1363
+
1364
+ #endif /* C_H */