@intentius/chant-lexicon-sql 0.0.0-stage → 0.112.1

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 (936) hide show
  1. package/README.md +39 -2
  2. package/dist/clickhouse/apply/apply.d.ts +82 -0
  3. package/dist/clickhouse/apply/apply.d.ts.map +1 -0
  4. package/dist/clickhouse/apply/mutations.d.ts +46 -0
  5. package/dist/clickhouse/apply/mutations.d.ts.map +1 -0
  6. package/dist/clickhouse/apply/statements.d.ts +99 -0
  7. package/dist/clickhouse/apply/statements.d.ts.map +1 -0
  8. package/dist/clickhouse/catalog-types.d.ts +76 -0
  9. package/dist/clickhouse/catalog-types.d.ts.map +1 -0
  10. package/dist/clickhouse/container.d.ts +63 -0
  11. package/dist/clickhouse/container.d.ts.map +1 -0
  12. package/dist/clickhouse/engine-syntax.d.ts +43 -0
  13. package/dist/clickhouse/engine-syntax.d.ts.map +1 -0
  14. package/dist/clickhouse/entities.d.ts +183 -0
  15. package/dist/clickhouse/entities.d.ts.map +1 -0
  16. package/dist/clickhouse/http.d.ts +40 -0
  17. package/dist/clickhouse/http.d.ts.map +1 -0
  18. package/dist/clickhouse/import/generator.d.ts +16 -0
  19. package/dist/clickhouse/import/generator.d.ts.map +1 -0
  20. package/dist/clickhouse/import/ir.d.ts +52 -0
  21. package/dist/clickhouse/import/ir.d.ts.map +1 -0
  22. package/dist/clickhouse/import/live-export.d.ts +28 -0
  23. package/dist/clickhouse/import/live-export.d.ts.map +1 -0
  24. package/dist/clickhouse/import/parser.d.ts +10 -0
  25. package/dist/clickhouse/import/parser.d.ts.map +1 -0
  26. package/dist/clickhouse/live/bind.d.ts +56 -0
  27. package/dist/clickhouse/live/bind.d.ts.map +1 -0
  28. package/dist/clickhouse/live/catalog.d.ts +39 -0
  29. package/dist/clickhouse/live/catalog.d.ts.map +1 -0
  30. package/dist/clickhouse/live/describe-resources.d.ts +34 -0
  31. package/dist/clickhouse/live/describe-resources.d.ts.map +1 -0
  32. package/dist/clickhouse/overlays/codecs.d.ts +28 -0
  33. package/dist/clickhouse/overlays/codecs.d.ts.map +1 -0
  34. package/dist/clickhouse/overlays/engines.d.ts +20 -0
  35. package/dist/clickhouse/overlays/engines.d.ts.map +1 -0
  36. package/dist/clickhouse/overlays/kinds.d.ts +38 -0
  37. package/dist/clickhouse/overlays/kinds.d.ts.map +1 -0
  38. package/dist/clickhouse/overlays/projections.d.ts +27 -0
  39. package/dist/clickhouse/overlays/projections.d.ts.map +1 -0
  40. package/dist/clickhouse/overlays/skip-indexes.d.ts +10 -0
  41. package/dist/clickhouse/overlays/skip-indexes.d.ts.map +1 -0
  42. package/dist/clickhouse/overlays/ttl.d.ts +35 -0
  43. package/dist/clickhouse/overlays/ttl.d.ts.map +1 -0
  44. package/dist/clickhouse/overlays/types.d.ts +21 -0
  45. package/dist/clickhouse/overlays/types.d.ts.map +1 -0
  46. package/dist/clickhouse/ownership.d.ts +71 -0
  47. package/dist/clickhouse/ownership.d.ts.map +1 -0
  48. package/dist/clickhouse/parser.d.ts +130 -0
  49. package/dist/clickhouse/parser.d.ts.map +1 -0
  50. package/dist/clickhouse/plan/commands.d.ts +26 -0
  51. package/dist/clickhouse/plan/commands.d.ts.map +1 -0
  52. package/dist/clickhouse/plan/deep.d.ts +32 -0
  53. package/dist/clickhouse/plan/deep.d.ts.map +1 -0
  54. package/dist/clickhouse/plan/diff.d.ts +37 -0
  55. package/dist/clickhouse/plan/diff.d.ts.map +1 -0
  56. package/dist/clickhouse/plan/disruption.d.ts +17 -0
  57. package/dist/clickhouse/plan/disruption.d.ts.map +1 -0
  58. package/dist/clickhouse/plan/normalize.d.ts +97 -0
  59. package/dist/clickhouse/plan/normalize.d.ts.map +1 -0
  60. package/dist/clickhouse/plan/rebuild-handoff.d.ts +38 -0
  61. package/dist/clickhouse/plan/rebuild-handoff.d.ts.map +1 -0
  62. package/dist/clickhouse/plan/report.d.ts +6 -0
  63. package/dist/clickhouse/plan/report.d.ts.map +1 -0
  64. package/dist/clickhouse/plan/rules.d.ts +60 -0
  65. package/dist/clickhouse/plan/rules.d.ts.map +1 -0
  66. package/dist/clickhouse/plan/schema.d.ts +23 -0
  67. package/dist/clickhouse/plan/schema.d.ts.map +1 -0
  68. package/dist/clickhouse/plan/server-format.d.ts +12 -0
  69. package/dist/clickhouse/plan/server-format.d.ts.map +1 -0
  70. package/dist/clickhouse/rebuild/backfill.d.ts +70 -0
  71. package/dist/clickhouse/rebuild/backfill.d.ts.map +1 -0
  72. package/dist/clickhouse/rebuild/observe.d.ts +157 -0
  73. package/dist/clickhouse/rebuild/observe.d.ts.map +1 -0
  74. package/dist/clickhouse/rebuild/op.d.ts +108 -0
  75. package/dist/clickhouse/rebuild/op.d.ts.map +1 -0
  76. package/dist/clickhouse/rebuild/partitions.d.ts +24 -0
  77. package/dist/clickhouse/rebuild/partitions.d.ts.map +1 -0
  78. package/dist/clickhouse/rebuild/receipts.d.ts +76 -0
  79. package/dist/clickhouse/rebuild/receipts.d.ts.map +1 -0
  80. package/dist/clickhouse/rebuild/replicas.d.ts +78 -0
  81. package/dist/clickhouse/rebuild/replicas.d.ts.map +1 -0
  82. package/dist/clickhouse/rebuild/steps.d.ts +151 -0
  83. package/dist/clickhouse/rebuild/steps.d.ts.map +1 -0
  84. package/dist/clickhouse/rebuild/verify.d.ts +51 -0
  85. package/dist/clickhouse/rebuild/verify.d.ts.map +1 -0
  86. package/dist/clickhouse/testing/fake-server.d.ts +27 -0
  87. package/dist/clickhouse/testing/fake-server.d.ts.map +1 -0
  88. package/dist/clickhouse/testing/roundtrip-schema.d.ts +3 -0
  89. package/dist/clickhouse/testing/roundtrip-schema.d.ts.map +1 -0
  90. package/dist/clickhouse/testing/writable-server.d.ts +35 -0
  91. package/dist/clickhouse/testing/writable-server.d.ts.map +1 -0
  92. package/dist/clickhouse/tokens.d.ts +15 -0
  93. package/dist/clickhouse/tokens.d.ts.map +1 -0
  94. package/dist/clickhouse.d.ts +24 -0
  95. package/dist/clickhouse.d.ts.map +1 -0
  96. package/dist/codegen/classifier-page.d.ts +6 -0
  97. package/dist/codegen/classifier-page.d.ts.map +1 -0
  98. package/dist/codegen/clickhouse-module.d.ts +23 -0
  99. package/dist/codegen/clickhouse-module.d.ts.map +1 -0
  100. package/dist/codegen/docs-cli.d.ts +3 -0
  101. package/dist/codegen/docs-cli.d.ts.map +1 -0
  102. package/dist/codegen/docs.d.ts +8 -0
  103. package/dist/codegen/docs.d.ts.map +1 -0
  104. package/dist/codegen/generate-cli.d.ts +3 -0
  105. package/dist/codegen/generate-cli.d.ts.map +1 -0
  106. package/dist/codegen/generate.d.ts +40 -0
  107. package/dist/codegen/generate.d.ts.map +1 -0
  108. package/dist/codegen/package.d.ts +7 -0
  109. package/dist/codegen/package.d.ts.map +1 -0
  110. package/dist/codegen/postgres-classifier-page.d.ts +7 -0
  111. package/dist/codegen/postgres-classifier-page.d.ts.map +1 -0
  112. package/dist/codegen/postgres-module.d.ts +30 -0
  113. package/dist/codegen/postgres-module.d.ts.map +1 -0
  114. package/dist/codegen/registry.d.ts +12 -0
  115. package/dist/codegen/registry.d.ts.map +1 -0
  116. package/dist/composites/audit-log-table.d.ts +31 -0
  117. package/dist/composites/audit-log-table.d.ts.map +1 -0
  118. package/dist/composites/catalog.d.ts +3 -0
  119. package/dist/composites/catalog.d.ts.map +1 -0
  120. package/dist/composites/cdc-mirror.d.ts +32 -0
  121. package/dist/composites/cdc-mirror.d.ts.map +1 -0
  122. package/dist/composites/clickhouse.d.ts +7 -0
  123. package/dist/composites/clickhouse.d.ts.map +1 -0
  124. package/dist/composites/events-table.d.ts +32 -0
  125. package/dist/composites/events-table.d.ts.map +1 -0
  126. package/dist/composites/index.d.ts +9 -0
  127. package/dist/composites/index.d.ts.map +1 -0
  128. package/dist/composites/join-table.d.ts +41 -0
  129. package/dist/composites/join-table.d.ts.map +1 -0
  130. package/dist/composites/postgres.d.ts +7 -0
  131. package/dist/composites/postgres.d.ts.map +1 -0
  132. package/dist/composites/refreshed-view.d.ts +32 -0
  133. package/dist/composites/refreshed-view.d.ts.map +1 -0
  134. package/dist/composites/replacing-table.d.ts +34 -0
  135. package/dist/composites/replacing-table.d.ts.map +1 -0
  136. package/dist/composites/rollup-view.d.ts +39 -0
  137. package/dist/composites/rollup-view.d.ts.map +1 -0
  138. package/dist/composites/sharded-table.d.ts +35 -0
  139. package/dist/composites/sharded-table.d.ts.map +1 -0
  140. package/dist/composites/soft-delete-table.d.ts +40 -0
  141. package/dist/composites/soft-delete-table.d.ts.map +1 -0
  142. package/dist/composites/tenant-table.d.ts +34 -0
  143. package/dist/composites/tenant-table.d.ts.map +1 -0
  144. package/dist/config.d.ts +213 -0
  145. package/dist/config.d.ts.map +1 -0
  146. package/dist/core/apply.d.ts +89 -0
  147. package/dist/core/apply.d.ts.map +1 -0
  148. package/dist/core/classifier.d.ts +88 -0
  149. package/dist/core/classifier.d.ts.map +1 -0
  150. package/dist/core/container.d.ts +45 -0
  151. package/dist/core/container.d.ts.map +1 -0
  152. package/dist/core/cursor.d.ts +67 -0
  153. package/dist/core/cursor.d.ts.map +1 -0
  154. package/dist/core/diff.d.ts +49 -0
  155. package/dist/core/diff.d.ts.map +1 -0
  156. package/dist/core/entity.d.ts +41 -0
  157. package/dist/core/entity.d.ts.map +1 -0
  158. package/dist/core/find-templates.d.ts +69 -0
  159. package/dist/core/find-templates.d.ts.map +1 -0
  160. package/dist/core/handoff.d.ts +36 -0
  161. package/dist/core/handoff.d.ts.map +1 -0
  162. package/dist/core/index.d.ts +61 -0
  163. package/dist/core/index.d.ts.map +1 -0
  164. package/dist/core/interpolation.d.ts +88 -0
  165. package/dist/core/interpolation.d.ts.map +1 -0
  166. package/dist/core/normalize.d.ts +18 -0
  167. package/dist/core/normalize.d.ts.map +1 -0
  168. package/dist/core/ownership.d.ts +60 -0
  169. package/dist/core/ownership.d.ts.map +1 -0
  170. package/dist/core/receipts.d.ts +28 -0
  171. package/dist/core/receipts.d.ts.map +1 -0
  172. package/dist/core/references.d.ts +37 -0
  173. package/dist/core/references.d.ts.map +1 -0
  174. package/dist/core/template.d.ts +41 -0
  175. package/dist/core/template.d.ts.map +1 -0
  176. package/dist/core/testing/http-stub.d.ts +17 -0
  177. package/dist/core/testing/http-stub.d.ts.map +1 -0
  178. package/dist/core/tokens.d.ts +102 -0
  179. package/dist/core/tokens.d.ts.map +1 -0
  180. package/dist/coverage.d.ts +25 -0
  181. package/dist/coverage.d.ts.map +1 -0
  182. package/dist/detect.d.ts +15 -0
  183. package/dist/detect.d.ts.map +1 -0
  184. package/dist/dialects.d.ts +20 -0
  185. package/dist/dialects.d.ts.map +1 -0
  186. package/dist/generated/clickhouse-types.d.ts +4380 -0
  187. package/dist/generated/clickhouse-types.d.ts.map +1 -0
  188. package/dist/generated/clickhouse.d.ts +11 -0
  189. package/dist/generated/clickhouse.d.ts.map +1 -0
  190. package/dist/generated/postgres-types.d.ts +1579 -0
  191. package/dist/generated/postgres-types.d.ts.map +1 -0
  192. package/dist/generated/postgres.d.ts +9 -0
  193. package/dist/generated/postgres.d.ts.map +1 -0
  194. package/dist/import-generator.d.ts +8 -0
  195. package/dist/import-generator.d.ts.map +1 -0
  196. package/dist/index.d.ts +7 -0
  197. package/dist/index.d.ts.map +1 -0
  198. package/dist/init-templates.d.ts +20 -0
  199. package/dist/init-templates.d.ts.map +1 -0
  200. package/dist/integrity.json +61 -0
  201. package/dist/lint/audit-catalog.d.ts +10 -0
  202. package/dist/lint/audit-catalog.d.ts.map +1 -0
  203. package/dist/lint/audit-lineage.d.ts +25 -0
  204. package/dist/lint/audit-lineage.d.ts.map +1 -0
  205. package/dist/lint/post-synth/audit-entries.d.ts +8 -0
  206. package/dist/lint/post-synth/audit-entries.d.ts.map +1 -0
  207. package/dist/lint/post-synth/clickhouse-helpers.d.ts +85 -0
  208. package/dist/lint/post-synth/clickhouse-helpers.d.ts.map +1 -0
  209. package/dist/lint/post-synth/index.d.ts +3 -0
  210. package/dist/lint/post-synth/index.d.ts.map +1 -0
  211. package/dist/lint/post-synth/postgres-audit-entries.d.ts +9 -0
  212. package/dist/lint/post-synth/postgres-audit-entries.d.ts.map +1 -0
  213. package/dist/lint/post-synth/postgres-helpers.d.ts +89 -0
  214. package/dist/lint/post-synth/postgres-helpers.d.ts.map +1 -0
  215. package/dist/lint/post-synth/sql-helpers.d.ts +27 -0
  216. package/dist/lint/post-synth/sql-helpers.d.ts.map +1 -0
  217. package/dist/lint/post-synth/sqlch101.d.ts +12 -0
  218. package/dist/lint/post-synth/sqlch101.d.ts.map +1 -0
  219. package/dist/lint/post-synth/sqlch102.d.ts +9 -0
  220. package/dist/lint/post-synth/sqlch102.d.ts.map +1 -0
  221. package/dist/lint/post-synth/sqlch103.d.ts +10 -0
  222. package/dist/lint/post-synth/sqlch103.d.ts.map +1 -0
  223. package/dist/lint/post-synth/sqlch104.d.ts +9 -0
  224. package/dist/lint/post-synth/sqlch104.d.ts.map +1 -0
  225. package/dist/lint/post-synth/sqlch105.d.ts +10 -0
  226. package/dist/lint/post-synth/sqlch105.d.ts.map +1 -0
  227. package/dist/lint/post-synth/sqlch106.d.ts +11 -0
  228. package/dist/lint/post-synth/sqlch106.d.ts.map +1 -0
  229. package/dist/lint/post-synth/sqlch107.d.ts +10 -0
  230. package/dist/lint/post-synth/sqlch107.d.ts.map +1 -0
  231. package/dist/lint/post-synth/sqlch108.d.ts +11 -0
  232. package/dist/lint/post-synth/sqlch108.d.ts.map +1 -0
  233. package/dist/lint/post-synth/sqlch109.d.ts +10 -0
  234. package/dist/lint/post-synth/sqlch109.d.ts.map +1 -0
  235. package/dist/lint/post-synth/sqlch110.d.ts +12 -0
  236. package/dist/lint/post-synth/sqlch110.d.ts.map +1 -0
  237. package/dist/lint/post-synth/sqlch111.d.ts +11 -0
  238. package/dist/lint/post-synth/sqlch111.d.ts.map +1 -0
  239. package/dist/lint/post-synth/sqlch112.d.ts +12 -0
  240. package/dist/lint/post-synth/sqlch112.d.ts.map +1 -0
  241. package/dist/lint/post-synth/sqlch113.d.ts +9 -0
  242. package/dist/lint/post-synth/sqlch113.d.ts.map +1 -0
  243. package/dist/lint/post-synth/sqlch114.d.ts +8 -0
  244. package/dist/lint/post-synth/sqlch114.d.ts.map +1 -0
  245. package/dist/lint/post-synth/sqlch115.d.ts +13 -0
  246. package/dist/lint/post-synth/sqlch115.d.ts.map +1 -0
  247. package/dist/lint/post-synth/sqlch116.d.ts +10 -0
  248. package/dist/lint/post-synth/sqlch116.d.ts.map +1 -0
  249. package/dist/lint/post-synth/sqlch117.d.ts +9 -0
  250. package/dist/lint/post-synth/sqlch117.d.ts.map +1 -0
  251. package/dist/lint/post-synth/sqlch118.d.ts +10 -0
  252. package/dist/lint/post-synth/sqlch118.d.ts.map +1 -0
  253. package/dist/lint/post-synth/sqlch119.d.ts +11 -0
  254. package/dist/lint/post-synth/sqlch119.d.ts.map +1 -0
  255. package/dist/lint/post-synth/sqlch120.d.ts +10 -0
  256. package/dist/lint/post-synth/sqlch120.d.ts.map +1 -0
  257. package/dist/lint/post-synth/sqlpg101.d.ts +12 -0
  258. package/dist/lint/post-synth/sqlpg101.d.ts.map +1 -0
  259. package/dist/lint/post-synth/sqlpg102.d.ts +11 -0
  260. package/dist/lint/post-synth/sqlpg102.d.ts.map +1 -0
  261. package/dist/lint/post-synth/sqlpg103.d.ts +11 -0
  262. package/dist/lint/post-synth/sqlpg103.d.ts.map +1 -0
  263. package/dist/lint/post-synth/sqlpg104.d.ts +10 -0
  264. package/dist/lint/post-synth/sqlpg104.d.ts.map +1 -0
  265. package/dist/lint/post-synth/sqlpg105.d.ts +10 -0
  266. package/dist/lint/post-synth/sqlpg105.d.ts.map +1 -0
  267. package/dist/lint/post-synth/sqlpg106.d.ts +9 -0
  268. package/dist/lint/post-synth/sqlpg106.d.ts.map +1 -0
  269. package/dist/lint/post-synth/sqlpg107.d.ts +10 -0
  270. package/dist/lint/post-synth/sqlpg107.d.ts.map +1 -0
  271. package/dist/lint/post-synth/sqlpg108.d.ts +11 -0
  272. package/dist/lint/post-synth/sqlpg108.d.ts.map +1 -0
  273. package/dist/lint/post-synth/sqlpg109.d.ts +11 -0
  274. package/dist/lint/post-synth/sqlpg109.d.ts.map +1 -0
  275. package/dist/lint/post-synth/sqlpg110.d.ts +12 -0
  276. package/dist/lint/post-synth/sqlpg110.d.ts.map +1 -0
  277. package/dist/lint/post-synth/sqlpg111.d.ts +10 -0
  278. package/dist/lint/post-synth/sqlpg111.d.ts.map +1 -0
  279. package/dist/lint/post-synth/sqlpg112.d.ts +10 -0
  280. package/dist/lint/post-synth/sqlpg112.d.ts.map +1 -0
  281. package/dist/lint/post-synth/sqlpg113.d.ts +11 -0
  282. package/dist/lint/post-synth/sqlpg113.d.ts.map +1 -0
  283. package/dist/lint/post-synth/sqlpg114.d.ts +13 -0
  284. package/dist/lint/post-synth/sqlpg114.d.ts.map +1 -0
  285. package/dist/lint/post-synth/sqlpg115.d.ts +13 -0
  286. package/dist/lint/post-synth/sqlpg115.d.ts.map +1 -0
  287. package/dist/lint/post-synth/sqlpg116.d.ts +11 -0
  288. package/dist/lint/post-synth/sqlpg116.d.ts.map +1 -0
  289. package/dist/lint/post-synth/sqlpg117.d.ts +12 -0
  290. package/dist/lint/post-synth/sqlpg117.d.ts.map +1 -0
  291. package/dist/lint/post-synth/sqlpg118.d.ts +12 -0
  292. package/dist/lint/post-synth/sqlpg118.d.ts.map +1 -0
  293. package/dist/lint/rules/index.d.ts +12 -0
  294. package/dist/lint/rules/index.d.ts.map +1 -0
  295. package/dist/lint/rules/postgres-templates.d.ts +18 -0
  296. package/dist/lint/rules/postgres-templates.d.ts.map +1 -0
  297. package/dist/lint/rules/sqlch001.d.ts +12 -0
  298. package/dist/lint/rules/sqlch001.d.ts.map +1 -0
  299. package/dist/lint/rules/sqlch002.d.ts +11 -0
  300. package/dist/lint/rules/sqlch002.d.ts.map +1 -0
  301. package/dist/lint/rules/sqlch003.d.ts +12 -0
  302. package/dist/lint/rules/sqlch003.d.ts.map +1 -0
  303. package/dist/lint/rules/sqlpg001.d.ts +16 -0
  304. package/dist/lint/rules/sqlpg001.d.ts.map +1 -0
  305. package/dist/lint/rules/sqlpg002.d.ts +12 -0
  306. package/dist/lint/rules/sqlpg002.d.ts.map +1 -0
  307. package/dist/lint/rules/sqlpg003.d.ts +16 -0
  308. package/dist/lint/rules/sqlpg003.d.ts.map +1 -0
  309. package/dist/lint/rules/sqlpg004.d.ts +21 -0
  310. package/dist/lint/rules/sqlpg004.d.ts.map +1 -0
  311. package/dist/lint/rules/templates.d.ts +23 -0
  312. package/dist/lint/rules/templates.d.ts.map +1 -0
  313. package/dist/live-dialect.d.ts +25 -0
  314. package/dist/live-dialect.d.ts.map +1 -0
  315. package/dist/lsp/catalog.d.ts +22 -0
  316. package/dist/lsp/catalog.d.ts.map +1 -0
  317. package/dist/lsp/completions.d.ts +13 -0
  318. package/dist/lsp/completions.d.ts.map +1 -0
  319. package/dist/lsp/hover.d.ts +12 -0
  320. package/dist/lsp/hover.d.ts.map +1 -0
  321. package/dist/lsp/postgres-catalog.d.ts +85 -0
  322. package/dist/lsp/postgres-catalog.d.ts.map +1 -0
  323. package/dist/lsp/postgres-template.d.ts +35 -0
  324. package/dist/lsp/postgres-template.d.ts.map +1 -0
  325. package/dist/lsp/postgres.d.ts +20 -0
  326. package/dist/lsp/postgres.d.ts.map +1 -0
  327. package/dist/lsp/refs.d.ts +8 -0
  328. package/dist/lsp/refs.d.ts.map +1 -0
  329. package/dist/lsp/registry.d.ts +4 -0
  330. package/dist/lsp/registry.d.ts.map +1 -0
  331. package/dist/lsp/template.d.ts +34 -0
  332. package/dist/lsp/template.d.ts.map +1 -0
  333. package/dist/manifest.json +8 -0
  334. package/dist/mcp/index.d.ts +13 -0
  335. package/dist/mcp/index.d.ts.map +1 -0
  336. package/dist/mcp/postgres.d.ts +32 -0
  337. package/dist/mcp/postgres.d.ts.map +1 -0
  338. package/dist/meta.json +67 -0
  339. package/dist/okf/index.md +67 -0
  340. package/dist/okf/rules/SQLCH001.md +11 -0
  341. package/dist/okf/rules/SQLCH002.md +11 -0
  342. package/dist/okf/rules/SQLCH003.md +11 -0
  343. package/dist/okf/rules/SQLCH101.md +15 -0
  344. package/dist/okf/rules/SQLCH102.md +11 -0
  345. package/dist/okf/rules/SQLCH103.md +11 -0
  346. package/dist/okf/rules/SQLCH104.md +11 -0
  347. package/dist/okf/rules/SQLCH105.md +11 -0
  348. package/dist/okf/rules/SQLCH106.md +11 -0
  349. package/dist/okf/rules/SQLCH107.md +11 -0
  350. package/dist/okf/rules/SQLCH108.md +15 -0
  351. package/dist/okf/rules/SQLCH109.md +11 -0
  352. package/dist/okf/rules/SQLCH110.md +11 -0
  353. package/dist/okf/rules/SQLCH111.md +11 -0
  354. package/dist/okf/rules/SQLCH112.md +11 -0
  355. package/dist/okf/rules/SQLCH113.md +11 -0
  356. package/dist/okf/rules/SQLCH114.md +11 -0
  357. package/dist/okf/rules/SQLCH115.md +11 -0
  358. package/dist/okf/rules/SQLCH116.md +11 -0
  359. package/dist/okf/rules/SQLCH117.md +15 -0
  360. package/dist/okf/rules/SQLCH118.md +15 -0
  361. package/dist/okf/rules/SQLCH119.md +15 -0
  362. package/dist/okf/rules/SQLCH120.md +15 -0
  363. package/dist/okf/rules/SQLPG001.md +11 -0
  364. package/dist/okf/rules/SQLPG002.md +11 -0
  365. package/dist/okf/rules/SQLPG003.md +11 -0
  366. package/dist/okf/rules/SQLPG004.md +11 -0
  367. package/dist/okf/rules/SQLPG101.md +11 -0
  368. package/dist/okf/rules/SQLPG102.md +11 -0
  369. package/dist/okf/rules/SQLPG103.md +11 -0
  370. package/dist/okf/rules/SQLPG104.md +11 -0
  371. package/dist/okf/rules/SQLPG105.md +11 -0
  372. package/dist/okf/rules/SQLPG106.md +11 -0
  373. package/dist/okf/rules/SQLPG107.md +11 -0
  374. package/dist/okf/rules/SQLPG108.md +11 -0
  375. package/dist/okf/rules/SQLPG109.md +11 -0
  376. package/dist/okf/rules/SQLPG110.md +11 -0
  377. package/dist/okf/rules/SQLPG111.md +11 -0
  378. package/dist/okf/rules/SQLPG112.md +11 -0
  379. package/dist/okf/rules/SQLPG113.md +24 -0
  380. package/dist/okf/rules/SQLPG114.md +11 -0
  381. package/dist/okf/rules/SQLPG115.md +11 -0
  382. package/dist/okf/rules/SQLPG116.md +15 -0
  383. package/dist/okf/rules/SQLPG117.md +11 -0
  384. package/dist/okf/rules/SQLPG118.md +11 -0
  385. package/dist/okf/types/Database.md +15 -0
  386. package/dist/okf/types/MaterializedView.md +14 -0
  387. package/dist/okf/types/PostgresDomain.md +13 -0
  388. package/dist/okf/types/PostgresEnum.md +13 -0
  389. package/dist/okf/types/PostgresExtension.md +13 -0
  390. package/dist/okf/types/PostgresIndex.md +9 -0
  391. package/dist/okf/types/PostgresMaterializedView.md +13 -0
  392. package/dist/okf/types/PostgresSchema.md +13 -0
  393. package/dist/okf/types/PostgresSequence.md +13 -0
  394. package/dist/okf/types/PostgresTable.md +13 -0
  395. package/dist/okf/types/PostgresView.md +13 -0
  396. package/dist/okf/types/Table.md +15 -0
  397. package/dist/okf/types/View.md +13 -0
  398. package/dist/op/activities/clickhouse-apply.d.ts +56 -0
  399. package/dist/op/activities/clickhouse-apply.d.ts.map +1 -0
  400. package/dist/op/activities/clickhouse-emulator.d.ts +26 -0
  401. package/dist/op/activities/clickhouse-emulator.d.ts.map +1 -0
  402. package/dist/op/activities/clickhouse-rebuild.d.ts +43 -0
  403. package/dist/op/activities/clickhouse-rebuild.d.ts.map +1 -0
  404. package/dist/op/activities/index.d.ts +19 -0
  405. package/dist/op/activities/index.d.ts.map +1 -0
  406. package/dist/op/activities/postgres-apply.d.ts +69 -0
  407. package/dist/op/activities/postgres-apply.d.ts.map +1 -0
  408. package/dist/op/activities/postgres-emulator.d.ts +33 -0
  409. package/dist/op/activities/postgres-emulator.d.ts.map +1 -0
  410. package/dist/op/activities/postgres-migration.d.ts +48 -0
  411. package/dist/op/activities/postgres-migration.d.ts.map +1 -0
  412. package/dist/op/activity-contracts.d.ts +464 -0
  413. package/dist/op/activity-contracts.d.ts.map +1 -0
  414. package/dist/package-cli.d.ts +3 -0
  415. package/dist/package-cli.d.ts.map +1 -0
  416. package/dist/plugin.d.ts +12 -0
  417. package/dist/plugin.d.ts.map +1 -0
  418. package/dist/postgres/apply/apply.d.ts +163 -0
  419. package/dist/postgres/apply/apply.d.ts.map +1 -0
  420. package/dist/postgres/apply/statements.d.ts +138 -0
  421. package/dist/postgres/apply/statements.d.ts.map +1 -0
  422. package/dist/postgres/catalog-types.d.ts +50 -0
  423. package/dist/postgres/catalog-types.d.ts.map +1 -0
  424. package/dist/postgres/container.d.ts +23 -0
  425. package/dist/postgres/container.d.ts.map +1 -0
  426. package/dist/postgres/entities.d.ts +322 -0
  427. package/dist/postgres/entities.d.ts.map +1 -0
  428. package/dist/postgres/entity-types.d.ts +17 -0
  429. package/dist/postgres/entity-types.d.ts.map +1 -0
  430. package/dist/postgres/import/generator.d.ts +28 -0
  431. package/dist/postgres/import/generator.d.ts.map +1 -0
  432. package/dist/postgres/import/ir.d.ts +24 -0
  433. package/dist/postgres/import/ir.d.ts.map +1 -0
  434. package/dist/postgres/import/live-export.d.ts +26 -0
  435. package/dist/postgres/import/live-export.d.ts.map +1 -0
  436. package/dist/postgres/keywords.d.ts +22 -0
  437. package/dist/postgres/keywords.d.ts.map +1 -0
  438. package/dist/postgres/live/bind.d.ts +76 -0
  439. package/dist/postgres/live/bind.d.ts.map +1 -0
  440. package/dist/postgres/live/catalog.d.ts +98 -0
  441. package/dist/postgres/live/catalog.d.ts.map +1 -0
  442. package/dist/postgres/live/client.d.ts +32 -0
  443. package/dist/postgres/live/client.d.ts.map +1 -0
  444. package/dist/postgres/live/describe-resources.d.ts +41 -0
  445. package/dist/postgres/live/describe-resources.d.ts.map +1 -0
  446. package/dist/postgres/migrate/backfill.d.ts +103 -0
  447. package/dist/postgres/migrate/backfill.d.ts.map +1 -0
  448. package/dist/postgres/migrate/batches.d.ts +90 -0
  449. package/dist/postgres/migrate/batches.d.ts.map +1 -0
  450. package/dist/postgres/migrate/carry.d.ts +196 -0
  451. package/dist/postgres/migrate/carry.d.ts.map +1 -0
  452. package/dist/postgres/migrate/handoff.d.ts +46 -0
  453. package/dist/postgres/migrate/handoff.d.ts.map +1 -0
  454. package/dist/postgres/migrate/names.d.ts +55 -0
  455. package/dist/postgres/migrate/names.d.ts.map +1 -0
  456. package/dist/postgres/migrate/observe.d.ts +139 -0
  457. package/dist/postgres/migrate/observe.d.ts.map +1 -0
  458. package/dist/postgres/migrate/op.d.ts +128 -0
  459. package/dist/postgres/migrate/op.d.ts.map +1 -0
  460. package/dist/postgres/migrate/receipts.d.ts +63 -0
  461. package/dist/postgres/migrate/receipts.d.ts.map +1 -0
  462. package/dist/postgres/migrate/replication.d.ts +80 -0
  463. package/dist/postgres/migrate/replication.d.ts.map +1 -0
  464. package/dist/postgres/migrate/steps.d.ts +225 -0
  465. package/dist/postgres/migrate/steps.d.ts.map +1 -0
  466. package/dist/postgres/overlays/columns.d.ts +6 -0
  467. package/dist/postgres/overlays/columns.d.ts.map +1 -0
  468. package/dist/postgres/overlays/constraints.d.ts +8 -0
  469. package/dist/postgres/overlays/constraints.d.ts.map +1 -0
  470. package/dist/postgres/overlays/indexes.d.ts +8 -0
  471. package/dist/postgres/overlays/indexes.d.ts.map +1 -0
  472. package/dist/postgres/overlays/kinds.d.ts +48 -0
  473. package/dist/postgres/overlays/kinds.d.ts.map +1 -0
  474. package/dist/postgres/overlays/partitioning.d.ts +5 -0
  475. package/dist/postgres/overlays/partitioning.d.ts.map +1 -0
  476. package/dist/postgres/overlays/relations.d.ts +6 -0
  477. package/dist/postgres/overlays/relations.d.ts.map +1 -0
  478. package/dist/postgres/overlays/storage.d.ts +28 -0
  479. package/dist/postgres/overlays/storage.d.ts.map +1 -0
  480. package/dist/postgres/overlays/type-ddl.d.ts +7 -0
  481. package/dist/postgres/overlays/type-ddl.d.ts.map +1 -0
  482. package/dist/postgres/overlays/types.d.ts +24 -0
  483. package/dist/postgres/overlays/types.d.ts.map +1 -0
  484. package/dist/postgres/parser.d.ts +216 -0
  485. package/dist/postgres/parser.d.ts.map +1 -0
  486. package/dist/postgres/plan/commands.d.ts +61 -0
  487. package/dist/postgres/plan/commands.d.ts.map +1 -0
  488. package/dist/postgres/plan/deep.d.ts +33 -0
  489. package/dist/postgres/plan/deep.d.ts.map +1 -0
  490. package/dist/postgres/plan/diff.d.ts +45 -0
  491. package/dist/postgres/plan/diff.d.ts.map +1 -0
  492. package/dist/postgres/plan/disruption.d.ts +14 -0
  493. package/dist/postgres/plan/disruption.d.ts.map +1 -0
  494. package/dist/postgres/plan/normalize.d.ts +108 -0
  495. package/dist/postgres/plan/normalize.d.ts.map +1 -0
  496. package/dist/postgres/plan/report.d.ts +6 -0
  497. package/dist/postgres/plan/report.d.ts.map +1 -0
  498. package/dist/postgres/plan/rules.d.ts +84 -0
  499. package/dist/postgres/plan/rules.d.ts.map +1 -0
  500. package/dist/postgres/plan/schema.d.ts +50 -0
  501. package/dist/postgres/plan/schema.d.ts.map +1 -0
  502. package/dist/postgres/plan/server-normalize.d.ts +26 -0
  503. package/dist/postgres/plan/server-normalize.d.ts.map +1 -0
  504. package/dist/postgres/providers/aurora.d.ts +12 -0
  505. package/dist/postgres/providers/aurora.d.ts.map +1 -0
  506. package/dist/postgres/providers/azure.d.ts +14 -0
  507. package/dist/postgres/providers/azure.d.ts.map +1 -0
  508. package/dist/postgres/providers/cloud-sql.d.ts +11 -0
  509. package/dist/postgres/providers/cloud-sql.d.ts.map +1 -0
  510. package/dist/postgres/providers/index.d.ts +35 -0
  511. package/dist/postgres/providers/index.d.ts.map +1 -0
  512. package/dist/postgres/providers/neon.d.ts +13 -0
  513. package/dist/postgres/providers/neon.d.ts.map +1 -0
  514. package/dist/postgres/providers/rds.d.ts +10 -0
  515. package/dist/postgres/providers/rds.d.ts.map +1 -0
  516. package/dist/postgres/providers/supabase.d.ts +12 -0
  517. package/dist/postgres/providers/supabase.d.ts.map +1 -0
  518. package/dist/postgres/providers/types.d.ts +59 -0
  519. package/dist/postgres/providers/types.d.ts.map +1 -0
  520. package/dist/postgres/testing/fake-client.d.ts +38 -0
  521. package/dist/postgres/testing/fake-client.d.ts.map +1 -0
  522. package/dist/postgres/testing/migration.d.ts +25 -0
  523. package/dist/postgres/testing/migration.d.ts.map +1 -0
  524. package/dist/postgres/testing/roundtrip-schema.d.ts +11 -0
  525. package/dist/postgres/testing/roundtrip-schema.d.ts.map +1 -0
  526. package/dist/postgres/testing/server.d.ts +17 -0
  527. package/dist/postgres/testing/server.d.ts.map +1 -0
  528. package/dist/postgres/testing/writable-server.d.ts +45 -0
  529. package/dist/postgres/testing/writable-server.d.ts.map +1 -0
  530. package/dist/postgres/tokens.d.ts +26 -0
  531. package/dist/postgres/tokens.d.ts.map +1 -0
  532. package/dist/postgres.d.ts +13 -0
  533. package/dist/postgres.d.ts.map +1 -0
  534. package/dist/rules/audit-entries.ts +29 -0
  535. package/dist/rules/clickhouse-helpers.ts +206 -0
  536. package/dist/rules/postgres-audit-entries.ts +29 -0
  537. package/dist/rules/postgres-helpers.ts +126 -0
  538. package/dist/rules/postgres-templates.ts +36 -0
  539. package/dist/rules/sql-helpers.ts +53 -0
  540. package/dist/rules/sqlch001.ts +53 -0
  541. package/dist/rules/sqlch002.ts +115 -0
  542. package/dist/rules/sqlch003.ts +68 -0
  543. package/dist/rules/sqlch101.ts +35 -0
  544. package/dist/rules/sqlch102.ts +23 -0
  545. package/dist/rules/sqlch103.ts +45 -0
  546. package/dist/rules/sqlch104.ts +42 -0
  547. package/dist/rules/sqlch105.ts +35 -0
  548. package/dist/rules/sqlch106.ts +27 -0
  549. package/dist/rules/sqlch107.ts +35 -0
  550. package/dist/rules/sqlch108.ts +27 -0
  551. package/dist/rules/sqlch109.ts +21 -0
  552. package/dist/rules/sqlch110.ts +29 -0
  553. package/dist/rules/sqlch111.ts +40 -0
  554. package/dist/rules/sqlch112.ts +30 -0
  555. package/dist/rules/sqlch113.ts +20 -0
  556. package/dist/rules/sqlch114.ts +26 -0
  557. package/dist/rules/sqlch115.ts +31 -0
  558. package/dist/rules/sqlch116.ts +22 -0
  559. package/dist/rules/sqlch117.ts +25 -0
  560. package/dist/rules/sqlch118.ts +26 -0
  561. package/dist/rules/sqlch119.ts +31 -0
  562. package/dist/rules/sqlch120.ts +21 -0
  563. package/dist/rules/sqlpg001.ts +88 -0
  564. package/dist/rules/sqlpg002.ts +68 -0
  565. package/dist/rules/sqlpg003.ts +59 -0
  566. package/dist/rules/sqlpg004.ts +73 -0
  567. package/dist/rules/sqlpg101.ts +24 -0
  568. package/dist/rules/sqlpg102.ts +30 -0
  569. package/dist/rules/sqlpg103.ts +23 -0
  570. package/dist/rules/sqlpg104.ts +23 -0
  571. package/dist/rules/sqlpg105.ts +22 -0
  572. package/dist/rules/sqlpg106.ts +22 -0
  573. package/dist/rules/sqlpg107.ts +22 -0
  574. package/dist/rules/sqlpg108.ts +27 -0
  575. package/dist/rules/sqlpg109.ts +37 -0
  576. package/dist/rules/sqlpg110.ts +33 -0
  577. package/dist/rules/sqlpg111.ts +23 -0
  578. package/dist/rules/sqlpg112.ts +25 -0
  579. package/dist/rules/sqlpg113.ts +28 -0
  580. package/dist/rules/sqlpg114.ts +37 -0
  581. package/dist/rules/sqlpg115.ts +38 -0
  582. package/dist/rules/sqlpg116.ts +25 -0
  583. package/dist/rules/sqlpg117.ts +24 -0
  584. package/dist/rules/sqlpg118.ts +22 -0
  585. package/dist/rules/templates.ts +35 -0
  586. package/dist/serializer.d.ts +37 -0
  587. package/dist/serializer.d.ts.map +1 -0
  588. package/dist/skill-defs.d.ts +3 -0
  589. package/dist/skill-defs.d.ts.map +1 -0
  590. package/dist/spec/catalog.d.ts +125 -0
  591. package/dist/spec/catalog.d.ts.map +1 -0
  592. package/dist/spec/fetch.d.ts +43 -0
  593. package/dist/spec/fetch.d.ts.map +1 -0
  594. package/dist/spec/pin.d.ts +39 -0
  595. package/dist/spec/pin.d.ts.map +1 -0
  596. package/dist/spec/postgres-catalog.d.ts +108 -0
  597. package/dist/spec/postgres-catalog.d.ts.map +1 -0
  598. package/dist/spec/postgres-fetch.d.ts +46 -0
  599. package/dist/spec/postgres-fetch.d.ts.map +1 -0
  600. package/dist/spec/postgres-pin.d.ts +67 -0
  601. package/dist/spec/postgres-pin.d.ts.map +1 -0
  602. package/dist/types/index.d.ts +4386 -0
  603. package/dist/validate-cli.d.ts +3 -0
  604. package/dist/validate-cli.d.ts.map +1 -0
  605. package/dist/validate.d.ts +15 -0
  606. package/dist/validate.d.ts.map +1 -0
  607. package/package.json +74 -4
  608. package/src/clickhouse/apply/apply.ts +288 -0
  609. package/src/clickhouse/apply/mutations.ts +90 -0
  610. package/src/clickhouse/apply/statements.ts +393 -0
  611. package/src/clickhouse/catalog-types.ts +84 -0
  612. package/src/clickhouse/container.ts +176 -0
  613. package/src/clickhouse/engine-syntax.test.ts +53 -0
  614. package/src/clickhouse/engine-syntax.ts +173 -0
  615. package/src/clickhouse/entities.test.ts +188 -0
  616. package/src/clickhouse/entities.ts +425 -0
  617. package/src/clickhouse/http.ts +76 -0
  618. package/src/clickhouse/import/generator.ts +153 -0
  619. package/src/clickhouse/import/import.test.ts +157 -0
  620. package/src/clickhouse/import/ir.ts +171 -0
  621. package/src/clickhouse/import/live-export.ts +53 -0
  622. package/src/clickhouse/import/parser.ts +27 -0
  623. package/src/clickhouse/import/roundtrip.test.ts +90 -0
  624. package/src/clickhouse/live/bind.ts +126 -0
  625. package/src/clickhouse/live/catalog.ts +96 -0
  626. package/src/clickhouse/live/describe-resources.ts +98 -0
  627. package/src/clickhouse/live/live.test.ts +143 -0
  628. package/src/clickhouse/live/roundtrip.e2e.test.ts +93 -0
  629. package/src/clickhouse/overlays/codecs.ts +68 -0
  630. package/src/clickhouse/overlays/engines.ts +108 -0
  631. package/src/clickhouse/overlays/kinds.ts +38 -0
  632. package/src/clickhouse/overlays/projections.ts +36 -0
  633. package/src/clickhouse/overlays/skip-indexes.ts +44 -0
  634. package/src/clickhouse/overlays/ttl.ts +55 -0
  635. package/src/clickhouse/overlays/types.ts +58 -0
  636. package/src/clickhouse/ownership.test.ts +20 -0
  637. package/src/clickhouse/ownership.ts +103 -0
  638. package/src/clickhouse/parser.test.ts +166 -0
  639. package/src/clickhouse/parser.ts +459 -0
  640. package/src/clickhouse/plan/commands.ts +101 -0
  641. package/src/clickhouse/plan/deep.ts +124 -0
  642. package/src/clickhouse/plan/diff.ts +203 -0
  643. package/src/clickhouse/plan/disruption.ts +61 -0
  644. package/src/clickhouse/plan/normalize.ts +352 -0
  645. package/src/clickhouse/plan/plan-wiring.test.ts +77 -0
  646. package/src/clickhouse/plan/plan.e2e.test.ts +77 -0
  647. package/src/clickhouse/plan/plan.test.ts +201 -0
  648. package/src/clickhouse/plan/rebuild-handoff.ts +59 -0
  649. package/src/clickhouse/plan/report.ts +19 -0
  650. package/src/clickhouse/plan/rules.ts +241 -0
  651. package/src/clickhouse/plan/schema.ts +56 -0
  652. package/src/clickhouse/plan/server-format.ts +39 -0
  653. package/src/clickhouse/rebuild/backfill.ts +186 -0
  654. package/src/clickhouse/rebuild/observe.ts +380 -0
  655. package/src/clickhouse/rebuild/op.ts +206 -0
  656. package/src/clickhouse/rebuild/partitions.ts +62 -0
  657. package/src/clickhouse/rebuild/rebuild-replicated.e2e.test.ts +513 -0
  658. package/src/clickhouse/rebuild/rebuild.e2e.test.ts +351 -0
  659. package/src/clickhouse/rebuild/rebuild.test.ts +190 -0
  660. package/src/clickhouse/rebuild/receipts.ts +143 -0
  661. package/src/clickhouse/rebuild/replicas.test.ts +70 -0
  662. package/src/clickhouse/rebuild/replicas.ts +148 -0
  663. package/src/clickhouse/rebuild/steps.ts +382 -0
  664. package/src/clickhouse/rebuild/verify.ts +124 -0
  665. package/src/clickhouse/testdata/NOTICE +5 -0
  666. package/src/clickhouse/testdata/clickhouse-tests-corpus.json +302 -0
  667. package/src/clickhouse/testing/fake-server.ts +65 -0
  668. package/src/clickhouse/testing/roundtrip-schema.ts +25 -0
  669. package/src/clickhouse/testing/writable-server.ts +141 -0
  670. package/src/clickhouse/tokens.ts +28 -0
  671. package/src/clickhouse.ts +63 -0
  672. package/src/codegen/classifier-page.test.ts +16 -0
  673. package/src/codegen/classifier-page.ts +76 -0
  674. package/src/codegen/clickhouse-module.test.ts +63 -0
  675. package/src/codegen/clickhouse-module.ts +269 -0
  676. package/src/codegen/docs-cli.ts +4 -0
  677. package/src/codegen/docs.ts +225 -0
  678. package/src/codegen/generate-cli.ts +13 -0
  679. package/src/codegen/generate.ts +126 -0
  680. package/src/codegen/package.ts +36 -0
  681. package/src/codegen/postgres-classifier-page.ts +81 -0
  682. package/src/codegen/postgres-module.test.ts +77 -0
  683. package/src/codegen/postgres-module.ts +434 -0
  684. package/src/codegen/registry.ts +36 -0
  685. package/src/composites/audit-log-table.ts +54 -0
  686. package/src/composites/catalog.test.ts +61 -0
  687. package/src/composites/catalog.ts +529 -0
  688. package/src/composites/cdc-mirror.ts +54 -0
  689. package/src/composites/clickhouse.ts +7 -0
  690. package/src/composites/composites.test.ts +758 -0
  691. package/src/composites/events-table.ts +49 -0
  692. package/src/composites/index.ts +9 -0
  693. package/src/composites/join-table.ts +57 -0
  694. package/src/composites/postgres.ts +7 -0
  695. package/src/composites/refreshed-view.ts +46 -0
  696. package/src/composites/replacing-table.ts +49 -0
  697. package/src/composites/rollup-view.ts +55 -0
  698. package/src/composites/sharded-table.ts +49 -0
  699. package/src/composites/soft-delete-table.ts +61 -0
  700. package/src/composites/tenant-table.ts +50 -0
  701. package/src/config.ts +157 -0
  702. package/src/core/apply.ts +153 -0
  703. package/src/core/classifier.ts +186 -0
  704. package/src/core/container.ts +93 -0
  705. package/src/core/core.test.ts +254 -0
  706. package/src/core/cursor.ts +189 -0
  707. package/src/core/diff.ts +72 -0
  708. package/src/core/entity.ts +85 -0
  709. package/src/core/find-templates.ts +158 -0
  710. package/src/core/handoff.ts +44 -0
  711. package/src/core/index.ts +61 -0
  712. package/src/core/interpolation.ts +225 -0
  713. package/src/core/normalize.ts +39 -0
  714. package/src/core/ownership.test.ts +36 -0
  715. package/src/core/ownership.ts +133 -0
  716. package/src/core/receipts.ts +29 -0
  717. package/src/core/references.ts +74 -0
  718. package/src/core/template.ts +83 -0
  719. package/src/core/testing/http-stub.ts +33 -0
  720. package/src/core/tokens.ts +252 -0
  721. package/src/coverage.ts +64 -0
  722. package/src/detect.ts +32 -0
  723. package/src/dialects.ts +21 -0
  724. package/src/generated/clickhouse-types.ts +4386 -0
  725. package/src/generated/clickhouse.ts +2476 -0
  726. package/src/generated/index.d.ts +4386 -0
  727. package/src/generated/lexicon-sql.json +67 -0
  728. package/src/generated/postgres-types.ts +1190 -0
  729. package/src/generated/postgres.ts +1039 -0
  730. package/src/import-generator.ts +18 -0
  731. package/src/index.ts +21 -0
  732. package/src/init-templates.test.ts +108 -0
  733. package/src/init-templates.ts +327 -0
  734. package/src/lint/audit-catalog.ts +73 -0
  735. package/src/lint/audit-lineage.ts +47 -0
  736. package/src/lint/post-synth/audit-entries.ts +29 -0
  737. package/src/lint/post-synth/clickhouse-checks.test.ts +278 -0
  738. package/src/lint/post-synth/clickhouse-helpers.ts +206 -0
  739. package/src/lint/post-synth/index.ts +81 -0
  740. package/src/lint/post-synth/post-synth.test.ts +33 -0
  741. package/src/lint/post-synth/postgres-audit-entries.ts +29 -0
  742. package/src/lint/post-synth/postgres-checks.test.ts +257 -0
  743. package/src/lint/post-synth/postgres-helpers.ts +126 -0
  744. package/src/lint/post-synth/sql-helpers.ts +53 -0
  745. package/src/lint/post-synth/sqlch101.ts +35 -0
  746. package/src/lint/post-synth/sqlch102.ts +23 -0
  747. package/src/lint/post-synth/sqlch103.ts +45 -0
  748. package/src/lint/post-synth/sqlch104.ts +42 -0
  749. package/src/lint/post-synth/sqlch105.ts +35 -0
  750. package/src/lint/post-synth/sqlch106.ts +27 -0
  751. package/src/lint/post-synth/sqlch107.ts +35 -0
  752. package/src/lint/post-synth/sqlch108.ts +27 -0
  753. package/src/lint/post-synth/sqlch109.ts +21 -0
  754. package/src/lint/post-synth/sqlch110.ts +29 -0
  755. package/src/lint/post-synth/sqlch111.ts +40 -0
  756. package/src/lint/post-synth/sqlch112.ts +30 -0
  757. package/src/lint/post-synth/sqlch113.ts +20 -0
  758. package/src/lint/post-synth/sqlch114.ts +26 -0
  759. package/src/lint/post-synth/sqlch115.ts +31 -0
  760. package/src/lint/post-synth/sqlch116.ts +22 -0
  761. package/src/lint/post-synth/sqlch117.ts +25 -0
  762. package/src/lint/post-synth/sqlch118.ts +26 -0
  763. package/src/lint/post-synth/sqlch119.ts +31 -0
  764. package/src/lint/post-synth/sqlch120.ts +21 -0
  765. package/src/lint/post-synth/sqlpg101.ts +24 -0
  766. package/src/lint/post-synth/sqlpg102.ts +30 -0
  767. package/src/lint/post-synth/sqlpg103.ts +23 -0
  768. package/src/lint/post-synth/sqlpg104.ts +23 -0
  769. package/src/lint/post-synth/sqlpg105.ts +22 -0
  770. package/src/lint/post-synth/sqlpg106.ts +22 -0
  771. package/src/lint/post-synth/sqlpg107.ts +22 -0
  772. package/src/lint/post-synth/sqlpg108.ts +27 -0
  773. package/src/lint/post-synth/sqlpg109.ts +37 -0
  774. package/src/lint/post-synth/sqlpg110.ts +33 -0
  775. package/src/lint/post-synth/sqlpg111.ts +23 -0
  776. package/src/lint/post-synth/sqlpg112.ts +25 -0
  777. package/src/lint/post-synth/sqlpg113.ts +28 -0
  778. package/src/lint/post-synth/sqlpg114.ts +37 -0
  779. package/src/lint/post-synth/sqlpg115.ts +38 -0
  780. package/src/lint/post-synth/sqlpg116.ts +25 -0
  781. package/src/lint/post-synth/sqlpg117.ts +24 -0
  782. package/src/lint/post-synth/sqlpg118.ts +22 -0
  783. package/src/lint/rules/index.ts +13 -0
  784. package/src/lint/rules/postgres-templates.ts +36 -0
  785. package/src/lint/rules/rules.test.ts +228 -0
  786. package/src/lint/rules/sqlch001.ts +53 -0
  787. package/src/lint/rules/sqlch002.ts +115 -0
  788. package/src/lint/rules/sqlch003.ts +68 -0
  789. package/src/lint/rules/sqlpg001.ts +88 -0
  790. package/src/lint/rules/sqlpg002.ts +68 -0
  791. package/src/lint/rules/sqlpg003.ts +59 -0
  792. package/src/lint/rules/sqlpg004.ts +73 -0
  793. package/src/lint/rules/templates.ts +35 -0
  794. package/src/live-dialect.ts +37 -0
  795. package/src/lsp/catalog.ts +60 -0
  796. package/src/lsp/completions.test.ts +111 -0
  797. package/src/lsp/completions.ts +128 -0
  798. package/src/lsp/diagnostics.test.ts +26 -0
  799. package/src/lsp/hover.test.ts +90 -0
  800. package/src/lsp/hover.ts +113 -0
  801. package/src/lsp/postgres-catalog.ts +234 -0
  802. package/src/lsp/postgres-template.ts +161 -0
  803. package/src/lsp/postgres.test.ts +150 -0
  804. package/src/lsp/postgres.ts +270 -0
  805. package/src/lsp/refs.ts +53 -0
  806. package/src/lsp/registry.ts +19 -0
  807. package/src/lsp/template.ts +166 -0
  808. package/src/mcp/index.ts +304 -0
  809. package/src/mcp/mcp.test.ts +184 -0
  810. package/src/mcp/postgres.ts +125 -0
  811. package/src/op/activities/clickhouse-apply.e2e.test.ts +150 -0
  812. package/src/op/activities/clickhouse-apply.test.ts +265 -0
  813. package/src/op/activities/clickhouse-apply.ts +113 -0
  814. package/src/op/activities/clickhouse-emulator.test.ts +23 -0
  815. package/src/op/activities/clickhouse-emulator.ts +37 -0
  816. package/src/op/activities/clickhouse-rebuild.ts +136 -0
  817. package/src/op/activities/index.ts +50 -0
  818. package/src/op/activities/postgres-apply.e2e.test.ts +184 -0
  819. package/src/op/activities/postgres-apply.test.ts +304 -0
  820. package/src/op/activities/postgres-apply.ts +170 -0
  821. package/src/op/activities/postgres-emulator.test.ts +26 -0
  822. package/src/op/activities/postgres-emulator.ts +44 -0
  823. package/src/op/activities/postgres-migration.ts +182 -0
  824. package/src/op/activity-contracts.ts +210 -0
  825. package/src/package-cli.ts +17 -0
  826. package/src/plugin.test.ts +74 -0
  827. package/src/plugin.ts +242 -0
  828. package/src/postgres/apply/apply.ts +582 -0
  829. package/src/postgres/apply/statements.test.ts +155 -0
  830. package/src/postgres/apply/statements.ts +603 -0
  831. package/src/postgres/catalog-types.ts +59 -0
  832. package/src/postgres/container.ts +72 -0
  833. package/src/postgres/entities.test.ts +170 -0
  834. package/src/postgres/entities.ts +1016 -0
  835. package/src/postgres/entity-types.ts +18 -0
  836. package/src/postgres/import/generator.ts +176 -0
  837. package/src/postgres/import/import.test.ts +71 -0
  838. package/src/postgres/import/ir.ts +67 -0
  839. package/src/postgres/import/live-export.ts +53 -0
  840. package/src/postgres/import/live-warnings.test.ts +45 -0
  841. package/src/postgres/keywords.ts +40 -0
  842. package/src/postgres/live/bind.ts +146 -0
  843. package/src/postgres/live/catalog.ts +581 -0
  844. package/src/postgres/live/client.ts +84 -0
  845. package/src/postgres/live/describe-resources.ts +111 -0
  846. package/src/postgres/live/live.test.ts +198 -0
  847. package/src/postgres/live/roundtrip.e2e.test.ts +111 -0
  848. package/src/postgres/migrate/backfill.ts +233 -0
  849. package/src/postgres/migrate/batches.e2e.test.ts +163 -0
  850. package/src/postgres/migrate/batches.test.ts +36 -0
  851. package/src/postgres/migrate/batches.ts +159 -0
  852. package/src/postgres/migrate/carry.e2e.test.ts +335 -0
  853. package/src/postgres/migrate/carry.test.ts +103 -0
  854. package/src/postgres/migrate/carry.ts +653 -0
  855. package/src/postgres/migrate/handoff.ts +73 -0
  856. package/src/postgres/migrate/kinds.e2e.test.ts +204 -0
  857. package/src/postgres/migrate/migrate.e2e.test.ts +362 -0
  858. package/src/postgres/migrate/migrate.test.ts +322 -0
  859. package/src/postgres/migrate/names.ts +93 -0
  860. package/src/postgres/migrate/observe.ts +521 -0
  861. package/src/postgres/migrate/op.ts +242 -0
  862. package/src/postgres/migrate/receipts.ts +135 -0
  863. package/src/postgres/migrate/replication.ts +151 -0
  864. package/src/postgres/migrate/steps.ts +657 -0
  865. package/src/postgres/overlays/columns.ts +34 -0
  866. package/src/postgres/overlays/constraints.ts +56 -0
  867. package/src/postgres/overlays/indexes.ts +27 -0
  868. package/src/postgres/overlays/kinds.ts +53 -0
  869. package/src/postgres/overlays/partitioning.ts +26 -0
  870. package/src/postgres/overlays/relations.ts +29 -0
  871. package/src/postgres/overlays/storage.ts +75 -0
  872. package/src/postgres/overlays/type-ddl.ts +38 -0
  873. package/src/postgres/overlays/types.ts +56 -0
  874. package/src/postgres/parser.test.ts +214 -0
  875. package/src/postgres/parser.ts +1062 -0
  876. package/src/postgres/plan/commands.ts +124 -0
  877. package/src/postgres/plan/deep.ts +177 -0
  878. package/src/postgres/plan/diff.ts +323 -0
  879. package/src/postgres/plan/disruption.ts +52 -0
  880. package/src/postgres/plan/normalize.test.ts +148 -0
  881. package/src/postgres/plan/normalize.ts +542 -0
  882. package/src/postgres/plan/plan.e2e.test.ts +117 -0
  883. package/src/postgres/plan/plan.test.ts +244 -0
  884. package/src/postgres/plan/report.ts +24 -0
  885. package/src/postgres/plan/rules.ts +276 -0
  886. package/src/postgres/plan/schema.ts +114 -0
  887. package/src/postgres/plan/server-normalize.ts +123 -0
  888. package/src/postgres/providers/aurora.ts +45 -0
  889. package/src/postgres/providers/azure.ts +54 -0
  890. package/src/postgres/providers/cloud-sql.ts +42 -0
  891. package/src/postgres/providers/index.ts +90 -0
  892. package/src/postgres/providers/neon.ts +45 -0
  893. package/src/postgres/providers/providers.test.ts +136 -0
  894. package/src/postgres/providers/rds.ts +48 -0
  895. package/src/postgres/providers/supabase.ts +46 -0
  896. package/src/postgres/providers/types.ts +70 -0
  897. package/src/postgres/testdata/NOTICE +31 -0
  898. package/src/postgres/testdata/postgres-regress-corpus.json +460 -0
  899. package/src/postgres/testing/fake-client.ts +42 -0
  900. package/src/postgres/testing/migration.ts +52 -0
  901. package/src/postgres/testing/roundtrip-schema.ts +46 -0
  902. package/src/postgres/testing/server.ts +58 -0
  903. package/src/postgres/testing/writable-server.ts +188 -0
  904. package/src/postgres/tokens.ts +46 -0
  905. package/src/postgres.ts +75 -0
  906. package/src/serializer.test.ts +128 -0
  907. package/src/serializer.ts +148 -0
  908. package/src/skill-defs.test.ts +81 -0
  909. package/src/skill-defs.ts +102 -0
  910. package/src/skills/chant-sql-plan.md +123 -0
  911. package/src/skills/chant-sql-postgres-migration.md +126 -0
  912. package/src/skills/chant-sql-postgres-plan.md +194 -0
  913. package/src/skills/chant-sql-postgres.md +165 -0
  914. package/src/skills/chant-sql-rebuild.md +68 -0
  915. package/src/skills/chant-sql.md +123 -0
  916. package/src/spec/catalog.e2e.test.ts +29 -0
  917. package/src/spec/catalog.test.ts +56 -0
  918. package/src/spec/catalog.ts +311 -0
  919. package/src/spec/clickhouse-catalog.snapshot.json +5246 -0
  920. package/src/spec/fetch.test.ts +77 -0
  921. package/src/spec/fetch.ts +112 -0
  922. package/src/spec/pin.ts +47 -0
  923. package/src/spec/postgres-catalog-14.snapshot.json +3494 -0
  924. package/src/spec/postgres-catalog-15.snapshot.json +3529 -0
  925. package/src/spec/postgres-catalog-16.snapshot.json +3597 -0
  926. package/src/spec/postgres-catalog-17.snapshot.json +3656 -0
  927. package/src/spec/postgres-catalog-18.snapshot.json +3747 -0
  928. package/src/spec/postgres-catalog.test.ts +43 -0
  929. package/src/spec/postgres-catalog.ts +301 -0
  930. package/src/spec/postgres-fetch.test.ts +75 -0
  931. package/src/spec/postgres-fetch.ts +112 -0
  932. package/src/spec/postgres-pin.test.ts +64 -0
  933. package/src/spec/postgres-pin.ts +101 -0
  934. package/src/typecheck.test.ts +104 -0
  935. package/src/validate-cli.ts +6 -0
  936. package/src/validate.ts +149 -0
@@ -0,0 +1,1039 @@
1
+ // Generated by `npm run generate` from the Postgres catalogs at 14.24, 15.19, 16.15, 17.11, 18.6
2
+ // (src/spec/postgres-catalog-<major>.snapshot.json) and the overlays in src/postgres/overlays/. Do not edit.
3
+ // The tables lint and the LSP read, typed by ./postgres-types.
4
+
5
+ import type { ColumnTypeSpec, SettingSpec, StorageParameterSpec } from "../postgres/catalog-types";
6
+ import type { Settings, TypeSqlName } from "./postgres-types";
7
+
8
+ export * from "./postgres-types";
9
+
10
+ export const SETTINGS: Readonly<Record<keyof Settings, SettingSpec>> = {
11
+ DateStyle: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"ISO, MDY"},
12
+ IntervalStyle: {"type":"enum","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"postgres"},
13
+ TimeZone: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"GMT"},
14
+ allow_alter_system: {"type":"bool","context":"sighup","category":"Version and Platform Compatibility / Other Platforms and Clients","default":"on"},
15
+ allow_in_place_tablespaces: {"type":"bool","context":"superuser","category":"Developer Options","default":"off"},
16
+ allow_system_table_mods: {"type":"bool","context":"superuser","category":"Developer Options","default":"off"},
17
+ application_name: {"type":"string","context":"user","category":"Reporting and Logging / What to Log","default":""},
18
+ archive_cleanup_command: {"type":"string","context":"sighup","category":"Write-Ahead Log / Archive Recovery","default":""},
19
+ archive_command: {"type":"string","context":"sighup","category":"Write-Ahead Log / Archiving","default":""},
20
+ archive_library: {"type":"string","context":"sighup","category":"Write-Ahead Log / Archiving","default":""},
21
+ archive_mode: {"type":"enum","context":"postmaster","category":"Write-Ahead Log / Archiving","default":"off"},
22
+ archive_timeout: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Archiving","unit":"s","default":"0","min":"0","max":"1073741823"},
23
+ array_nulls: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"on"},
24
+ authentication_timeout: {"type":"integer","context":"sighup","category":"Connections and Authentication / Authentication","unit":"s","default":"60","min":"1","max":"600"},
25
+ autovacuum: {"type":"bool","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"on"},
26
+ autovacuum_analyze_scale_factor: {"type":"real","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"0.1","min":"0","max":"100"},
27
+ autovacuum_analyze_threshold: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"50","min":"0","max":"2147483647"},
28
+ autovacuum_freeze_max_age: {"type":"integer","context":"postmaster","category":"Vacuuming / Automatic Vacuuming","default":"200000000","min":"100000","max":"2000000000"},
29
+ autovacuum_max_workers: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"3","min":"1","max":"262143"},
30
+ autovacuum_multixact_freeze_max_age: {"type":"integer","context":"postmaster","category":"Vacuuming / Automatic Vacuuming","default":"400000000","min":"10000","max":"2000000000"},
31
+ autovacuum_naptime: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","unit":"s","default":"60","min":"1","max":"2147483"},
32
+ autovacuum_vacuum_cost_delay: {"type":"real","context":"sighup","category":"Vacuuming / Automatic Vacuuming","unit":"ms","default":"2","min":"-1","max":"100"},
33
+ autovacuum_vacuum_cost_limit: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"-1","min":"-1","max":"10000"},
34
+ autovacuum_vacuum_insert_scale_factor: {"type":"real","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"0.2","min":"0","max":"100"},
35
+ autovacuum_vacuum_insert_threshold: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"1000","min":"-1","max":"2147483647"},
36
+ autovacuum_vacuum_max_threshold: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"100000000","min":"-1","max":"2147483647"},
37
+ autovacuum_vacuum_scale_factor: {"type":"real","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"0.2","min":"0","max":"100"},
38
+ autovacuum_vacuum_threshold: {"type":"integer","context":"sighup","category":"Vacuuming / Automatic Vacuuming","default":"50","min":"0","max":"2147483647"},
39
+ autovacuum_work_mem: {"type":"integer","context":"sighup","category":"Resource Usage / Memory","unit":"kB","default":"-1","min":"-1","max":"2147483647"},
40
+ autovacuum_worker_slots: {"type":"integer","context":"postmaster","category":"Vacuuming / Automatic Vacuuming","default":"16","min":"1","max":"262143"},
41
+ backend_flush_after: {"type":"integer","context":"user","category":"Resource Usage / I/O","unit":"8kB","default":"0","min":"0","max":"256"},
42
+ backslash_quote: {"type":"enum","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"safe_encoding"},
43
+ backtrace_functions: {"type":"string","context":"superuser","category":"Developer Options","default":""},
44
+ bgwriter_delay: {"type":"integer","context":"sighup","category":"Resource Usage / Background Writer","unit":"ms","default":"200","min":"10","max":"10000"},
45
+ bgwriter_flush_after: {"type":"integer","context":"sighup","category":"Resource Usage / Background Writer","unit":"8kB","default":"64","min":"0","max":"256"},
46
+ bgwriter_lru_maxpages: {"type":"integer","context":"sighup","category":"Resource Usage / Background Writer","default":"100","min":"0","max":"1073741823"},
47
+ bgwriter_lru_multiplier: {"type":"real","context":"sighup","category":"Resource Usage / Background Writer","default":"2","min":"0","max":"10"},
48
+ block_size: {"type":"integer","context":"internal","category":"Preset Options","default":"8192","min":"8192","max":"8192"},
49
+ bonjour: {"type":"bool","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"off"},
50
+ bonjour_name: {"type":"string","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":""},
51
+ bytea_output: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"hex"},
52
+ check_function_bodies: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"on"},
53
+ checkpoint_completion_target: {"type":"real","context":"sighup","category":"Write-Ahead Log / Checkpoints","default":"0.9","min":"0","max":"1"},
54
+ checkpoint_flush_after: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Checkpoints","unit":"8kB","default":"32","min":"0","max":"256"},
55
+ checkpoint_timeout: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Checkpoints","unit":"s","default":"300","min":"30","max":"86400"},
56
+ checkpoint_warning: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Checkpoints","unit":"s","default":"30","min":"0","max":"2147483647"},
57
+ client_connection_check_interval: {"type":"integer","context":"user","category":"Connections and Authentication / TCP Settings","unit":"ms","default":"0","min":"0","max":"2147483647"},
58
+ client_encoding: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"SQL_ASCII"},
59
+ client_min_messages: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"notice"},
60
+ cluster_name: {"type":"string","context":"postmaster","category":"Reporting and Logging / Process Title","default":""},
61
+ commit_delay: {"type":"integer","context":"superuser","category":"Write-Ahead Log / Settings","default":"0","min":"0","max":"100000"},
62
+ commit_siblings: {"type":"integer","context":"user","category":"Write-Ahead Log / Settings","default":"5","min":"0","max":"1000"},
63
+ commit_timestamp_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"0","min":"0","max":"131072"},
64
+ compute_query_id: {"type":"enum","context":"superuser","category":"Statistics / Monitoring","default":"auto"},
65
+ config_file: {"type":"string","context":"postmaster","category":"File Locations"},
66
+ constraint_exclusion: {"type":"enum","context":"user","category":"Query Tuning / Other Planner Options","default":"partition"},
67
+ cpu_index_tuple_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"0.005","min":"0","max":"1.79769e+308"},
68
+ cpu_operator_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"0.0025","min":"0","max":"1.79769e+308"},
69
+ cpu_tuple_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"0.01","min":"0","max":"1.79769e+308"},
70
+ createrole_self_grant: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":""},
71
+ cursor_tuple_fraction: {"type":"real","context":"user","category":"Query Tuning / Other Planner Options","default":"0.1","min":"0","max":"1"},
72
+ data_checksums: {"type":"bool","context":"internal","category":"Preset Options","default":"off"},
73
+ data_directory: {"type":"string","context":"postmaster","category":"File Locations"},
74
+ data_directory_mode: {"type":"integer","context":"internal","category":"Preset Options","default":"448","min":"0","max":"511"},
75
+ data_sync_retry: {"type":"bool","context":"postmaster","category":"Error Handling","default":"off"},
76
+ db_user_namespace: {"type":"bool","context":"sighup","category":"Connections and Authentication / Authentication","default":"off"},
77
+ deadlock_timeout: {"type":"integer","context":"superuser","category":"Lock Management","unit":"ms","default":"1000","min":"1","max":"2147483647"},
78
+ debug_assertions: {"type":"bool","context":"internal","category":"Preset Options","default":"off"},
79
+ debug_discard_caches: {"type":"integer","context":"superuser","category":"Developer Options","default":"0","min":"0","max":"0"},
80
+ debug_io_direct: {"type":"string","context":"postmaster","category":"Developer Options","default":""},
81
+ debug_logical_replication_streaming: {"type":"enum","context":"user","category":"Developer Options","default":"buffered"},
82
+ debug_parallel_query: {"type":"enum","context":"user","category":"Developer Options","default":"off"},
83
+ debug_pretty_print: {"type":"bool","context":"user","category":"Reporting and Logging / What to Log","default":"on"},
84
+ debug_print_parse: {"type":"bool","context":"user","category":"Reporting and Logging / What to Log","default":"off"},
85
+ debug_print_plan: {"type":"bool","context":"user","category":"Reporting and Logging / What to Log","default":"off"},
86
+ debug_print_rewritten: {"type":"bool","context":"user","category":"Reporting and Logging / What to Log","default":"off"},
87
+ default_statistics_target: {"type":"integer","context":"user","category":"Query Tuning / Other Planner Options","default":"100","min":"1","max":"10000"},
88
+ default_table_access_method: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"heap"},
89
+ default_tablespace: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":""},
90
+ default_text_search_config: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"pg_catalog.simple"},
91
+ default_toast_compression: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"pglz"},
92
+ default_transaction_deferrable: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"off"},
93
+ default_transaction_isolation: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"read committed"},
94
+ default_transaction_read_only: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"off"},
95
+ dynamic_library_path: {"type":"string","context":"superuser","category":"Client Connection Defaults / Other Defaults","default":"$libdir"},
96
+ dynamic_shared_memory_type: {"type":"enum","context":"postmaster","category":"Resource Usage / Memory","default":"posix"},
97
+ effective_cache_size: {"type":"integer","context":"user","category":"Query Tuning / Planner Cost Constants","unit":"8kB","default":"524288","min":"1","max":"2147483647"},
98
+ effective_io_concurrency: {"type":"integer","context":"user","category":"Resource Usage / I/O","default":"16","min":"0","max":"1000"},
99
+ enable_async_append: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
100
+ enable_bitmapscan: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
101
+ enable_distinct_reordering: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
102
+ enable_gathermerge: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
103
+ enable_group_by_reordering: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
104
+ enable_hashagg: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
105
+ enable_hashjoin: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
106
+ enable_incremental_sort: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
107
+ enable_indexonlyscan: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
108
+ enable_indexscan: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
109
+ enable_material: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
110
+ enable_memoize: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
111
+ enable_mergejoin: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
112
+ enable_nestloop: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
113
+ enable_parallel_append: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
114
+ enable_parallel_hash: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
115
+ enable_partition_pruning: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
116
+ enable_partitionwise_aggregate: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"off"},
117
+ enable_partitionwise_join: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"off"},
118
+ enable_presorted_aggregate: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
119
+ enable_self_join_elimination: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
120
+ enable_seqscan: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
121
+ enable_sort: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
122
+ enable_tidscan: {"type":"bool","context":"user","category":"Query Tuning / Planner Method Configuration","default":"on"},
123
+ escape_string_warning: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"on"},
124
+ event_source: {"type":"string","context":"postmaster","category":"Reporting and Logging / Where to Log","default":"PostgreSQL"},
125
+ event_triggers: {"type":"bool","context":"superuser","category":"Client Connection Defaults / Statement Behavior","default":"on"},
126
+ exit_on_error: {"type":"bool","context":"user","category":"Error Handling","default":"off"},
127
+ extension_control_path: {"type":"string","context":"superuser","category":"Client Connection Defaults / Other Defaults","default":"$system"},
128
+ extension_destdir: {"type":"string","context":"superuser","category":"File Locations","default":""},
129
+ external_pid_file: {"type":"string","context":"postmaster","category":"File Locations"},
130
+ extra_float_digits: {"type":"integer","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"1","min":"-15","max":"3"},
131
+ file_copy_method: {"type":"enum","context":"user","category":"Resource Usage / Disk","default":"copy"},
132
+ file_extend_method: {"type":"enum","context":"sighup","category":"Resource Usage / Disk","default":"posix_fallocate"},
133
+ force_parallel_mode: {"type":"enum","context":"user","category":"Developer Options","default":"off"},
134
+ from_collapse_limit: {"type":"integer","context":"user","category":"Query Tuning / Other Planner Options","default":"8","min":"1","max":"2147483647"},
135
+ fsync: {"type":"bool","context":"sighup","category":"Write-Ahead Log / Settings","default":"on"},
136
+ full_page_writes: {"type":"bool","context":"sighup","category":"Write-Ahead Log / Settings","default":"on"},
137
+ geqo: {"type":"bool","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"on"},
138
+ geqo_effort: {"type":"integer","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"5","min":"1","max":"10"},
139
+ geqo_generations: {"type":"integer","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"0","min":"0","max":"2147483647"},
140
+ geqo_pool_size: {"type":"integer","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"0","min":"0","max":"2147483647"},
141
+ geqo_seed: {"type":"real","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"0","min":"0","max":"1"},
142
+ geqo_selection_bias: {"type":"real","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"2","min":"1.5","max":"2"},
143
+ geqo_threshold: {"type":"integer","context":"user","category":"Query Tuning / Genetic Query Optimizer","default":"12","min":"2","max":"2147483647"},
144
+ gin_fuzzy_search_limit: {"type":"integer","context":"user","category":"Client Connection Defaults / Other Defaults","default":"0","min":"0","max":"2147483647"},
145
+ gin_pending_list_limit: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"kB","default":"4096","min":"64","max":"2147483647"},
146
+ gss_accept_delegation: {"type":"bool","context":"sighup","category":"Connections and Authentication / Authentication","default":"off"},
147
+ hash_mem_multiplier: {"type":"real","context":"user","category":"Resource Usage / Memory","default":"2","min":"1","max":"1000"},
148
+ hba_file: {"type":"string","context":"postmaster","category":"File Locations"},
149
+ hot_standby: {"type":"bool","context":"postmaster","category":"Replication / Standby Servers","default":"on"},
150
+ hot_standby_feedback: {"type":"bool","context":"sighup","category":"Replication / Standby Servers","default":"off"},
151
+ huge_page_size: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"kB","default":"0","min":"0","max":"2147483647"},
152
+ huge_pages: {"type":"enum","context":"postmaster","category":"Resource Usage / Memory","default":"try"},
153
+ huge_pages_status: {"type":"enum","context":"internal","category":"Preset Options","default":"unknown"},
154
+ icu_validation_level: {"type":"enum","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"warning"},
155
+ ident_file: {"type":"string","context":"postmaster","category":"File Locations"},
156
+ idle_in_transaction_session_timeout: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"ms","default":"0","min":"0","max":"2147483647"},
157
+ idle_replication_slot_timeout: {"type":"integer","context":"sighup","category":"Replication / Sending Servers","unit":"s","default":"0","min":"0","max":"2147483647"},
158
+ idle_session_timeout: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"ms","default":"0","min":"0","max":"2147483647"},
159
+ ignore_checksum_failure: {"type":"bool","context":"superuser","category":"Developer Options","default":"off"},
160
+ ignore_invalid_pages: {"type":"bool","context":"postmaster","category":"Developer Options","default":"off"},
161
+ ignore_system_indexes: {"type":"bool","context":"backend","category":"Developer Options","default":"off"},
162
+ in_hot_standby: {"type":"bool","context":"internal","category":"Preset Options","default":"off"},
163
+ integer_datetimes: {"type":"bool","context":"internal","category":"Preset Options","default":"on"},
164
+ io_combine_limit: {"type":"integer","context":"user","category":"Resource Usage / I/O","unit":"8kB","default":"16","min":"1","max":"128"},
165
+ io_max_combine_limit: {"type":"integer","context":"postmaster","category":"Resource Usage / I/O","unit":"8kB","default":"16","min":"1","max":"128"},
166
+ io_max_concurrency: {"type":"integer","context":"postmaster","category":"Resource Usage / I/O","default":"-1","min":"-1","max":"1024"},
167
+ io_method: {"type":"enum","context":"postmaster","category":"Resource Usage / I/O","default":"worker"},
168
+ io_workers: {"type":"integer","context":"sighup","category":"Resource Usage / I/O","default":"3","min":"1","max":"32"},
169
+ jit: {"type":"bool","context":"user","category":"Query Tuning / Other Planner Options","default":"on"},
170
+ jit_above_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"100000","min":"-1","max":"1.79769e+308"},
171
+ jit_debugging_support: {"type":"bool","context":"superuser-backend","category":"Developer Options","default":"off"},
172
+ jit_dump_bitcode: {"type":"bool","context":"superuser","category":"Developer Options","default":"off"},
173
+ jit_expressions: {"type":"bool","context":"user","category":"Developer Options","default":"on"},
174
+ jit_inline_above_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"500000","min":"-1","max":"1.79769e+308"},
175
+ jit_optimize_above_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"500000","min":"-1","max":"1.79769e+308"},
176
+ jit_profiling_support: {"type":"bool","context":"superuser-backend","category":"Developer Options","default":"off"},
177
+ jit_provider: {"type":"string","context":"postmaster","category":"Client Connection Defaults / Shared Library Preloading","default":"llvmjit"},
178
+ jit_tuple_deforming: {"type":"bool","context":"user","category":"Developer Options","default":"on"},
179
+ join_collapse_limit: {"type":"integer","context":"user","category":"Query Tuning / Other Planner Options","default":"8","min":"1","max":"2147483647"},
180
+ krb_caseins_users: {"type":"bool","context":"sighup","category":"Connections and Authentication / Authentication","default":"off"},
181
+ krb_server_keyfile: {"type":"string","context":"sighup","category":"Connections and Authentication / Authentication","default":"FILE:/etc/postgresql-common/krb5.keytab"},
182
+ lc_collate: {"type":"string","context":"internal","category":"Preset Options","default":"C"},
183
+ lc_ctype: {"type":"string","context":"internal","category":"Preset Options","default":"C"},
184
+ lc_messages: {"type":"string","context":"superuser","category":"Client Connection Defaults / Locale and Formatting","default":""},
185
+ lc_monetary: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"C"},
186
+ lc_numeric: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"C"},
187
+ lc_time: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting","default":"C"},
188
+ listen_addresses: {"type":"string","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"localhost"},
189
+ lo_compat_privileges: {"type":"bool","context":"superuser","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"off"},
190
+ local_preload_libraries: {"type":"string","context":"user","category":"Client Connection Defaults / Shared Library Preloading","default":""},
191
+ lock_timeout: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"ms","default":"0","min":"0","max":"2147483647"},
192
+ log_autovacuum_min_duration: {"type":"integer","context":"sighup","category":"Reporting and Logging / What to Log","unit":"ms","default":"600000","min":"-1","max":"2147483647"},
193
+ log_checkpoints: {"type":"bool","context":"sighup","category":"Reporting and Logging / What to Log","default":"on"},
194
+ log_connections: {"type":"string","context":"superuser-backend","category":"Reporting and Logging / What to Log","default":""},
195
+ log_destination: {"type":"string","context":"sighup","category":"Reporting and Logging / Where to Log","default":"stderr"},
196
+ log_directory: {"type":"string","context":"sighup","category":"Reporting and Logging / Where to Log","default":"log"},
197
+ log_disconnections: {"type":"bool","context":"superuser-backend","category":"Reporting and Logging / What to Log","default":"off"},
198
+ log_duration: {"type":"bool","context":"superuser","category":"Reporting and Logging / What to Log","default":"off"},
199
+ log_error_verbosity: {"type":"enum","context":"superuser","category":"Reporting and Logging / What to Log","default":"default"},
200
+ log_executor_stats: {"type":"bool","context":"superuser","category":"Statistics / Monitoring","default":"off"},
201
+ log_file_mode: {"type":"integer","context":"sighup","category":"Reporting and Logging / Where to Log","default":"384","min":"0","max":"511"},
202
+ log_filename: {"type":"string","context":"sighup","category":"Reporting and Logging / Where to Log","default":"postgresql-%Y-%m-%d_%H%M%S.log"},
203
+ log_hostname: {"type":"bool","context":"sighup","category":"Reporting and Logging / What to Log","default":"off"},
204
+ log_line_prefix: {"type":"string","context":"sighup","category":"Reporting and Logging / What to Log","default":"%m [%p] "},
205
+ log_lock_failures: {"type":"bool","context":"superuser","category":"Reporting and Logging / What to Log","default":"off"},
206
+ log_lock_waits: {"type":"bool","context":"superuser","category":"Reporting and Logging / What to Log","default":"off"},
207
+ log_min_duration_sample: {"type":"integer","context":"superuser","category":"Reporting and Logging / When to Log","unit":"ms","default":"-1","min":"-1","max":"2147483647"},
208
+ log_min_duration_statement: {"type":"integer","context":"superuser","category":"Reporting and Logging / When to Log","unit":"ms","default":"-1","min":"-1","max":"2147483647"},
209
+ log_min_error_statement: {"type":"enum","context":"superuser","category":"Reporting and Logging / When to Log","default":"error"},
210
+ log_min_messages: {"type":"enum","context":"superuser","category":"Reporting and Logging / When to Log","default":"warning"},
211
+ log_parameter_max_length: {"type":"integer","context":"superuser","category":"Reporting and Logging / What to Log","unit":"B","default":"-1","min":"-1","max":"1073741823"},
212
+ log_parameter_max_length_on_error: {"type":"integer","context":"user","category":"Reporting and Logging / What to Log","unit":"B","default":"0","min":"-1","max":"1073741823"},
213
+ log_parser_stats: {"type":"bool","context":"superuser","category":"Statistics / Monitoring","default":"off"},
214
+ log_planner_stats: {"type":"bool","context":"superuser","category":"Statistics / Monitoring","default":"off"},
215
+ log_recovery_conflict_waits: {"type":"bool","context":"sighup","category":"Reporting and Logging / What to Log","default":"off"},
216
+ log_replication_commands: {"type":"bool","context":"superuser","category":"Reporting and Logging / What to Log","default":"off"},
217
+ log_rotation_age: {"type":"integer","context":"sighup","category":"Reporting and Logging / Where to Log","unit":"min","default":"1440","min":"0","max":"35791394"},
218
+ log_rotation_size: {"type":"integer","context":"sighup","category":"Reporting and Logging / Where to Log","unit":"kB","default":"10240","min":"0","max":"2147483647"},
219
+ log_startup_progress_interval: {"type":"integer","context":"sighup","category":"Reporting and Logging / When to Log","unit":"ms","default":"10000","min":"0","max":"2147483647"},
220
+ log_statement: {"type":"enum","context":"superuser","category":"Reporting and Logging / What to Log","default":"none"},
221
+ log_statement_sample_rate: {"type":"real","context":"superuser","category":"Reporting and Logging / When to Log","default":"1","min":"0","max":"1"},
222
+ log_statement_stats: {"type":"bool","context":"superuser","category":"Statistics / Monitoring","default":"off"},
223
+ log_temp_files: {"type":"integer","context":"superuser","category":"Reporting and Logging / What to Log","unit":"kB","default":"-1","min":"-1","max":"2147483647"},
224
+ log_timezone: {"type":"string","context":"sighup","category":"Reporting and Logging / What to Log","default":"GMT"},
225
+ log_transaction_sample_rate: {"type":"real","context":"superuser","category":"Reporting and Logging / When to Log","default":"0","min":"0","max":"1"},
226
+ log_truncate_on_rotation: {"type":"bool","context":"sighup","category":"Reporting and Logging / Where to Log","default":"off"},
227
+ logging_collector: {"type":"bool","context":"postmaster","category":"Reporting and Logging / Where to Log","default":"off"},
228
+ logical_decoding_work_mem: {"type":"integer","context":"user","category":"Resource Usage / Memory","unit":"kB","default":"65536","min":"64","max":"2147483647"},
229
+ maintenance_io_concurrency: {"type":"integer","context":"user","category":"Resource Usage / I/O","default":"16","min":"0","max":"1000"},
230
+ maintenance_work_mem: {"type":"integer","context":"user","category":"Resource Usage / Memory","unit":"kB","default":"65536","min":"64","max":"2147483647"},
231
+ max_active_replication_origins: {"type":"integer","context":"postmaster","category":"Replication / Subscribers","default":"10","min":"0","max":"262143"},
232
+ max_connections: {"type":"integer","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"100","min":"1","max":"262143"},
233
+ max_files_per_process: {"type":"integer","context":"postmaster","category":"Resource Usage / Kernel Resources","default":"1000","min":"64","max":"2147483647"},
234
+ max_function_args: {"type":"integer","context":"internal","category":"Preset Options","default":"100","min":"100","max":"100"},
235
+ max_identifier_length: {"type":"integer","context":"internal","category":"Preset Options","default":"63","min":"63","max":"63"},
236
+ max_index_keys: {"type":"integer","context":"internal","category":"Preset Options","default":"32","min":"32","max":"32"},
237
+ max_locks_per_transaction: {"type":"integer","context":"postmaster","category":"Lock Management","default":"64","min":"10","max":"2147483647"},
238
+ max_logical_replication_workers: {"type":"integer","context":"postmaster","category":"Replication / Subscribers","default":"4","min":"0","max":"262143"},
239
+ max_notify_queue_pages: {"type":"integer","context":"postmaster","category":"Resource Usage / Disk","default":"1048576","min":"64","max":"2147483647"},
240
+ max_parallel_apply_workers_per_subscription: {"type":"integer","context":"sighup","category":"Replication / Subscribers","default":"2","min":"0","max":"1024"},
241
+ max_parallel_maintenance_workers: {"type":"integer","context":"user","category":"Resource Usage / Worker Processes","default":"2","min":"0","max":"1024"},
242
+ max_parallel_workers: {"type":"integer","context":"user","category":"Resource Usage / Worker Processes","default":"8","min":"0","max":"1024"},
243
+ max_parallel_workers_per_gather: {"type":"integer","context":"user","category":"Resource Usage / Worker Processes","default":"2","min":"0","max":"1024"},
244
+ max_pred_locks_per_page: {"type":"integer","context":"sighup","category":"Lock Management","default":"2","min":"0","max":"2147483647"},
245
+ max_pred_locks_per_relation: {"type":"integer","context":"sighup","category":"Lock Management","default":"-2","min":"-2147483648","max":"2147483647"},
246
+ max_pred_locks_per_transaction: {"type":"integer","context":"postmaster","category":"Lock Management","default":"64","min":"10","max":"2147483647"},
247
+ max_prepared_transactions: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","default":"0","min":"0","max":"262143"},
248
+ max_replication_slots: {"type":"integer","context":"postmaster","category":"Replication / Sending Servers","default":"10","min":"0","max":"262143"},
249
+ max_slot_wal_keep_size: {"type":"integer","context":"sighup","category":"Replication / Sending Servers","unit":"MB","default":"-1","min":"-1","max":"2147483647"},
250
+ max_stack_depth: {"type":"integer","context":"superuser","category":"Resource Usage / Memory","unit":"kB","default":"100","min":"100","max":"2147483647"},
251
+ max_standby_archive_delay: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"ms","default":"30000","min":"-1","max":"2147483647"},
252
+ max_standby_streaming_delay: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"ms","default":"30000","min":"-1","max":"2147483647"},
253
+ max_sync_workers_per_subscription: {"type":"integer","context":"sighup","category":"Replication / Subscribers","default":"2","min":"0","max":"262143"},
254
+ max_wal_senders: {"type":"integer","context":"postmaster","category":"Replication / Sending Servers","default":"10","min":"0","max":"262143"},
255
+ max_wal_size: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Checkpoints","unit":"MB","default":"1024","min":"2","max":"2147483647"},
256
+ max_worker_processes: {"type":"integer","context":"postmaster","category":"Resource Usage / Worker Processes","default":"8","min":"0","max":"262143"},
257
+ md5_password_warnings: {"type":"bool","context":"user","category":"Connections and Authentication / Authentication","default":"on"},
258
+ min_dynamic_shared_memory: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"MB","default":"0","min":"0","max":"2147483647"},
259
+ min_parallel_index_scan_size: {"type":"integer","context":"user","category":"Query Tuning / Planner Cost Constants","unit":"8kB","default":"64","min":"0","max":"715827882"},
260
+ min_parallel_table_scan_size: {"type":"integer","context":"user","category":"Query Tuning / Planner Cost Constants","unit":"8kB","default":"1024","min":"0","max":"715827882"},
261
+ min_wal_size: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Checkpoints","unit":"MB","default":"80","min":"2","max":"2147483647"},
262
+ multixact_member_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"32","min":"16","max":"131072"},
263
+ multixact_offset_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"16","min":"16","max":"131072"},
264
+ notify_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"16","min":"16","max":"131072"},
265
+ num_os_semaphores: {"type":"integer","context":"internal","category":"Preset Options","default":"0","min":"0","max":"2147483647"},
266
+ oauth_validator_libraries: {"type":"string","context":"sighup","category":"Connections and Authentication / Authentication","default":""},
267
+ old_snapshot_threshold: {"type":"integer","context":"postmaster","category":"Resource Usage / Asynchronous Behavior","unit":"min","default":"-1","min":"-1","max":"86400"},
268
+ output_plugin_libraries: {"type":"string","context":"superuser","category":"Replication / Sending Servers","default":"pgoutput, test_decoding"},
269
+ parallel_leader_participation: {"type":"bool","context":"user","category":"Resource Usage / Worker Processes","default":"on"},
270
+ parallel_setup_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"1000","min":"0","max":"1.79769e+308"},
271
+ parallel_tuple_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"0.1","min":"0","max":"1.79769e+308"},
272
+ password_encryption: {"type":"enum","context":"user","category":"Connections and Authentication / Authentication","default":"scram-sha-256"},
273
+ plan_cache_mode: {"type":"enum","context":"user","category":"Query Tuning / Other Planner Options","default":"auto"},
274
+ port: {"type":"integer","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"5432","min":"1","max":"65535"},
275
+ post_auth_delay: {"type":"integer","context":"backend","category":"Developer Options","unit":"s","default":"0","min":"0","max":"2147"},
276
+ pre_auth_delay: {"type":"integer","context":"sighup","category":"Developer Options","unit":"s","default":"0","min":"0","max":"60"},
277
+ primary_conninfo: {"type":"string","context":"sighup","category":"Replication / Standby Servers","default":""},
278
+ primary_slot_name: {"type":"string","context":"sighup","category":"Replication / Standby Servers","default":""},
279
+ promote_trigger_file: {"type":"string","context":"sighup","category":"Replication / Standby Servers","default":""},
280
+ quote_all_identifiers: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"off"},
281
+ random_page_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"4","min":"0","max":"1.79769e+308"},
282
+ recovery_end_command: {"type":"string","context":"sighup","category":"Write-Ahead Log / Archive Recovery","default":""},
283
+ recovery_init_sync_method: {"type":"enum","context":"sighup","category":"Error Handling","default":"fsync"},
284
+ recovery_min_apply_delay: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"ms","default":"0","min":"0","max":"2147483647"},
285
+ recovery_prefetch: {"type":"enum","context":"sighup","category":"Write-Ahead Log / Recovery","default":"try"},
286
+ recovery_target: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":""},
287
+ recovery_target_action: {"type":"enum","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":"pause"},
288
+ recovery_target_inclusive: {"type":"bool","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":"on"},
289
+ recovery_target_lsn: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":""},
290
+ recovery_target_name: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":""},
291
+ recovery_target_time: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":""},
292
+ recovery_target_timeline: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":"latest"},
293
+ recovery_target_xid: {"type":"string","context":"postmaster","category":"Write-Ahead Log / Recovery Target","default":""},
294
+ recursive_worktable_factor: {"type":"real","context":"user","category":"Query Tuning / Other Planner Options","default":"10","min":"0.001","max":"1e+06"},
295
+ remove_temp_files_after_crash: {"type":"bool","context":"sighup","category":"Developer Options","default":"on"},
296
+ reserved_connections: {"type":"integer","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"0","min":"0","max":"262143"},
297
+ restart_after_crash: {"type":"bool","context":"sighup","category":"Error Handling","default":"on"},
298
+ restore_command: {"type":"string","context":"sighup","category":"Write-Ahead Log / Archive Recovery","default":""},
299
+ restrict_nonsystem_relation_kind: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":""},
300
+ row_security: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"on"},
301
+ scram_iterations: {"type":"integer","context":"user","category":"Connections and Authentication / Authentication","default":"4096","min":"1","max":"2147483647"},
302
+ search_path: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"\"$user\", public"},
303
+ segment_size: {"type":"integer","context":"internal","category":"Preset Options","unit":"8kB","default":"131072","min":"131072","max":"131072"},
304
+ send_abort_for_crash: {"type":"bool","context":"sighup","category":"Developer Options","default":"off"},
305
+ send_abort_for_kill: {"type":"bool","context":"sighup","category":"Developer Options","default":"off"},
306
+ seq_page_cost: {"type":"real","context":"user","category":"Query Tuning / Planner Cost Constants","default":"1","min":"0","max":"1.79769e+308"},
307
+ serializable_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"32","min":"16","max":"131072"},
308
+ server_encoding: {"type":"string","context":"internal","category":"Preset Options","default":"SQL_ASCII"},
309
+ session_preload_libraries: {"type":"string","context":"superuser","category":"Client Connection Defaults / Shared Library Preloading","default":""},
310
+ session_replication_role: {"type":"enum","context":"superuser","category":"Client Connection Defaults / Statement Behavior","default":"origin"},
311
+ shared_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"16384","min":"16","max":"1073741823"},
312
+ shared_memory_size: {"type":"integer","context":"internal","category":"Preset Options","unit":"MB","default":"0","min":"0","max":"2147483647"},
313
+ shared_memory_size_in_huge_pages: {"type":"integer","context":"internal","category":"Preset Options","default":"-1","min":"-1","max":"2147483647"},
314
+ shared_memory_type: {"type":"enum","context":"postmaster","category":"Resource Usage / Memory","default":"mmap"},
315
+ shared_preload_libraries: {"type":"string","context":"postmaster","category":"Client Connection Defaults / Shared Library Preloading","default":""},
316
+ ssl: {"type":"bool","context":"sighup","category":"Connections and Authentication / SSL","default":"off"},
317
+ ssl_ca_file: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
318
+ ssl_cert_file: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":"server.crt"},
319
+ ssl_ciphers: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":"HIGH:MEDIUM:+3DES:!aNULL"},
320
+ ssl_crl_dir: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
321
+ ssl_crl_file: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
322
+ ssl_dh_params_file: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
323
+ ssl_ecdh_curve: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":"prime256v1"},
324
+ ssl_groups: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":"X25519:prime256v1"},
325
+ ssl_key_file: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":"server.key"},
326
+ ssl_library: {"type":"string","context":"internal","category":"Preset Options","default":"OpenSSL"},
327
+ ssl_max_protocol_version: {"type":"enum","context":"sighup","category":"Connections and Authentication / SSL","default":""},
328
+ ssl_min_protocol_version: {"type":"enum","context":"sighup","category":"Connections and Authentication / SSL","default":"TLSv1.2"},
329
+ ssl_passphrase_command: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
330
+ ssl_passphrase_command_supports_reload: {"type":"bool","context":"sighup","category":"Connections and Authentication / SSL","default":"off"},
331
+ ssl_prefer_server_ciphers: {"type":"bool","context":"sighup","category":"Connections and Authentication / SSL","default":"on"},
332
+ ssl_tls13_ciphers: {"type":"string","context":"sighup","category":"Connections and Authentication / SSL","default":""},
333
+ standard_conforming_strings: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"on"},
334
+ statement_timeout: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"ms","default":"0","min":"0","max":"2147483647"},
335
+ stats_fetch_consistency: {"type":"enum","context":"user","category":"Statistics / Cumulative Query and Index Statistics","default":"cache"},
336
+ stats_temp_directory: {"type":"string","context":"sighup","category":"Statistics / Query and Index Statistics Collector","default":"pg_stat_tmp"},
337
+ subtransaction_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"0","min":"0","max":"131072"},
338
+ summarize_wal: {"type":"bool","context":"sighup","category":"Write-Ahead Log / Summarization","default":"off"},
339
+ superuser_reserved_connections: {"type":"integer","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"3","min":"0","max":"262143"},
340
+ sync_replication_slots: {"type":"bool","context":"sighup","category":"Replication / Standby Servers","default":"off"},
341
+ synchronize_seqscans: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Previous PostgreSQL Versions","default":"on"},
342
+ synchronized_standby_slots: {"type":"string","context":"sighup","category":"Replication / Primary Server","default":""},
343
+ synchronous_commit: {"type":"enum","context":"user","category":"Write-Ahead Log / Settings","default":"on"},
344
+ synchronous_standby_names: {"type":"string","context":"sighup","category":"Replication / Primary Server","default":""},
345
+ syslog_facility: {"type":"enum","context":"sighup","category":"Reporting and Logging / Where to Log","default":"local0"},
346
+ syslog_ident: {"type":"string","context":"sighup","category":"Reporting and Logging / Where to Log","default":"postgres"},
347
+ syslog_sequence_numbers: {"type":"bool","context":"sighup","category":"Reporting and Logging / Where to Log","default":"on"},
348
+ syslog_split_messages: {"type":"bool","context":"sighup","category":"Reporting and Logging / Where to Log","default":"on"},
349
+ tcp_keepalives_count: {"type":"integer","context":"user","category":"Connections and Authentication / TCP Settings","default":"0","min":"0","max":"2147483647"},
350
+ tcp_keepalives_idle: {"type":"integer","context":"user","category":"Connections and Authentication / TCP Settings","unit":"s","default":"0","min":"0","max":"2147483647"},
351
+ tcp_keepalives_interval: {"type":"integer","context":"user","category":"Connections and Authentication / TCP Settings","unit":"s","default":"0","min":"0","max":"2147483647"},
352
+ tcp_user_timeout: {"type":"integer","context":"user","category":"Connections and Authentication / TCP Settings","unit":"ms","default":"0","min":"0","max":"2147483647"},
353
+ temp_buffers: {"type":"integer","context":"user","category":"Resource Usage / Memory","unit":"8kB","default":"1024","min":"100","max":"1073741823"},
354
+ temp_file_limit: {"type":"integer","context":"superuser","category":"Resource Usage / Disk","unit":"kB","default":"-1","min":"-1","max":"2147483647"},
355
+ temp_tablespaces: {"type":"string","context":"user","category":"Client Connection Defaults / Statement Behavior","default":""},
356
+ timezone_abbreviations: {"type":"string","context":"user","category":"Client Connection Defaults / Locale and Formatting"},
357
+ trace_connection_negotiation: {"type":"bool","context":"postmaster","category":"Developer Options","default":"off"},
358
+ trace_notify: {"type":"bool","context":"user","category":"Developer Options","default":"off"},
359
+ trace_recovery_messages: {"type":"enum","context":"sighup","category":"Developer Options","default":"log"},
360
+ trace_sort: {"type":"bool","context":"user","category":"Developer Options","default":"off"},
361
+ track_activities: {"type":"bool","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"on"},
362
+ track_activity_query_size: {"type":"integer","context":"postmaster","category":"Statistics / Cumulative Query and Index Statistics","unit":"B","default":"1024","min":"100","max":"1048576"},
363
+ track_commit_timestamp: {"type":"bool","context":"postmaster","category":"Replication / Sending Servers","default":"off"},
364
+ track_cost_delay_timing: {"type":"bool","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"off"},
365
+ track_counts: {"type":"bool","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"on"},
366
+ track_functions: {"type":"enum","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"none"},
367
+ track_io_timing: {"type":"bool","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"off"},
368
+ track_wal_io_timing: {"type":"bool","context":"superuser","category":"Statistics / Cumulative Query and Index Statistics","default":"off"},
369
+ transaction_buffers: {"type":"integer","context":"postmaster","category":"Resource Usage / Memory","unit":"8kB","default":"0","min":"0","max":"131072"},
370
+ transaction_deferrable: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"off"},
371
+ transaction_isolation: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"read committed"},
372
+ transaction_read_only: {"type":"bool","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"off"},
373
+ transaction_timeout: {"type":"integer","context":"user","category":"Client Connection Defaults / Statement Behavior","unit":"ms","default":"0","min":"0","max":"2147483647"},
374
+ transform_null_equals: {"type":"bool","context":"user","category":"Version and Platform Compatibility / Other Platforms and Clients","default":"off"},
375
+ unix_socket_directories: {"type":"string","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"/var/run/postgresql"},
376
+ unix_socket_group: {"type":"string","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":""},
377
+ unix_socket_permissions: {"type":"integer","context":"postmaster","category":"Connections and Authentication / Connection Settings","default":"511","min":"0","max":"511"},
378
+ update_process_title: {"type":"bool","context":"superuser","category":"Reporting and Logging / Process Title","default":"on"},
379
+ vacuum_buffer_usage_limit: {"type":"integer","context":"user","category":"Resource Usage / Memory","unit":"kB","default":"2048","min":"0","max":"16777216"},
380
+ vacuum_cost_delay: {"type":"real","context":"user","category":"Vacuuming / Cost-Based Vacuum Delay","unit":"ms","default":"0","min":"0","max":"100"},
381
+ vacuum_cost_limit: {"type":"integer","context":"user","category":"Vacuuming / Cost-Based Vacuum Delay","default":"200","min":"1","max":"10000"},
382
+ vacuum_cost_page_dirty: {"type":"integer","context":"user","category":"Vacuuming / Cost-Based Vacuum Delay","default":"20","min":"0","max":"10000"},
383
+ vacuum_cost_page_hit: {"type":"integer","context":"user","category":"Vacuuming / Cost-Based Vacuum Delay","default":"1","min":"0","max":"10000"},
384
+ vacuum_cost_page_miss: {"type":"integer","context":"user","category":"Vacuuming / Cost-Based Vacuum Delay","default":"2","min":"0","max":"10000"},
385
+ vacuum_defer_cleanup_age: {"type":"integer","context":"sighup","category":"Replication / Primary Server","default":"0","min":"0","max":"1000000"},
386
+ vacuum_failsafe_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"1600000000","min":"0","max":"2100000000"},
387
+ vacuum_freeze_min_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"50000000","min":"0","max":"1000000000"},
388
+ vacuum_freeze_table_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"150000000","min":"0","max":"2000000000"},
389
+ vacuum_max_eager_freeze_failure_rate: {"type":"real","context":"user","category":"Vacuuming / Freezing","default":"0.03","min":"0","max":"1"},
390
+ vacuum_multixact_failsafe_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"1600000000","min":"0","max":"2100000000"},
391
+ vacuum_multixact_freeze_min_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"5000000","min":"0","max":"1000000000"},
392
+ vacuum_multixact_freeze_table_age: {"type":"integer","context":"user","category":"Vacuuming / Freezing","default":"150000000","min":"0","max":"2000000000"},
393
+ vacuum_truncate: {"type":"bool","context":"user","category":"Vacuuming / Default Behavior","default":"on"},
394
+ wal_block_size: {"type":"integer","context":"internal","category":"Preset Options","default":"8192","min":"8192","max":"8192"},
395
+ wal_buffers: {"type":"integer","context":"postmaster","category":"Write-Ahead Log / Settings","unit":"8kB","default":"-1","min":"-1","max":"262143"},
396
+ wal_compression: {"type":"enum","context":"superuser","category":"Write-Ahead Log / Settings","default":"off"},
397
+ wal_consistency_checking: {"type":"string","context":"superuser","category":"Developer Options","default":""},
398
+ wal_decode_buffer_size: {"type":"integer","context":"postmaster","category":"Write-Ahead Log / Recovery","unit":"B","default":"524288","min":"65536","max":"1073741823"},
399
+ wal_init_zero: {"type":"bool","context":"superuser","category":"Write-Ahead Log / Settings","default":"on"},
400
+ wal_keep_size: {"type":"integer","context":"sighup","category":"Replication / Sending Servers","unit":"MB","default":"0","min":"0","max":"2147483647"},
401
+ wal_level: {"type":"enum","context":"postmaster","category":"Write-Ahead Log / Settings","default":"replica"},
402
+ wal_log_hints: {"type":"bool","context":"postmaster","category":"Write-Ahead Log / Settings","default":"off"},
403
+ wal_receiver_create_temp_slot: {"type":"bool","context":"sighup","category":"Replication / Standby Servers","default":"off"},
404
+ wal_receiver_status_interval: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"s","default":"10","min":"0","max":"2147483"},
405
+ wal_receiver_timeout: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"ms","default":"60000","min":"0","max":"2147483647"},
406
+ wal_recycle: {"type":"bool","context":"superuser","category":"Write-Ahead Log / Settings","default":"on"},
407
+ wal_retrieve_retry_interval: {"type":"integer","context":"sighup","category":"Replication / Standby Servers","unit":"ms","default":"5000","min":"1","max":"2147483647"},
408
+ wal_segment_size: {"type":"integer","context":"internal","category":"Preset Options","unit":"B","default":"16777216","min":"1048576","max":"1073741824"},
409
+ wal_sender_timeout: {"type":"integer","context":"user","category":"Replication / Sending Servers","unit":"ms","default":"60000","min":"0","max":"2147483647"},
410
+ wal_skip_threshold: {"type":"integer","context":"user","category":"Write-Ahead Log / Settings","unit":"kB","default":"2048","min":"0","max":"2147483647"},
411
+ wal_summary_keep_time: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Summarization","unit":"min","default":"14400","min":"0","max":"35791394"},
412
+ wal_sync_method: {"type":"enum","context":"sighup","category":"Write-Ahead Log / Settings","default":"fdatasync"},
413
+ wal_writer_delay: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Settings","unit":"ms","default":"200","min":"1","max":"10000"},
414
+ wal_writer_flush_after: {"type":"integer","context":"sighup","category":"Write-Ahead Log / Settings","unit":"8kB","default":"128","min":"0","max":"2147483647"},
415
+ work_mem: {"type":"integer","context":"user","category":"Resource Usage / Memory","unit":"kB","default":"4096","min":"64","max":"2147483647"},
416
+ xmlbinary: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"base64"},
417
+ xmloption: {"type":"enum","context":"user","category":"Client Connection Defaults / Statement Behavior","default":"content"},
418
+ zero_damaged_pages: {"type":"bool","context":"superuser","category":"Developer Options","default":"off"},
419
+ };
420
+
421
+ export const STORAGE_PARAMETERS: Readonly<Record<string, StorageParameterSpec>> = {
422
+ autosummarize: {"type":{"kind":"boolean"},"targets":["index:brin"]},
423
+ autovacuum_analyze_scale_factor: {"type":{"kind":"real","range":[0,100]},"targets":["materialized view","table"]},
424
+ autovacuum_analyze_threshold: {"type":{"kind":"integer","range":[0,2147483647]},"targets":["materialized view","table"]},
425
+ autovacuum_enabled: {"type":{"kind":"boolean"},"targets":["materialized view","table","toast"]},
426
+ autovacuum_freeze_max_age: {"type":{"kind":"integer","range":[100000,2000000000]},"targets":["materialized view","table","toast"]},
427
+ autovacuum_freeze_min_age: {"type":{"kind":"integer","range":[0,1000000000]},"targets":["materialized view","table","toast"]},
428
+ autovacuum_freeze_table_age: {"type":{"kind":"integer","range":[0,2000000000]},"targets":["materialized view","table","toast"]},
429
+ autovacuum_multixact_freeze_max_age: {"type":{"kind":"integer","range":[10000,2000000000]},"targets":["materialized view","table","toast"]},
430
+ autovacuum_multixact_freeze_min_age: {"type":{"kind":"integer","range":[0,1000000000]},"targets":["materialized view","table","toast"]},
431
+ autovacuum_multixact_freeze_table_age: {"type":{"kind":"integer","range":[0,2000000000]},"targets":["materialized view","table","toast"]},
432
+ autovacuum_vacuum_cost_delay: {"type":{"kind":"real","range":[-1,100]},"targets":["materialized view","table","toast"]},
433
+ autovacuum_vacuum_cost_limit: {"type":{"kind":"integer","range":[-1,10000]},"targets":["materialized view","table","toast"]},
434
+ autovacuum_vacuum_insert_scale_factor: {"type":{"kind":"real","range":[0,100]},"targets":["materialized view","table","toast"]},
435
+ autovacuum_vacuum_insert_threshold: {"type":{"kind":"integer","range":[-1,2147483647]},"targets":["materialized view","table","toast"]},
436
+ autovacuum_vacuum_max_threshold: {"type":{"kind":"integer","range":[-1,2147483647]},"targets":["materialized view","table","toast"]},
437
+ autovacuum_vacuum_scale_factor: {"type":{"kind":"real","range":[0,100]},"targets":["materialized view","table","toast"]},
438
+ autovacuum_vacuum_threshold: {"type":{"kind":"integer","range":[0,2147483647]},"targets":["materialized view","table","toast"]},
439
+ buffering: {"type":{"kind":"enum","values":["on","off","auto"]},"targets":["index:gist"]},
440
+ check_option: {"type":{"kind":"enum","values":["local","cascaded"]},"targets":["view"]},
441
+ deduplicate_items: {"type":{"kind":"boolean"},"targets":["index:btree"]},
442
+ fastupdate: {"type":{"kind":"boolean"},"targets":["index:gin"]},
443
+ fillfactor: {"type":{"kind":"integer","range":[10,100]},"targets":["index:btree","index:gist","index:hash","index:spgist","materialized view","table"]},
444
+ gin_pending_list_limit: {"type":{"kind":"integer","range":[64,2147483647]},"targets":["index:gin"]},
445
+ log_autovacuum_min_duration: {"type":{"kind":"integer","range":[-1,2147483647]},"targets":["materialized view","table","toast"]},
446
+ pages_per_range: {"type":{"kind":"integer","range":[1,131072]},"targets":["index:brin"]},
447
+ parallel_workers: {"type":{"kind":"integer","range":[0,1024]},"targets":["materialized view","table"]},
448
+ security_barrier: {"type":{"kind":"boolean"},"targets":["view"]},
449
+ security_invoker: {"type":{"kind":"boolean"},"targets":["view"]},
450
+ toast_tuple_target: {"type":{"kind":"integer","range":[128,1073741823]},"targets":["materialized view","table"]},
451
+ user_catalog_table: {"type":{"kind":"boolean"},"targets":["materialized view","table"]},
452
+ vacuum_cleanup_index_scale_factor: {"type":{"kind":"real","range":[0,10000000000]},"targets":["index:btree"]},
453
+ vacuum_index_cleanup: {"type":{"kind":"enum","values":["auto","on","off","true","false"]},"targets":["materialized view","table","toast"]},
454
+ vacuum_max_eager_freeze_failure_rate: {"type":{"kind":"real","range":[0,1]},"targets":["materialized view","table","toast"]},
455
+ vacuum_truncate: {"type":{"kind":"boolean"},"targets":["materialized view","table","toast"]},
456
+ };
457
+
458
+ export const COLUMN_TYPES: Readonly<Record<TypeSqlName, ColumnTypeSpec>> = {
459
+ "\"char\"": {"catalogName":"char","category":"Z","aliases":["char"],"parameters":[]},
460
+ aclitem: {"category":"U","aliases":[],"parameters":[]},
461
+ bigint: {"catalogName":"int8","category":"N","aliases":["int8"],"parameters":[]},
462
+ bit: {"category":"V","aliases":[],"parameters":[{"name":"length","kind":"number","optional":true,"range":[1,83886080]}]},
463
+ "bit varying": {"catalogName":"varbit","category":"V","aliases":["varbit"],"parameters":[{"name":"length","kind":"number","optional":true,"range":[1,83886080]}]},
464
+ boolean: {"catalogName":"bool","category":"B","aliases":["bool"],"parameters":[]},
465
+ box: {"category":"G","aliases":[],"parameters":[]},
466
+ bytea: {"category":"U","aliases":[],"parameters":[]},
467
+ character: {"catalogName":"bpchar","category":"S","aliases":["bpchar","char"],"parameters":[{"name":"length","kind":"number","optional":true,"range":[1,10485760]}]},
468
+ "character varying": {"catalogName":"varchar","category":"S","aliases":["varchar"],"parameters":[{"name":"length","kind":"number","optional":true,"range":[1,10485760]}]},
469
+ cid: {"category":"U","aliases":[],"parameters":[]},
470
+ cidr: {"category":"I","aliases":[],"parameters":[]},
471
+ circle: {"category":"G","aliases":[],"parameters":[]},
472
+ date: {"category":"D","aliases":[],"parameters":[]},
473
+ datemultirange: {"category":"R","aliases":[],"parameters":[]},
474
+ daterange: {"category":"R","aliases":[],"parameters":[]},
475
+ "double precision": {"catalogName":"float8","category":"N","aliases":["float","float8"],"parameters":[]},
476
+ gtsvector: {"category":"U","aliases":[],"parameters":[]},
477
+ inet: {"category":"I","aliases":[],"parameters":[]},
478
+ int2vector: {"category":"A","aliases":[],"parameters":[]},
479
+ int4multirange: {"category":"R","aliases":[],"parameters":[]},
480
+ int4range: {"category":"R","aliases":[],"parameters":[]},
481
+ int8multirange: {"category":"R","aliases":[],"parameters":[]},
482
+ int8range: {"category":"R","aliases":[],"parameters":[]},
483
+ integer: {"catalogName":"int4","category":"N","aliases":["int","int4"],"parameters":[]},
484
+ interval: {"category":"T","aliases":[],"parameters":[{"name":"fields","kind":"keyword","optional":true,"values":["YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","YEAR TO MONTH","DAY TO HOUR","DAY TO MINUTE","DAY TO SECOND","HOUR TO MINUTE","HOUR TO SECOND","MINUTE TO SECOND"]},{"name":"precision","kind":"number","optional":true,"range":[0,6]}]},
485
+ json: {"category":"U","aliases":[],"parameters":[]},
486
+ jsonb: {"category":"U","aliases":[],"parameters":[]},
487
+ jsonpath: {"category":"U","aliases":[],"parameters":[]},
488
+ line: {"category":"G","aliases":[],"parameters":[]},
489
+ lseg: {"category":"G","aliases":[],"parameters":[]},
490
+ macaddr: {"category":"U","aliases":[],"parameters":[]},
491
+ macaddr8: {"category":"U","aliases":[],"parameters":[]},
492
+ money: {"category":"N","aliases":[],"parameters":[]},
493
+ name: {"category":"S","aliases":[],"parameters":[]},
494
+ numeric: {"category":"N","aliases":["decimal"],"parameters":[{"name":"precision","kind":"number","optional":true,"range":[1,1000]},{"name":"scale","kind":"number","optional":true,"range":[-1000,1000]}]},
495
+ nummultirange: {"category":"R","aliases":[],"parameters":[]},
496
+ numrange: {"category":"R","aliases":[],"parameters":[]},
497
+ oid: {"category":"N","aliases":[],"parameters":[]},
498
+ oidvector: {"category":"A","aliases":[],"parameters":[]},
499
+ path: {"category":"G","aliases":[],"parameters":[]},
500
+ pg_brin_bloom_summary: {"category":"Z","aliases":[],"parameters":[]},
501
+ pg_brin_minmax_multi_summary: {"category":"Z","aliases":[],"parameters":[]},
502
+ pg_dependencies: {"category":"Z","aliases":[],"parameters":[]},
503
+ pg_lsn: {"category":"U","aliases":[],"parameters":[]},
504
+ pg_mcv_list: {"category":"Z","aliases":[],"parameters":[]},
505
+ pg_ndistinct: {"category":"Z","aliases":[],"parameters":[]},
506
+ pg_node_tree: {"category":"Z","aliases":[],"parameters":[]},
507
+ pg_snapshot: {"category":"U","aliases":[],"parameters":[]},
508
+ point: {"category":"G","aliases":[],"parameters":[]},
509
+ polygon: {"category":"G","aliases":[],"parameters":[]},
510
+ real: {"catalogName":"float4","category":"N","aliases":["float4"],"parameters":[]},
511
+ refcursor: {"category":"U","aliases":[],"parameters":[]},
512
+ regclass: {"category":"N","aliases":[],"parameters":[]},
513
+ regcollation: {"category":"N","aliases":[],"parameters":[]},
514
+ regconfig: {"category":"N","aliases":[],"parameters":[]},
515
+ regdictionary: {"category":"N","aliases":[],"parameters":[]},
516
+ regnamespace: {"category":"N","aliases":[],"parameters":[]},
517
+ regoper: {"category":"N","aliases":[],"parameters":[]},
518
+ regoperator: {"category":"N","aliases":[],"parameters":[]},
519
+ regproc: {"category":"N","aliases":[],"parameters":[]},
520
+ regprocedure: {"category":"N","aliases":[],"parameters":[]},
521
+ regrole: {"category":"N","aliases":[],"parameters":[]},
522
+ regtype: {"category":"N","aliases":[],"parameters":[]},
523
+ smallint: {"catalogName":"int2","category":"N","aliases":["int2"],"parameters":[]},
524
+ text: {"category":"S","aliases":[],"parameters":[]},
525
+ tid: {"category":"U","aliases":[],"parameters":[]},
526
+ "time with time zone": {"catalogName":"timetz","category":"D","aliases":["timetz"],"parameters":[{"name":"precision","kind":"number","optional":true,"range":[0,6]}]},
527
+ "time without time zone": {"catalogName":"time","category":"D","aliases":["time"],"parameters":[{"name":"precision","kind":"number","optional":true,"range":[0,6]}]},
528
+ "timestamp with time zone": {"catalogName":"timestamptz","category":"D","aliases":["timestamptz"],"parameters":[{"name":"precision","kind":"number","optional":true,"range":[0,6]}]},
529
+ "timestamp without time zone": {"catalogName":"timestamp","category":"D","aliases":["timestamp"],"parameters":[{"name":"precision","kind":"number","optional":true,"range":[0,6]}]},
530
+ tsmultirange: {"category":"R","aliases":[],"parameters":[]},
531
+ tsquery: {"category":"U","aliases":[],"parameters":[]},
532
+ tsrange: {"category":"R","aliases":[],"parameters":[]},
533
+ tstzmultirange: {"category":"R","aliases":[],"parameters":[]},
534
+ tstzrange: {"category":"R","aliases":[],"parameters":[]},
535
+ tsvector: {"category":"U","aliases":[],"parameters":[]},
536
+ txid_snapshot: {"category":"U","aliases":[],"parameters":[]},
537
+ uuid: {"category":"U","aliases":[],"parameters":[]},
538
+ xid: {"category":"U","aliases":[],"parameters":[]},
539
+ xid8: {"category":"U","aliases":[],"parameters":[]},
540
+ xml: {"category":"U","aliases":[],"parameters":[]},
541
+ };
542
+
543
+ /** Every key word at the latest pinned major, by its `pg_get_keywords()` category: U unreserved, C column name, T type or function name, R reserved. */
544
+ export const KEYWORDS: Readonly<Record<string, "U" | "C" | "T" | "R">> = {
545
+ abort: "U",
546
+ absent: "U",
547
+ absolute: "U",
548
+ access: "U",
549
+ action: "U",
550
+ add: "U",
551
+ admin: "U",
552
+ after: "U",
553
+ aggregate: "U",
554
+ all: "R",
555
+ also: "U",
556
+ alter: "U",
557
+ always: "U",
558
+ analyse: "R",
559
+ analyze: "R",
560
+ and: "R",
561
+ any: "R",
562
+ array: "R",
563
+ as: "R",
564
+ asc: "R",
565
+ asensitive: "U",
566
+ assertion: "U",
567
+ assignment: "U",
568
+ asymmetric: "R",
569
+ at: "U",
570
+ atomic: "U",
571
+ attach: "U",
572
+ attribute: "U",
573
+ authorization: "T",
574
+ backward: "U",
575
+ before: "U",
576
+ begin: "U",
577
+ between: "C",
578
+ bigint: "C",
579
+ binary: "T",
580
+ bit: "C",
581
+ boolean: "C",
582
+ both: "R",
583
+ breadth: "U",
584
+ by: "U",
585
+ cache: "U",
586
+ call: "U",
587
+ called: "U",
588
+ cascade: "U",
589
+ cascaded: "U",
590
+ case: "R",
591
+ cast: "R",
592
+ catalog: "U",
593
+ chain: "U",
594
+ char: "C",
595
+ character: "C",
596
+ characteristics: "U",
597
+ check: "R",
598
+ checkpoint: "U",
599
+ class: "U",
600
+ close: "U",
601
+ cluster: "U",
602
+ coalesce: "C",
603
+ collate: "R",
604
+ collation: "T",
605
+ column: "R",
606
+ columns: "U",
607
+ comment: "U",
608
+ comments: "U",
609
+ commit: "U",
610
+ committed: "U",
611
+ compression: "U",
612
+ concurrently: "T",
613
+ conditional: "U",
614
+ configuration: "U",
615
+ conflict: "U",
616
+ connection: "U",
617
+ constraint: "R",
618
+ constraints: "U",
619
+ content: "U",
620
+ continue: "U",
621
+ conversion: "U",
622
+ copy: "U",
623
+ cost: "U",
624
+ create: "R",
625
+ cross: "T",
626
+ csv: "U",
627
+ cube: "U",
628
+ current: "U",
629
+ current_catalog: "R",
630
+ current_date: "R",
631
+ current_role: "R",
632
+ current_schema: "T",
633
+ current_time: "R",
634
+ current_timestamp: "R",
635
+ current_user: "R",
636
+ cursor: "U",
637
+ cycle: "U",
638
+ data: "U",
639
+ database: "U",
640
+ day: "U",
641
+ deallocate: "U",
642
+ dec: "C",
643
+ decimal: "C",
644
+ declare: "U",
645
+ default: "R",
646
+ defaults: "U",
647
+ deferrable: "R",
648
+ deferred: "U",
649
+ definer: "U",
650
+ delete: "U",
651
+ delimiter: "U",
652
+ delimiters: "U",
653
+ depends: "U",
654
+ depth: "U",
655
+ desc: "R",
656
+ detach: "U",
657
+ dictionary: "U",
658
+ disable: "U",
659
+ discard: "U",
660
+ distinct: "R",
661
+ do: "R",
662
+ document: "U",
663
+ domain: "U",
664
+ double: "U",
665
+ drop: "U",
666
+ each: "U",
667
+ else: "R",
668
+ empty: "U",
669
+ enable: "U",
670
+ encoding: "U",
671
+ encrypted: "U",
672
+ end: "R",
673
+ enforced: "U",
674
+ enum: "U",
675
+ error: "U",
676
+ escape: "U",
677
+ event: "U",
678
+ except: "R",
679
+ exclude: "U",
680
+ excluding: "U",
681
+ exclusive: "U",
682
+ execute: "U",
683
+ exists: "C",
684
+ explain: "U",
685
+ expression: "U",
686
+ extension: "U",
687
+ external: "U",
688
+ extract: "C",
689
+ false: "R",
690
+ family: "U",
691
+ fetch: "R",
692
+ filter: "U",
693
+ finalize: "U",
694
+ first: "U",
695
+ float: "C",
696
+ following: "U",
697
+ for: "R",
698
+ force: "U",
699
+ foreign: "R",
700
+ format: "U",
701
+ forward: "U",
702
+ freeze: "T",
703
+ from: "R",
704
+ full: "T",
705
+ function: "U",
706
+ functions: "U",
707
+ generated: "U",
708
+ global: "U",
709
+ grant: "R",
710
+ granted: "U",
711
+ greatest: "C",
712
+ group: "R",
713
+ grouping: "C",
714
+ groups: "U",
715
+ handler: "U",
716
+ having: "R",
717
+ header: "U",
718
+ hold: "U",
719
+ hour: "U",
720
+ identity: "U",
721
+ if: "U",
722
+ ilike: "T",
723
+ immediate: "U",
724
+ immutable: "U",
725
+ implicit: "U",
726
+ import: "U",
727
+ in: "R",
728
+ include: "U",
729
+ including: "U",
730
+ increment: "U",
731
+ indent: "U",
732
+ index: "U",
733
+ indexes: "U",
734
+ inherit: "U",
735
+ inherits: "U",
736
+ initially: "R",
737
+ inline: "U",
738
+ inner: "T",
739
+ inout: "C",
740
+ input: "U",
741
+ insensitive: "U",
742
+ insert: "U",
743
+ instead: "U",
744
+ int: "C",
745
+ integer: "C",
746
+ intersect: "R",
747
+ interval: "C",
748
+ into: "R",
749
+ invoker: "U",
750
+ is: "T",
751
+ isnull: "T",
752
+ isolation: "U",
753
+ join: "T",
754
+ json: "C",
755
+ json_array: "C",
756
+ json_arrayagg: "C",
757
+ json_exists: "C",
758
+ json_object: "C",
759
+ json_objectagg: "C",
760
+ json_query: "C",
761
+ json_scalar: "C",
762
+ json_serialize: "C",
763
+ json_table: "C",
764
+ json_value: "C",
765
+ keep: "U",
766
+ key: "U",
767
+ keys: "U",
768
+ label: "U",
769
+ language: "U",
770
+ large: "U",
771
+ last: "U",
772
+ lateral: "R",
773
+ leading: "R",
774
+ leakproof: "U",
775
+ least: "C",
776
+ left: "T",
777
+ level: "U",
778
+ like: "T",
779
+ limit: "R",
780
+ listen: "U",
781
+ load: "U",
782
+ local: "U",
783
+ localtime: "R",
784
+ localtimestamp: "R",
785
+ location: "U",
786
+ lock: "U",
787
+ locked: "U",
788
+ logged: "U",
789
+ mapping: "U",
790
+ match: "U",
791
+ matched: "U",
792
+ materialized: "U",
793
+ maxvalue: "U",
794
+ merge: "U",
795
+ merge_action: "C",
796
+ method: "U",
797
+ minute: "U",
798
+ minvalue: "U",
799
+ mode: "U",
800
+ month: "U",
801
+ move: "U",
802
+ name: "U",
803
+ names: "U",
804
+ national: "C",
805
+ natural: "T",
806
+ nchar: "C",
807
+ nested: "U",
808
+ new: "U",
809
+ next: "U",
810
+ nfc: "U",
811
+ nfd: "U",
812
+ nfkc: "U",
813
+ nfkd: "U",
814
+ no: "U",
815
+ none: "C",
816
+ normalize: "C",
817
+ normalized: "U",
818
+ not: "R",
819
+ nothing: "U",
820
+ notify: "U",
821
+ notnull: "T",
822
+ nowait: "U",
823
+ null: "R",
824
+ nullif: "C",
825
+ nulls: "U",
826
+ numeric: "C",
827
+ object: "U",
828
+ objects: "U",
829
+ of: "U",
830
+ off: "U",
831
+ offset: "R",
832
+ oids: "U",
833
+ old: "U",
834
+ omit: "U",
835
+ on: "R",
836
+ only: "R",
837
+ operator: "U",
838
+ option: "U",
839
+ options: "U",
840
+ or: "R",
841
+ order: "R",
842
+ ordinality: "U",
843
+ others: "U",
844
+ out: "C",
845
+ outer: "T",
846
+ over: "U",
847
+ overlaps: "T",
848
+ overlay: "C",
849
+ overriding: "U",
850
+ owned: "U",
851
+ owner: "U",
852
+ parallel: "U",
853
+ parameter: "U",
854
+ parser: "U",
855
+ partial: "U",
856
+ partition: "U",
857
+ passing: "U",
858
+ password: "U",
859
+ path: "U",
860
+ period: "U",
861
+ placing: "R",
862
+ plan: "U",
863
+ plans: "U",
864
+ policy: "U",
865
+ position: "C",
866
+ preceding: "U",
867
+ precision: "C",
868
+ prepare: "U",
869
+ prepared: "U",
870
+ preserve: "U",
871
+ primary: "R",
872
+ prior: "U",
873
+ privileges: "U",
874
+ procedural: "U",
875
+ procedure: "U",
876
+ procedures: "U",
877
+ program: "U",
878
+ publication: "U",
879
+ quote: "U",
880
+ quotes: "U",
881
+ range: "U",
882
+ read: "U",
883
+ real: "C",
884
+ reassign: "U",
885
+ recursive: "U",
886
+ ref: "U",
887
+ references: "R",
888
+ referencing: "U",
889
+ refresh: "U",
890
+ reindex: "U",
891
+ relative: "U",
892
+ release: "U",
893
+ rename: "U",
894
+ repeatable: "U",
895
+ replace: "U",
896
+ replica: "U",
897
+ reset: "U",
898
+ restart: "U",
899
+ restrict: "U",
900
+ return: "U",
901
+ returning: "R",
902
+ returns: "U",
903
+ revoke: "U",
904
+ right: "T",
905
+ role: "U",
906
+ rollback: "U",
907
+ rollup: "U",
908
+ routine: "U",
909
+ routines: "U",
910
+ row: "C",
911
+ rows: "U",
912
+ rule: "U",
913
+ savepoint: "U",
914
+ scalar: "U",
915
+ schema: "U",
916
+ schemas: "U",
917
+ scroll: "U",
918
+ search: "U",
919
+ second: "U",
920
+ security: "U",
921
+ select: "R",
922
+ sequence: "U",
923
+ sequences: "U",
924
+ serializable: "U",
925
+ server: "U",
926
+ session: "U",
927
+ session_user: "R",
928
+ set: "U",
929
+ setof: "C",
930
+ sets: "U",
931
+ share: "U",
932
+ show: "U",
933
+ similar: "T",
934
+ simple: "U",
935
+ skip: "U",
936
+ smallint: "C",
937
+ snapshot: "U",
938
+ some: "R",
939
+ source: "U",
940
+ sql: "U",
941
+ stable: "U",
942
+ standalone: "U",
943
+ start: "U",
944
+ statement: "U",
945
+ statistics: "U",
946
+ stdin: "U",
947
+ stdout: "U",
948
+ storage: "U",
949
+ stored: "U",
950
+ strict: "U",
951
+ string: "U",
952
+ strip: "U",
953
+ subscription: "U",
954
+ substring: "C",
955
+ support: "U",
956
+ symmetric: "R",
957
+ sysid: "U",
958
+ system: "U",
959
+ system_user: "R",
960
+ table: "R",
961
+ tables: "U",
962
+ tablesample: "T",
963
+ tablespace: "U",
964
+ target: "U",
965
+ temp: "U",
966
+ template: "U",
967
+ temporary: "U",
968
+ text: "U",
969
+ then: "R",
970
+ ties: "U",
971
+ time: "C",
972
+ timestamp: "C",
973
+ to: "R",
974
+ trailing: "R",
975
+ transaction: "U",
976
+ transform: "U",
977
+ treat: "C",
978
+ trigger: "U",
979
+ trim: "C",
980
+ true: "R",
981
+ truncate: "U",
982
+ trusted: "U",
983
+ type: "U",
984
+ types: "U",
985
+ uescape: "U",
986
+ unbounded: "U",
987
+ uncommitted: "U",
988
+ unconditional: "U",
989
+ unencrypted: "U",
990
+ union: "R",
991
+ unique: "R",
992
+ unknown: "U",
993
+ unlisten: "U",
994
+ unlogged: "U",
995
+ until: "U",
996
+ update: "U",
997
+ user: "R",
998
+ using: "R",
999
+ vacuum: "U",
1000
+ valid: "U",
1001
+ validate: "U",
1002
+ validator: "U",
1003
+ value: "U",
1004
+ values: "C",
1005
+ varchar: "C",
1006
+ variadic: "R",
1007
+ varying: "U",
1008
+ verbose: "T",
1009
+ version: "U",
1010
+ view: "U",
1011
+ views: "U",
1012
+ virtual: "U",
1013
+ volatile: "U",
1014
+ when: "R",
1015
+ where: "R",
1016
+ whitespace: "U",
1017
+ window: "R",
1018
+ with: "R",
1019
+ within: "U",
1020
+ without: "U",
1021
+ work: "U",
1022
+ wrapper: "U",
1023
+ write: "U",
1024
+ xml: "U",
1025
+ xmlattributes: "C",
1026
+ xmlconcat: "C",
1027
+ xmlelement: "C",
1028
+ xmlexists: "C",
1029
+ xmlforest: "C",
1030
+ xmlnamespaces: "C",
1031
+ xmlparse: "C",
1032
+ xmlpi: "C",
1033
+ xmlroot: "C",
1034
+ xmlserialize: "C",
1035
+ xmltable: "C",
1036
+ year: "U",
1037
+ yes: "U",
1038
+ zone: "U",
1039
+ };