1
0

pageinspect.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. // Code generated by sqlc-pg-gen. DO NOT EDIT.
  2. package contrib
  3. import (
  4. "github.com/sqlc-dev/sqlc/internal/sql/ast"
  5. "github.com/sqlc-dev/sqlc/internal/sql/catalog"
  6. )
  7. var funcsPageinspect = []*catalog.Function{
  8. {
  9. Name: "brin_metapage_info",
  10. Args: []*catalog.Argument{
  11. {
  12. Name: "page",
  13. Type: &ast.TypeName{Name: "bytea"},
  14. },
  15. },
  16. ReturnType: &ast.TypeName{Name: "record"},
  17. },
  18. {
  19. Name: "brin_page_items",
  20. Args: []*catalog.Argument{
  21. {
  22. Name: "page",
  23. Type: &ast.TypeName{Name: "bytea"},
  24. },
  25. {
  26. Name: "index_oid",
  27. Type: &ast.TypeName{Name: "regclass"},
  28. },
  29. },
  30. ReturnType: &ast.TypeName{Name: "record"},
  31. },
  32. {
  33. Name: "brin_page_type",
  34. Args: []*catalog.Argument{
  35. {
  36. Name: "page",
  37. Type: &ast.TypeName{Name: "bytea"},
  38. },
  39. },
  40. ReturnType: &ast.TypeName{Name: "text"},
  41. },
  42. {
  43. Name: "brin_revmap_data",
  44. Args: []*catalog.Argument{
  45. {
  46. Name: "page",
  47. Type: &ast.TypeName{Name: "bytea"},
  48. },
  49. },
  50. ReturnType: &ast.TypeName{Name: "tid"},
  51. },
  52. {
  53. Name: "bt_metap",
  54. Args: []*catalog.Argument{
  55. {
  56. Name: "relname",
  57. Type: &ast.TypeName{Name: "text"},
  58. },
  59. },
  60. ReturnType: &ast.TypeName{Name: "record"},
  61. },
  62. {
  63. Name: "bt_page_items",
  64. Args: []*catalog.Argument{
  65. {
  66. Name: "page",
  67. Type: &ast.TypeName{Name: "bytea"},
  68. },
  69. },
  70. ReturnType: &ast.TypeName{Name: "record"},
  71. },
  72. {
  73. Name: "bt_page_items",
  74. Args: []*catalog.Argument{
  75. {
  76. Name: "relname",
  77. Type: &ast.TypeName{Name: "text"},
  78. },
  79. {
  80. Name: "blkno",
  81. Type: &ast.TypeName{Name: "bigint"},
  82. },
  83. },
  84. ReturnType: &ast.TypeName{Name: "record"},
  85. },
  86. {
  87. Name: "bt_page_stats",
  88. Args: []*catalog.Argument{
  89. {
  90. Name: "relname",
  91. Type: &ast.TypeName{Name: "text"},
  92. },
  93. {
  94. Name: "blkno",
  95. Type: &ast.TypeName{Name: "bigint"},
  96. },
  97. },
  98. ReturnType: &ast.TypeName{Name: "record"},
  99. },
  100. {
  101. Name: "fsm_page_contents",
  102. Args: []*catalog.Argument{
  103. {
  104. Name: "page",
  105. Type: &ast.TypeName{Name: "bytea"},
  106. },
  107. },
  108. ReturnType: &ast.TypeName{Name: "text"},
  109. },
  110. {
  111. Name: "get_raw_page",
  112. Args: []*catalog.Argument{
  113. {
  114. Type: &ast.TypeName{Name: "text"},
  115. },
  116. {
  117. Type: &ast.TypeName{Name: "bigint"},
  118. },
  119. },
  120. ReturnType: &ast.TypeName{Name: "bytea"},
  121. },
  122. {
  123. Name: "get_raw_page",
  124. Args: []*catalog.Argument{
  125. {
  126. Type: &ast.TypeName{Name: "text"},
  127. },
  128. {
  129. Type: &ast.TypeName{Name: "text"},
  130. },
  131. {
  132. Type: &ast.TypeName{Name: "bigint"},
  133. },
  134. },
  135. ReturnType: &ast.TypeName{Name: "bytea"},
  136. },
  137. {
  138. Name: "gin_leafpage_items",
  139. Args: []*catalog.Argument{
  140. {
  141. Name: "page",
  142. Type: &ast.TypeName{Name: "bytea"},
  143. },
  144. },
  145. ReturnType: &ast.TypeName{Name: "record"},
  146. },
  147. {
  148. Name: "gin_metapage_info",
  149. Args: []*catalog.Argument{
  150. {
  151. Name: "page",
  152. Type: &ast.TypeName{Name: "bytea"},
  153. },
  154. },
  155. ReturnType: &ast.TypeName{Name: "record"},
  156. },
  157. {
  158. Name: "gin_page_opaque_info",
  159. Args: []*catalog.Argument{
  160. {
  161. Name: "page",
  162. Type: &ast.TypeName{Name: "bytea"},
  163. },
  164. },
  165. ReturnType: &ast.TypeName{Name: "record"},
  166. },
  167. {
  168. Name: "gist_page_items",
  169. Args: []*catalog.Argument{
  170. {
  171. Name: "page",
  172. Type: &ast.TypeName{Name: "bytea"},
  173. },
  174. {
  175. Name: "index_oid",
  176. Type: &ast.TypeName{Name: "regclass"},
  177. },
  178. },
  179. ReturnType: &ast.TypeName{Name: "record"},
  180. },
  181. {
  182. Name: "gist_page_items_bytea",
  183. Args: []*catalog.Argument{
  184. {
  185. Name: "page",
  186. Type: &ast.TypeName{Name: "bytea"},
  187. },
  188. },
  189. ReturnType: &ast.TypeName{Name: "record"},
  190. },
  191. {
  192. Name: "gist_page_opaque_info",
  193. Args: []*catalog.Argument{
  194. {
  195. Name: "page",
  196. Type: &ast.TypeName{Name: "bytea"},
  197. },
  198. },
  199. ReturnType: &ast.TypeName{Name: "record"},
  200. },
  201. {
  202. Name: "hash_bitmap_info",
  203. Args: []*catalog.Argument{
  204. {
  205. Name: "index_oid",
  206. Type: &ast.TypeName{Name: "regclass"},
  207. },
  208. {
  209. Name: "blkno",
  210. Type: &ast.TypeName{Name: "bigint"},
  211. },
  212. },
  213. ReturnType: &ast.TypeName{Name: "record"},
  214. },
  215. {
  216. Name: "hash_metapage_info",
  217. Args: []*catalog.Argument{
  218. {
  219. Name: "page",
  220. Type: &ast.TypeName{Name: "bytea"},
  221. },
  222. },
  223. ReturnType: &ast.TypeName{Name: "record"},
  224. },
  225. {
  226. Name: "hash_page_items",
  227. Args: []*catalog.Argument{
  228. {
  229. Name: "page",
  230. Type: &ast.TypeName{Name: "bytea"},
  231. },
  232. },
  233. ReturnType: &ast.TypeName{Name: "record"},
  234. },
  235. {
  236. Name: "hash_page_stats",
  237. Args: []*catalog.Argument{
  238. {
  239. Name: "page",
  240. Type: &ast.TypeName{Name: "bytea"},
  241. },
  242. },
  243. ReturnType: &ast.TypeName{Name: "record"},
  244. },
  245. {
  246. Name: "hash_page_type",
  247. Args: []*catalog.Argument{
  248. {
  249. Name: "page",
  250. Type: &ast.TypeName{Name: "bytea"},
  251. },
  252. },
  253. ReturnType: &ast.TypeName{Name: "text"},
  254. },
  255. {
  256. Name: "heap_page_item_attrs",
  257. Args: []*catalog.Argument{
  258. {
  259. Name: "page",
  260. Type: &ast.TypeName{Name: "bytea"},
  261. },
  262. {
  263. Name: "rel_oid",
  264. Type: &ast.TypeName{Name: "regclass"},
  265. },
  266. },
  267. ReturnType: &ast.TypeName{Name: "record"},
  268. },
  269. {
  270. Name: "heap_page_item_attrs",
  271. Args: []*catalog.Argument{
  272. {
  273. Name: "page",
  274. Type: &ast.TypeName{Name: "bytea"},
  275. },
  276. {
  277. Name: "rel_oid",
  278. Type: &ast.TypeName{Name: "regclass"},
  279. },
  280. {
  281. Name: "do_detoast",
  282. Type: &ast.TypeName{Name: "boolean"},
  283. },
  284. },
  285. ReturnType: &ast.TypeName{Name: "record"},
  286. },
  287. {
  288. Name: "heap_page_items",
  289. Args: []*catalog.Argument{
  290. {
  291. Name: "page",
  292. Type: &ast.TypeName{Name: "bytea"},
  293. },
  294. },
  295. ReturnType: &ast.TypeName{Name: "record"},
  296. },
  297. {
  298. Name: "heap_tuple_infomask_flags",
  299. Args: []*catalog.Argument{
  300. {
  301. Name: "t_infomask",
  302. Type: &ast.TypeName{Name: "integer"},
  303. },
  304. {
  305. Name: "t_infomask2",
  306. Type: &ast.TypeName{Name: "integer"},
  307. },
  308. },
  309. ReturnType: &ast.TypeName{Name: "record"},
  310. },
  311. {
  312. Name: "page_checksum",
  313. Args: []*catalog.Argument{
  314. {
  315. Name: "page",
  316. Type: &ast.TypeName{Name: "bytea"},
  317. },
  318. {
  319. Name: "blkno",
  320. Type: &ast.TypeName{Name: "bigint"},
  321. },
  322. },
  323. ReturnType: &ast.TypeName{Name: "smallint"},
  324. },
  325. {
  326. Name: "page_header",
  327. Args: []*catalog.Argument{
  328. {
  329. Name: "page",
  330. Type: &ast.TypeName{Name: "bytea"},
  331. },
  332. },
  333. ReturnType: &ast.TypeName{Name: "record"},
  334. },
  335. {
  336. Name: "tuple_data_split",
  337. Args: []*catalog.Argument{
  338. {
  339. Name: "rel_oid",
  340. Type: &ast.TypeName{Name: "oid"},
  341. },
  342. {
  343. Name: "t_data",
  344. Type: &ast.TypeName{Name: "bytea"},
  345. },
  346. {
  347. Name: "t_infomask",
  348. Type: &ast.TypeName{Name: "integer"},
  349. },
  350. {
  351. Name: "t_infomask2",
  352. Type: &ast.TypeName{Name: "integer"},
  353. },
  354. {
  355. Name: "t_bits",
  356. Type: &ast.TypeName{Name: "text"},
  357. },
  358. },
  359. ReturnType: &ast.TypeName{Name: "bytea[]"},
  360. },
  361. {
  362. Name: "tuple_data_split",
  363. Args: []*catalog.Argument{
  364. {
  365. Name: "rel_oid",
  366. Type: &ast.TypeName{Name: "oid"},
  367. },
  368. {
  369. Name: "t_data",
  370. Type: &ast.TypeName{Name: "bytea"},
  371. },
  372. {
  373. Name: "t_infomask",
  374. Type: &ast.TypeName{Name: "integer"},
  375. },
  376. {
  377. Name: "t_infomask2",
  378. Type: &ast.TypeName{Name: "integer"},
  379. },
  380. {
  381. Name: "t_bits",
  382. Type: &ast.TypeName{Name: "text"},
  383. },
  384. {
  385. Name: "do_detoast",
  386. Type: &ast.TypeName{Name: "boolean"},
  387. },
  388. },
  389. ReturnType: &ast.TypeName{Name: "bytea[]"},
  390. },
  391. }
  392. func Pageinspect() *catalog.Schema {
  393. s := &catalog.Schema{Name: "pg_catalog"}
  394. s.Funcs = funcsPageinspect
  395. return s
  396. }