information_schema.go 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111
  1. // Code generated by sqlc-pg-gen. DO NOT EDIT.
  2. package postgresql
  3. import (
  4. "github.com/sqlc-dev/sqlc/internal/sql/ast"
  5. "github.com/sqlc-dev/sqlc/internal/sql/catalog"
  6. )
  7. var funcsgenInformationSchema = []*catalog.Function{}
  8. func genInformationSchema() *catalog.Schema {
  9. s := &catalog.Schema{Name: "information_schema"}
  10. s.Funcs = funcsgenInformationSchema
  11. s.Tables = []*catalog.Table{
  12. {
  13. Rel: &ast.TableName{
  14. Catalog: "pg_catalog",
  15. Schema: "information_schema",
  16. Name: "_pg_foreign_data_wrappers",
  17. },
  18. Columns: []*catalog.Column{
  19. {
  20. Name: "oid",
  21. Type: ast.TypeName{Name: "oid"},
  22. Length: toPointer(4),
  23. },
  24. {
  25. Name: "fdwowner",
  26. Type: ast.TypeName{Name: "oid"},
  27. Length: toPointer(4),
  28. },
  29. {
  30. Name: "fdwoptions",
  31. Type: ast.TypeName{Name: "_text"},
  32. IsArray: true,
  33. },
  34. {
  35. Name: "foreign_data_wrapper_catalog",
  36. Type: ast.TypeName{Name: "sql_identifier"},
  37. Length: toPointer(64),
  38. },
  39. {
  40. Name: "foreign_data_wrapper_name",
  41. Type: ast.TypeName{Name: "sql_identifier"},
  42. Length: toPointer(64),
  43. },
  44. {
  45. Name: "authorization_identifier",
  46. Type: ast.TypeName{Name: "sql_identifier"},
  47. Length: toPointer(64),
  48. },
  49. {
  50. Name: "foreign_data_wrapper_language",
  51. Type: ast.TypeName{Name: "character_data"},
  52. },
  53. },
  54. },
  55. {
  56. Rel: &ast.TableName{
  57. Catalog: "pg_catalog",
  58. Schema: "information_schema",
  59. Name: "_pg_foreign_servers",
  60. },
  61. Columns: []*catalog.Column{
  62. {
  63. Name: "oid",
  64. Type: ast.TypeName{Name: "oid"},
  65. Length: toPointer(4),
  66. },
  67. {
  68. Name: "srvoptions",
  69. Type: ast.TypeName{Name: "_text"},
  70. IsArray: true,
  71. },
  72. {
  73. Name: "foreign_server_catalog",
  74. Type: ast.TypeName{Name: "sql_identifier"},
  75. Length: toPointer(64),
  76. },
  77. {
  78. Name: "foreign_server_name",
  79. Type: ast.TypeName{Name: "sql_identifier"},
  80. Length: toPointer(64),
  81. },
  82. {
  83. Name: "foreign_data_wrapper_catalog",
  84. Type: ast.TypeName{Name: "sql_identifier"},
  85. Length: toPointer(64),
  86. },
  87. {
  88. Name: "foreign_data_wrapper_name",
  89. Type: ast.TypeName{Name: "sql_identifier"},
  90. Length: toPointer(64),
  91. },
  92. {
  93. Name: "foreign_server_type",
  94. Type: ast.TypeName{Name: "character_data"},
  95. },
  96. {
  97. Name: "foreign_server_version",
  98. Type: ast.TypeName{Name: "character_data"},
  99. },
  100. {
  101. Name: "authorization_identifier",
  102. Type: ast.TypeName{Name: "sql_identifier"},
  103. Length: toPointer(64),
  104. },
  105. },
  106. },
  107. {
  108. Rel: &ast.TableName{
  109. Catalog: "pg_catalog",
  110. Schema: "information_schema",
  111. Name: "_pg_foreign_table_columns",
  112. },
  113. Columns: []*catalog.Column{
  114. {
  115. Name: "nspname",
  116. Type: ast.TypeName{Name: "name"},
  117. Length: toPointer(64),
  118. },
  119. {
  120. Name: "relname",
  121. Type: ast.TypeName{Name: "name"},
  122. Length: toPointer(64),
  123. },
  124. {
  125. Name: "attname",
  126. Type: ast.TypeName{Name: "name"},
  127. Length: toPointer(64),
  128. },
  129. {
  130. Name: "attfdwoptions",
  131. Type: ast.TypeName{Name: "_text"},
  132. IsArray: true,
  133. },
  134. },
  135. },
  136. {
  137. Rel: &ast.TableName{
  138. Catalog: "pg_catalog",
  139. Schema: "information_schema",
  140. Name: "_pg_foreign_tables",
  141. },
  142. Columns: []*catalog.Column{
  143. {
  144. Name: "foreign_table_catalog",
  145. Type: ast.TypeName{Name: "sql_identifier"},
  146. Length: toPointer(64),
  147. },
  148. {
  149. Name: "foreign_table_schema",
  150. Type: ast.TypeName{Name: "sql_identifier"},
  151. Length: toPointer(64),
  152. },
  153. {
  154. Name: "foreign_table_name",
  155. Type: ast.TypeName{Name: "sql_identifier"},
  156. Length: toPointer(64),
  157. },
  158. {
  159. Name: "ftoptions",
  160. Type: ast.TypeName{Name: "_text"},
  161. IsArray: true,
  162. },
  163. {
  164. Name: "foreign_server_catalog",
  165. Type: ast.TypeName{Name: "sql_identifier"},
  166. Length: toPointer(64),
  167. },
  168. {
  169. Name: "foreign_server_name",
  170. Type: ast.TypeName{Name: "sql_identifier"},
  171. Length: toPointer(64),
  172. },
  173. {
  174. Name: "authorization_identifier",
  175. Type: ast.TypeName{Name: "sql_identifier"},
  176. Length: toPointer(64),
  177. },
  178. },
  179. },
  180. {
  181. Rel: &ast.TableName{
  182. Catalog: "pg_catalog",
  183. Schema: "information_schema",
  184. Name: "_pg_user_mappings",
  185. },
  186. Columns: []*catalog.Column{
  187. {
  188. Name: "oid",
  189. Type: ast.TypeName{Name: "oid"},
  190. Length: toPointer(4),
  191. },
  192. {
  193. Name: "umoptions",
  194. Type: ast.TypeName{Name: "_text"},
  195. IsArray: true,
  196. },
  197. {
  198. Name: "umuser",
  199. Type: ast.TypeName{Name: "oid"},
  200. Length: toPointer(4),
  201. },
  202. {
  203. Name: "authorization_identifier",
  204. Type: ast.TypeName{Name: "sql_identifier"},
  205. Length: toPointer(64),
  206. },
  207. {
  208. Name: "foreign_server_catalog",
  209. Type: ast.TypeName{Name: "sql_identifier"},
  210. Length: toPointer(64),
  211. },
  212. {
  213. Name: "foreign_server_name",
  214. Type: ast.TypeName{Name: "sql_identifier"},
  215. Length: toPointer(64),
  216. },
  217. {
  218. Name: "srvowner",
  219. Type: ast.TypeName{Name: "sql_identifier"},
  220. Length: toPointer(64),
  221. },
  222. },
  223. },
  224. {
  225. Rel: &ast.TableName{
  226. Catalog: "pg_catalog",
  227. Schema: "information_schema",
  228. Name: "administrable_role_authorizations",
  229. },
  230. Columns: []*catalog.Column{
  231. {
  232. Name: "grantee",
  233. Type: ast.TypeName{Name: "sql_identifier"},
  234. Length: toPointer(64),
  235. },
  236. {
  237. Name: "role_name",
  238. Type: ast.TypeName{Name: "sql_identifier"},
  239. Length: toPointer(64),
  240. },
  241. {
  242. Name: "is_grantable",
  243. Type: ast.TypeName{Name: "yes_or_no"},
  244. },
  245. },
  246. },
  247. {
  248. Rel: &ast.TableName{
  249. Catalog: "pg_catalog",
  250. Schema: "information_schema",
  251. Name: "applicable_roles",
  252. },
  253. Columns: []*catalog.Column{
  254. {
  255. Name: "grantee",
  256. Type: ast.TypeName{Name: "sql_identifier"},
  257. Length: toPointer(64),
  258. },
  259. {
  260. Name: "role_name",
  261. Type: ast.TypeName{Name: "sql_identifier"},
  262. Length: toPointer(64),
  263. },
  264. {
  265. Name: "is_grantable",
  266. Type: ast.TypeName{Name: "yes_or_no"},
  267. },
  268. },
  269. },
  270. {
  271. Rel: &ast.TableName{
  272. Catalog: "pg_catalog",
  273. Schema: "information_schema",
  274. Name: "attributes",
  275. },
  276. Columns: []*catalog.Column{
  277. {
  278. Name: "udt_catalog",
  279. Type: ast.TypeName{Name: "sql_identifier"},
  280. Length: toPointer(64),
  281. },
  282. {
  283. Name: "udt_schema",
  284. Type: ast.TypeName{Name: "sql_identifier"},
  285. Length: toPointer(64),
  286. },
  287. {
  288. Name: "udt_name",
  289. Type: ast.TypeName{Name: "sql_identifier"},
  290. Length: toPointer(64),
  291. },
  292. {
  293. Name: "attribute_name",
  294. Type: ast.TypeName{Name: "sql_identifier"},
  295. Length: toPointer(64),
  296. },
  297. {
  298. Name: "ordinal_position",
  299. Type: ast.TypeName{Name: "cardinal_number"},
  300. Length: toPointer(4),
  301. },
  302. {
  303. Name: "attribute_default",
  304. Type: ast.TypeName{Name: "character_data"},
  305. },
  306. {
  307. Name: "is_nullable",
  308. Type: ast.TypeName{Name: "yes_or_no"},
  309. },
  310. {
  311. Name: "data_type",
  312. Type: ast.TypeName{Name: "character_data"},
  313. },
  314. {
  315. Name: "character_maximum_length",
  316. Type: ast.TypeName{Name: "cardinal_number"},
  317. Length: toPointer(4),
  318. },
  319. {
  320. Name: "character_octet_length",
  321. Type: ast.TypeName{Name: "cardinal_number"},
  322. Length: toPointer(4),
  323. },
  324. {
  325. Name: "character_set_catalog",
  326. Type: ast.TypeName{Name: "sql_identifier"},
  327. Length: toPointer(64),
  328. },
  329. {
  330. Name: "character_set_schema",
  331. Type: ast.TypeName{Name: "sql_identifier"},
  332. Length: toPointer(64),
  333. },
  334. {
  335. Name: "character_set_name",
  336. Type: ast.TypeName{Name: "sql_identifier"},
  337. Length: toPointer(64),
  338. },
  339. {
  340. Name: "collation_catalog",
  341. Type: ast.TypeName{Name: "sql_identifier"},
  342. Length: toPointer(64),
  343. },
  344. {
  345. Name: "collation_schema",
  346. Type: ast.TypeName{Name: "sql_identifier"},
  347. Length: toPointer(64),
  348. },
  349. {
  350. Name: "collation_name",
  351. Type: ast.TypeName{Name: "sql_identifier"},
  352. Length: toPointer(64),
  353. },
  354. {
  355. Name: "numeric_precision",
  356. Type: ast.TypeName{Name: "cardinal_number"},
  357. Length: toPointer(4),
  358. },
  359. {
  360. Name: "numeric_precision_radix",
  361. Type: ast.TypeName{Name: "cardinal_number"},
  362. Length: toPointer(4),
  363. },
  364. {
  365. Name: "numeric_scale",
  366. Type: ast.TypeName{Name: "cardinal_number"},
  367. Length: toPointer(4),
  368. },
  369. {
  370. Name: "datetime_precision",
  371. Type: ast.TypeName{Name: "cardinal_number"},
  372. Length: toPointer(4),
  373. },
  374. {
  375. Name: "interval_type",
  376. Type: ast.TypeName{Name: "character_data"},
  377. },
  378. {
  379. Name: "interval_precision",
  380. Type: ast.TypeName{Name: "cardinal_number"},
  381. Length: toPointer(4),
  382. },
  383. {
  384. Name: "attribute_udt_catalog",
  385. Type: ast.TypeName{Name: "sql_identifier"},
  386. Length: toPointer(64),
  387. },
  388. {
  389. Name: "attribute_udt_schema",
  390. Type: ast.TypeName{Name: "sql_identifier"},
  391. Length: toPointer(64),
  392. },
  393. {
  394. Name: "attribute_udt_name",
  395. Type: ast.TypeName{Name: "sql_identifier"},
  396. Length: toPointer(64),
  397. },
  398. {
  399. Name: "scope_catalog",
  400. Type: ast.TypeName{Name: "sql_identifier"},
  401. Length: toPointer(64),
  402. },
  403. {
  404. Name: "scope_schema",
  405. Type: ast.TypeName{Name: "sql_identifier"},
  406. Length: toPointer(64),
  407. },
  408. {
  409. Name: "scope_name",
  410. Type: ast.TypeName{Name: "sql_identifier"},
  411. Length: toPointer(64),
  412. },
  413. {
  414. Name: "maximum_cardinality",
  415. Type: ast.TypeName{Name: "cardinal_number"},
  416. Length: toPointer(4),
  417. },
  418. {
  419. Name: "dtd_identifier",
  420. Type: ast.TypeName{Name: "sql_identifier"},
  421. Length: toPointer(64),
  422. },
  423. {
  424. Name: "is_derived_reference_attribute",
  425. Type: ast.TypeName{Name: "yes_or_no"},
  426. },
  427. },
  428. },
  429. {
  430. Rel: &ast.TableName{
  431. Catalog: "pg_catalog",
  432. Schema: "information_schema",
  433. Name: "character_sets",
  434. },
  435. Columns: []*catalog.Column{
  436. {
  437. Name: "character_set_catalog",
  438. Type: ast.TypeName{Name: "sql_identifier"},
  439. Length: toPointer(64),
  440. },
  441. {
  442. Name: "character_set_schema",
  443. Type: ast.TypeName{Name: "sql_identifier"},
  444. Length: toPointer(64),
  445. },
  446. {
  447. Name: "character_set_name",
  448. Type: ast.TypeName{Name: "sql_identifier"},
  449. Length: toPointer(64),
  450. },
  451. {
  452. Name: "character_repertoire",
  453. Type: ast.TypeName{Name: "sql_identifier"},
  454. Length: toPointer(64),
  455. },
  456. {
  457. Name: "form_of_use",
  458. Type: ast.TypeName{Name: "sql_identifier"},
  459. Length: toPointer(64),
  460. },
  461. {
  462. Name: "default_collate_catalog",
  463. Type: ast.TypeName{Name: "sql_identifier"},
  464. Length: toPointer(64),
  465. },
  466. {
  467. Name: "default_collate_schema",
  468. Type: ast.TypeName{Name: "sql_identifier"},
  469. Length: toPointer(64),
  470. },
  471. {
  472. Name: "default_collate_name",
  473. Type: ast.TypeName{Name: "sql_identifier"},
  474. Length: toPointer(64),
  475. },
  476. },
  477. },
  478. {
  479. Rel: &ast.TableName{
  480. Catalog: "pg_catalog",
  481. Schema: "information_schema",
  482. Name: "check_constraint_routine_usage",
  483. },
  484. Columns: []*catalog.Column{
  485. {
  486. Name: "constraint_catalog",
  487. Type: ast.TypeName{Name: "sql_identifier"},
  488. Length: toPointer(64),
  489. },
  490. {
  491. Name: "constraint_schema",
  492. Type: ast.TypeName{Name: "sql_identifier"},
  493. Length: toPointer(64),
  494. },
  495. {
  496. Name: "constraint_name",
  497. Type: ast.TypeName{Name: "sql_identifier"},
  498. Length: toPointer(64),
  499. },
  500. {
  501. Name: "specific_catalog",
  502. Type: ast.TypeName{Name: "sql_identifier"},
  503. Length: toPointer(64),
  504. },
  505. {
  506. Name: "specific_schema",
  507. Type: ast.TypeName{Name: "sql_identifier"},
  508. Length: toPointer(64),
  509. },
  510. {
  511. Name: "specific_name",
  512. Type: ast.TypeName{Name: "sql_identifier"},
  513. Length: toPointer(64),
  514. },
  515. },
  516. },
  517. {
  518. Rel: &ast.TableName{
  519. Catalog: "pg_catalog",
  520. Schema: "information_schema",
  521. Name: "check_constraints",
  522. },
  523. Columns: []*catalog.Column{
  524. {
  525. Name: "constraint_catalog",
  526. Type: ast.TypeName{Name: "sql_identifier"},
  527. Length: toPointer(64),
  528. },
  529. {
  530. Name: "constraint_schema",
  531. Type: ast.TypeName{Name: "sql_identifier"},
  532. Length: toPointer(64),
  533. },
  534. {
  535. Name: "constraint_name",
  536. Type: ast.TypeName{Name: "sql_identifier"},
  537. Length: toPointer(64),
  538. },
  539. {
  540. Name: "check_clause",
  541. Type: ast.TypeName{Name: "character_data"},
  542. },
  543. },
  544. },
  545. {
  546. Rel: &ast.TableName{
  547. Catalog: "pg_catalog",
  548. Schema: "information_schema",
  549. Name: "collation_character_set_applicability",
  550. },
  551. Columns: []*catalog.Column{
  552. {
  553. Name: "collation_catalog",
  554. Type: ast.TypeName{Name: "sql_identifier"},
  555. Length: toPointer(64),
  556. },
  557. {
  558. Name: "collation_schema",
  559. Type: ast.TypeName{Name: "sql_identifier"},
  560. Length: toPointer(64),
  561. },
  562. {
  563. Name: "collation_name",
  564. Type: ast.TypeName{Name: "sql_identifier"},
  565. Length: toPointer(64),
  566. },
  567. {
  568. Name: "character_set_catalog",
  569. Type: ast.TypeName{Name: "sql_identifier"},
  570. Length: toPointer(64),
  571. },
  572. {
  573. Name: "character_set_schema",
  574. Type: ast.TypeName{Name: "sql_identifier"},
  575. Length: toPointer(64),
  576. },
  577. {
  578. Name: "character_set_name",
  579. Type: ast.TypeName{Name: "sql_identifier"},
  580. Length: toPointer(64),
  581. },
  582. },
  583. },
  584. {
  585. Rel: &ast.TableName{
  586. Catalog: "pg_catalog",
  587. Schema: "information_schema",
  588. Name: "collations",
  589. },
  590. Columns: []*catalog.Column{
  591. {
  592. Name: "collation_catalog",
  593. Type: ast.TypeName{Name: "sql_identifier"},
  594. Length: toPointer(64),
  595. },
  596. {
  597. Name: "collation_schema",
  598. Type: ast.TypeName{Name: "sql_identifier"},
  599. Length: toPointer(64),
  600. },
  601. {
  602. Name: "collation_name",
  603. Type: ast.TypeName{Name: "sql_identifier"},
  604. Length: toPointer(64),
  605. },
  606. {
  607. Name: "pad_attribute",
  608. Type: ast.TypeName{Name: "character_data"},
  609. },
  610. },
  611. },
  612. {
  613. Rel: &ast.TableName{
  614. Catalog: "pg_catalog",
  615. Schema: "information_schema",
  616. Name: "column_column_usage",
  617. },
  618. Columns: []*catalog.Column{
  619. {
  620. Name: "table_catalog",
  621. Type: ast.TypeName{Name: "sql_identifier"},
  622. Length: toPointer(64),
  623. },
  624. {
  625. Name: "table_schema",
  626. Type: ast.TypeName{Name: "sql_identifier"},
  627. Length: toPointer(64),
  628. },
  629. {
  630. Name: "table_name",
  631. Type: ast.TypeName{Name: "sql_identifier"},
  632. Length: toPointer(64),
  633. },
  634. {
  635. Name: "column_name",
  636. Type: ast.TypeName{Name: "sql_identifier"},
  637. Length: toPointer(64),
  638. },
  639. {
  640. Name: "dependent_column",
  641. Type: ast.TypeName{Name: "sql_identifier"},
  642. Length: toPointer(64),
  643. },
  644. },
  645. },
  646. {
  647. Rel: &ast.TableName{
  648. Catalog: "pg_catalog",
  649. Schema: "information_schema",
  650. Name: "column_domain_usage",
  651. },
  652. Columns: []*catalog.Column{
  653. {
  654. Name: "domain_catalog",
  655. Type: ast.TypeName{Name: "sql_identifier"},
  656. Length: toPointer(64),
  657. },
  658. {
  659. Name: "domain_schema",
  660. Type: ast.TypeName{Name: "sql_identifier"},
  661. Length: toPointer(64),
  662. },
  663. {
  664. Name: "domain_name",
  665. Type: ast.TypeName{Name: "sql_identifier"},
  666. Length: toPointer(64),
  667. },
  668. {
  669. Name: "table_catalog",
  670. Type: ast.TypeName{Name: "sql_identifier"},
  671. Length: toPointer(64),
  672. },
  673. {
  674. Name: "table_schema",
  675. Type: ast.TypeName{Name: "sql_identifier"},
  676. Length: toPointer(64),
  677. },
  678. {
  679. Name: "table_name",
  680. Type: ast.TypeName{Name: "sql_identifier"},
  681. Length: toPointer(64),
  682. },
  683. {
  684. Name: "column_name",
  685. Type: ast.TypeName{Name: "sql_identifier"},
  686. Length: toPointer(64),
  687. },
  688. },
  689. },
  690. {
  691. Rel: &ast.TableName{
  692. Catalog: "pg_catalog",
  693. Schema: "information_schema",
  694. Name: "column_options",
  695. },
  696. Columns: []*catalog.Column{
  697. {
  698. Name: "table_catalog",
  699. Type: ast.TypeName{Name: "sql_identifier"},
  700. Length: toPointer(64),
  701. },
  702. {
  703. Name: "table_schema",
  704. Type: ast.TypeName{Name: "sql_identifier"},
  705. Length: toPointer(64),
  706. },
  707. {
  708. Name: "table_name",
  709. Type: ast.TypeName{Name: "sql_identifier"},
  710. Length: toPointer(64),
  711. },
  712. {
  713. Name: "column_name",
  714. Type: ast.TypeName{Name: "sql_identifier"},
  715. Length: toPointer(64),
  716. },
  717. {
  718. Name: "option_name",
  719. Type: ast.TypeName{Name: "sql_identifier"},
  720. Length: toPointer(64),
  721. },
  722. {
  723. Name: "option_value",
  724. Type: ast.TypeName{Name: "character_data"},
  725. },
  726. },
  727. },
  728. {
  729. Rel: &ast.TableName{
  730. Catalog: "pg_catalog",
  731. Schema: "information_schema",
  732. Name: "column_privileges",
  733. },
  734. Columns: []*catalog.Column{
  735. {
  736. Name: "grantor",
  737. Type: ast.TypeName{Name: "sql_identifier"},
  738. Length: toPointer(64),
  739. },
  740. {
  741. Name: "grantee",
  742. Type: ast.TypeName{Name: "sql_identifier"},
  743. Length: toPointer(64),
  744. },
  745. {
  746. Name: "table_catalog",
  747. Type: ast.TypeName{Name: "sql_identifier"},
  748. Length: toPointer(64),
  749. },
  750. {
  751. Name: "table_schema",
  752. Type: ast.TypeName{Name: "sql_identifier"},
  753. Length: toPointer(64),
  754. },
  755. {
  756. Name: "table_name",
  757. Type: ast.TypeName{Name: "sql_identifier"},
  758. Length: toPointer(64),
  759. },
  760. {
  761. Name: "column_name",
  762. Type: ast.TypeName{Name: "sql_identifier"},
  763. Length: toPointer(64),
  764. },
  765. {
  766. Name: "privilege_type",
  767. Type: ast.TypeName{Name: "character_data"},
  768. },
  769. {
  770. Name: "is_grantable",
  771. Type: ast.TypeName{Name: "yes_or_no"},
  772. },
  773. },
  774. },
  775. {
  776. Rel: &ast.TableName{
  777. Catalog: "pg_catalog",
  778. Schema: "information_schema",
  779. Name: "column_udt_usage",
  780. },
  781. Columns: []*catalog.Column{
  782. {
  783. Name: "udt_catalog",
  784. Type: ast.TypeName{Name: "sql_identifier"},
  785. Length: toPointer(64),
  786. },
  787. {
  788. Name: "udt_schema",
  789. Type: ast.TypeName{Name: "sql_identifier"},
  790. Length: toPointer(64),
  791. },
  792. {
  793. Name: "udt_name",
  794. Type: ast.TypeName{Name: "sql_identifier"},
  795. Length: toPointer(64),
  796. },
  797. {
  798. Name: "table_catalog",
  799. Type: ast.TypeName{Name: "sql_identifier"},
  800. Length: toPointer(64),
  801. },
  802. {
  803. Name: "table_schema",
  804. Type: ast.TypeName{Name: "sql_identifier"},
  805. Length: toPointer(64),
  806. },
  807. {
  808. Name: "table_name",
  809. Type: ast.TypeName{Name: "sql_identifier"},
  810. Length: toPointer(64),
  811. },
  812. {
  813. Name: "column_name",
  814. Type: ast.TypeName{Name: "sql_identifier"},
  815. Length: toPointer(64),
  816. },
  817. },
  818. },
  819. {
  820. Rel: &ast.TableName{
  821. Catalog: "pg_catalog",
  822. Schema: "information_schema",
  823. Name: "columns",
  824. },
  825. Columns: []*catalog.Column{
  826. {
  827. Name: "table_catalog",
  828. Type: ast.TypeName{Name: "sql_identifier"},
  829. Length: toPointer(64),
  830. },
  831. {
  832. Name: "table_schema",
  833. Type: ast.TypeName{Name: "sql_identifier"},
  834. Length: toPointer(64),
  835. },
  836. {
  837. Name: "table_name",
  838. Type: ast.TypeName{Name: "sql_identifier"},
  839. Length: toPointer(64),
  840. },
  841. {
  842. Name: "column_name",
  843. Type: ast.TypeName{Name: "sql_identifier"},
  844. Length: toPointer(64),
  845. },
  846. {
  847. Name: "ordinal_position",
  848. Type: ast.TypeName{Name: "cardinal_number"},
  849. Length: toPointer(4),
  850. },
  851. {
  852. Name: "column_default",
  853. Type: ast.TypeName{Name: "character_data"},
  854. },
  855. {
  856. Name: "is_nullable",
  857. Type: ast.TypeName{Name: "yes_or_no"},
  858. },
  859. {
  860. Name: "data_type",
  861. Type: ast.TypeName{Name: "character_data"},
  862. },
  863. {
  864. Name: "character_maximum_length",
  865. Type: ast.TypeName{Name: "cardinal_number"},
  866. Length: toPointer(4),
  867. },
  868. {
  869. Name: "character_octet_length",
  870. Type: ast.TypeName{Name: "cardinal_number"},
  871. Length: toPointer(4),
  872. },
  873. {
  874. Name: "numeric_precision",
  875. Type: ast.TypeName{Name: "cardinal_number"},
  876. Length: toPointer(4),
  877. },
  878. {
  879. Name: "numeric_precision_radix",
  880. Type: ast.TypeName{Name: "cardinal_number"},
  881. Length: toPointer(4),
  882. },
  883. {
  884. Name: "numeric_scale",
  885. Type: ast.TypeName{Name: "cardinal_number"},
  886. Length: toPointer(4),
  887. },
  888. {
  889. Name: "datetime_precision",
  890. Type: ast.TypeName{Name: "cardinal_number"},
  891. Length: toPointer(4),
  892. },
  893. {
  894. Name: "interval_type",
  895. Type: ast.TypeName{Name: "character_data"},
  896. },
  897. {
  898. Name: "interval_precision",
  899. Type: ast.TypeName{Name: "cardinal_number"},
  900. Length: toPointer(4),
  901. },
  902. {
  903. Name: "character_set_catalog",
  904. Type: ast.TypeName{Name: "sql_identifier"},
  905. Length: toPointer(64),
  906. },
  907. {
  908. Name: "character_set_schema",
  909. Type: ast.TypeName{Name: "sql_identifier"},
  910. Length: toPointer(64),
  911. },
  912. {
  913. Name: "character_set_name",
  914. Type: ast.TypeName{Name: "sql_identifier"},
  915. Length: toPointer(64),
  916. },
  917. {
  918. Name: "collation_catalog",
  919. Type: ast.TypeName{Name: "sql_identifier"},
  920. Length: toPointer(64),
  921. },
  922. {
  923. Name: "collation_schema",
  924. Type: ast.TypeName{Name: "sql_identifier"},
  925. Length: toPointer(64),
  926. },
  927. {
  928. Name: "collation_name",
  929. Type: ast.TypeName{Name: "sql_identifier"},
  930. Length: toPointer(64),
  931. },
  932. {
  933. Name: "domain_catalog",
  934. Type: ast.TypeName{Name: "sql_identifier"},
  935. Length: toPointer(64),
  936. },
  937. {
  938. Name: "domain_schema",
  939. Type: ast.TypeName{Name: "sql_identifier"},
  940. Length: toPointer(64),
  941. },
  942. {
  943. Name: "domain_name",
  944. Type: ast.TypeName{Name: "sql_identifier"},
  945. Length: toPointer(64),
  946. },
  947. {
  948. Name: "udt_catalog",
  949. Type: ast.TypeName{Name: "sql_identifier"},
  950. Length: toPointer(64),
  951. },
  952. {
  953. Name: "udt_schema",
  954. Type: ast.TypeName{Name: "sql_identifier"},
  955. Length: toPointer(64),
  956. },
  957. {
  958. Name: "udt_name",
  959. Type: ast.TypeName{Name: "sql_identifier"},
  960. Length: toPointer(64),
  961. },
  962. {
  963. Name: "scope_catalog",
  964. Type: ast.TypeName{Name: "sql_identifier"},
  965. Length: toPointer(64),
  966. },
  967. {
  968. Name: "scope_schema",
  969. Type: ast.TypeName{Name: "sql_identifier"},
  970. Length: toPointer(64),
  971. },
  972. {
  973. Name: "scope_name",
  974. Type: ast.TypeName{Name: "sql_identifier"},
  975. Length: toPointer(64),
  976. },
  977. {
  978. Name: "maximum_cardinality",
  979. Type: ast.TypeName{Name: "cardinal_number"},
  980. Length: toPointer(4),
  981. },
  982. {
  983. Name: "dtd_identifier",
  984. Type: ast.TypeName{Name: "sql_identifier"},
  985. Length: toPointer(64),
  986. },
  987. {
  988. Name: "is_self_referencing",
  989. Type: ast.TypeName{Name: "yes_or_no"},
  990. },
  991. {
  992. Name: "is_identity",
  993. Type: ast.TypeName{Name: "yes_or_no"},
  994. },
  995. {
  996. Name: "identity_generation",
  997. Type: ast.TypeName{Name: "character_data"},
  998. },
  999. {
  1000. Name: "identity_start",
  1001. Type: ast.TypeName{Name: "character_data"},
  1002. },
  1003. {
  1004. Name: "identity_increment",
  1005. Type: ast.TypeName{Name: "character_data"},
  1006. },
  1007. {
  1008. Name: "identity_maximum",
  1009. Type: ast.TypeName{Name: "character_data"},
  1010. },
  1011. {
  1012. Name: "identity_minimum",
  1013. Type: ast.TypeName{Name: "character_data"},
  1014. },
  1015. {
  1016. Name: "identity_cycle",
  1017. Type: ast.TypeName{Name: "yes_or_no"},
  1018. },
  1019. {
  1020. Name: "is_generated",
  1021. Type: ast.TypeName{Name: "character_data"},
  1022. },
  1023. {
  1024. Name: "generation_expression",
  1025. Type: ast.TypeName{Name: "character_data"},
  1026. },
  1027. {
  1028. Name: "is_updatable",
  1029. Type: ast.TypeName{Name: "yes_or_no"},
  1030. },
  1031. },
  1032. },
  1033. {
  1034. Rel: &ast.TableName{
  1035. Catalog: "pg_catalog",
  1036. Schema: "information_schema",
  1037. Name: "constraint_column_usage",
  1038. },
  1039. Columns: []*catalog.Column{
  1040. {
  1041. Name: "table_catalog",
  1042. Type: ast.TypeName{Name: "sql_identifier"},
  1043. Length: toPointer(64),
  1044. },
  1045. {
  1046. Name: "table_schema",
  1047. Type: ast.TypeName{Name: "sql_identifier"},
  1048. Length: toPointer(64),
  1049. },
  1050. {
  1051. Name: "table_name",
  1052. Type: ast.TypeName{Name: "sql_identifier"},
  1053. Length: toPointer(64),
  1054. },
  1055. {
  1056. Name: "column_name",
  1057. Type: ast.TypeName{Name: "sql_identifier"},
  1058. Length: toPointer(64),
  1059. },
  1060. {
  1061. Name: "constraint_catalog",
  1062. Type: ast.TypeName{Name: "sql_identifier"},
  1063. Length: toPointer(64),
  1064. },
  1065. {
  1066. Name: "constraint_schema",
  1067. Type: ast.TypeName{Name: "sql_identifier"},
  1068. Length: toPointer(64),
  1069. },
  1070. {
  1071. Name: "constraint_name",
  1072. Type: ast.TypeName{Name: "sql_identifier"},
  1073. Length: toPointer(64),
  1074. },
  1075. },
  1076. },
  1077. {
  1078. Rel: &ast.TableName{
  1079. Catalog: "pg_catalog",
  1080. Schema: "information_schema",
  1081. Name: "constraint_table_usage",
  1082. },
  1083. Columns: []*catalog.Column{
  1084. {
  1085. Name: "table_catalog",
  1086. Type: ast.TypeName{Name: "sql_identifier"},
  1087. Length: toPointer(64),
  1088. },
  1089. {
  1090. Name: "table_schema",
  1091. Type: ast.TypeName{Name: "sql_identifier"},
  1092. Length: toPointer(64),
  1093. },
  1094. {
  1095. Name: "table_name",
  1096. Type: ast.TypeName{Name: "sql_identifier"},
  1097. Length: toPointer(64),
  1098. },
  1099. {
  1100. Name: "constraint_catalog",
  1101. Type: ast.TypeName{Name: "sql_identifier"},
  1102. Length: toPointer(64),
  1103. },
  1104. {
  1105. Name: "constraint_schema",
  1106. Type: ast.TypeName{Name: "sql_identifier"},
  1107. Length: toPointer(64),
  1108. },
  1109. {
  1110. Name: "constraint_name",
  1111. Type: ast.TypeName{Name: "sql_identifier"},
  1112. Length: toPointer(64),
  1113. },
  1114. },
  1115. },
  1116. {
  1117. Rel: &ast.TableName{
  1118. Catalog: "pg_catalog",
  1119. Schema: "information_schema",
  1120. Name: "data_type_privileges",
  1121. },
  1122. Columns: []*catalog.Column{
  1123. {
  1124. Name: "object_catalog",
  1125. Type: ast.TypeName{Name: "sql_identifier"},
  1126. Length: toPointer(64),
  1127. },
  1128. {
  1129. Name: "object_schema",
  1130. Type: ast.TypeName{Name: "sql_identifier"},
  1131. Length: toPointer(64),
  1132. },
  1133. {
  1134. Name: "object_name",
  1135. Type: ast.TypeName{Name: "sql_identifier"},
  1136. Length: toPointer(64),
  1137. },
  1138. {
  1139. Name: "object_type",
  1140. Type: ast.TypeName{Name: "character_data"},
  1141. },
  1142. {
  1143. Name: "dtd_identifier",
  1144. Type: ast.TypeName{Name: "sql_identifier"},
  1145. Length: toPointer(64),
  1146. },
  1147. },
  1148. },
  1149. {
  1150. Rel: &ast.TableName{
  1151. Catalog: "pg_catalog",
  1152. Schema: "information_schema",
  1153. Name: "domain_constraints",
  1154. },
  1155. Columns: []*catalog.Column{
  1156. {
  1157. Name: "constraint_catalog",
  1158. Type: ast.TypeName{Name: "sql_identifier"},
  1159. Length: toPointer(64),
  1160. },
  1161. {
  1162. Name: "constraint_schema",
  1163. Type: ast.TypeName{Name: "sql_identifier"},
  1164. Length: toPointer(64),
  1165. },
  1166. {
  1167. Name: "constraint_name",
  1168. Type: ast.TypeName{Name: "sql_identifier"},
  1169. Length: toPointer(64),
  1170. },
  1171. {
  1172. Name: "domain_catalog",
  1173. Type: ast.TypeName{Name: "sql_identifier"},
  1174. Length: toPointer(64),
  1175. },
  1176. {
  1177. Name: "domain_schema",
  1178. Type: ast.TypeName{Name: "sql_identifier"},
  1179. Length: toPointer(64),
  1180. },
  1181. {
  1182. Name: "domain_name",
  1183. Type: ast.TypeName{Name: "sql_identifier"},
  1184. Length: toPointer(64),
  1185. },
  1186. {
  1187. Name: "is_deferrable",
  1188. Type: ast.TypeName{Name: "yes_or_no"},
  1189. },
  1190. {
  1191. Name: "initially_deferred",
  1192. Type: ast.TypeName{Name: "yes_or_no"},
  1193. },
  1194. },
  1195. },
  1196. {
  1197. Rel: &ast.TableName{
  1198. Catalog: "pg_catalog",
  1199. Schema: "information_schema",
  1200. Name: "domain_udt_usage",
  1201. },
  1202. Columns: []*catalog.Column{
  1203. {
  1204. Name: "udt_catalog",
  1205. Type: ast.TypeName{Name: "sql_identifier"},
  1206. Length: toPointer(64),
  1207. },
  1208. {
  1209. Name: "udt_schema",
  1210. Type: ast.TypeName{Name: "sql_identifier"},
  1211. Length: toPointer(64),
  1212. },
  1213. {
  1214. Name: "udt_name",
  1215. Type: ast.TypeName{Name: "sql_identifier"},
  1216. Length: toPointer(64),
  1217. },
  1218. {
  1219. Name: "domain_catalog",
  1220. Type: ast.TypeName{Name: "sql_identifier"},
  1221. Length: toPointer(64),
  1222. },
  1223. {
  1224. Name: "domain_schema",
  1225. Type: ast.TypeName{Name: "sql_identifier"},
  1226. Length: toPointer(64),
  1227. },
  1228. {
  1229. Name: "domain_name",
  1230. Type: ast.TypeName{Name: "sql_identifier"},
  1231. Length: toPointer(64),
  1232. },
  1233. },
  1234. },
  1235. {
  1236. Rel: &ast.TableName{
  1237. Catalog: "pg_catalog",
  1238. Schema: "information_schema",
  1239. Name: "domains",
  1240. },
  1241. Columns: []*catalog.Column{
  1242. {
  1243. Name: "domain_catalog",
  1244. Type: ast.TypeName{Name: "sql_identifier"},
  1245. Length: toPointer(64),
  1246. },
  1247. {
  1248. Name: "domain_schema",
  1249. Type: ast.TypeName{Name: "sql_identifier"},
  1250. Length: toPointer(64),
  1251. },
  1252. {
  1253. Name: "domain_name",
  1254. Type: ast.TypeName{Name: "sql_identifier"},
  1255. Length: toPointer(64),
  1256. },
  1257. {
  1258. Name: "data_type",
  1259. Type: ast.TypeName{Name: "character_data"},
  1260. },
  1261. {
  1262. Name: "character_maximum_length",
  1263. Type: ast.TypeName{Name: "cardinal_number"},
  1264. Length: toPointer(4),
  1265. },
  1266. {
  1267. Name: "character_octet_length",
  1268. Type: ast.TypeName{Name: "cardinal_number"},
  1269. Length: toPointer(4),
  1270. },
  1271. {
  1272. Name: "character_set_catalog",
  1273. Type: ast.TypeName{Name: "sql_identifier"},
  1274. Length: toPointer(64),
  1275. },
  1276. {
  1277. Name: "character_set_schema",
  1278. Type: ast.TypeName{Name: "sql_identifier"},
  1279. Length: toPointer(64),
  1280. },
  1281. {
  1282. Name: "character_set_name",
  1283. Type: ast.TypeName{Name: "sql_identifier"},
  1284. Length: toPointer(64),
  1285. },
  1286. {
  1287. Name: "collation_catalog",
  1288. Type: ast.TypeName{Name: "sql_identifier"},
  1289. Length: toPointer(64),
  1290. },
  1291. {
  1292. Name: "collation_schema",
  1293. Type: ast.TypeName{Name: "sql_identifier"},
  1294. Length: toPointer(64),
  1295. },
  1296. {
  1297. Name: "collation_name",
  1298. Type: ast.TypeName{Name: "sql_identifier"},
  1299. Length: toPointer(64),
  1300. },
  1301. {
  1302. Name: "numeric_precision",
  1303. Type: ast.TypeName{Name: "cardinal_number"},
  1304. Length: toPointer(4),
  1305. },
  1306. {
  1307. Name: "numeric_precision_radix",
  1308. Type: ast.TypeName{Name: "cardinal_number"},
  1309. Length: toPointer(4),
  1310. },
  1311. {
  1312. Name: "numeric_scale",
  1313. Type: ast.TypeName{Name: "cardinal_number"},
  1314. Length: toPointer(4),
  1315. },
  1316. {
  1317. Name: "datetime_precision",
  1318. Type: ast.TypeName{Name: "cardinal_number"},
  1319. Length: toPointer(4),
  1320. },
  1321. {
  1322. Name: "interval_type",
  1323. Type: ast.TypeName{Name: "character_data"},
  1324. },
  1325. {
  1326. Name: "interval_precision",
  1327. Type: ast.TypeName{Name: "cardinal_number"},
  1328. Length: toPointer(4),
  1329. },
  1330. {
  1331. Name: "domain_default",
  1332. Type: ast.TypeName{Name: "character_data"},
  1333. },
  1334. {
  1335. Name: "udt_catalog",
  1336. Type: ast.TypeName{Name: "sql_identifier"},
  1337. Length: toPointer(64),
  1338. },
  1339. {
  1340. Name: "udt_schema",
  1341. Type: ast.TypeName{Name: "sql_identifier"},
  1342. Length: toPointer(64),
  1343. },
  1344. {
  1345. Name: "udt_name",
  1346. Type: ast.TypeName{Name: "sql_identifier"},
  1347. Length: toPointer(64),
  1348. },
  1349. {
  1350. Name: "scope_catalog",
  1351. Type: ast.TypeName{Name: "sql_identifier"},
  1352. Length: toPointer(64),
  1353. },
  1354. {
  1355. Name: "scope_schema",
  1356. Type: ast.TypeName{Name: "sql_identifier"},
  1357. Length: toPointer(64),
  1358. },
  1359. {
  1360. Name: "scope_name",
  1361. Type: ast.TypeName{Name: "sql_identifier"},
  1362. Length: toPointer(64),
  1363. },
  1364. {
  1365. Name: "maximum_cardinality",
  1366. Type: ast.TypeName{Name: "cardinal_number"},
  1367. Length: toPointer(4),
  1368. },
  1369. {
  1370. Name: "dtd_identifier",
  1371. Type: ast.TypeName{Name: "sql_identifier"},
  1372. Length: toPointer(64),
  1373. },
  1374. },
  1375. },
  1376. {
  1377. Rel: &ast.TableName{
  1378. Catalog: "pg_catalog",
  1379. Schema: "information_schema",
  1380. Name: "element_types",
  1381. },
  1382. Columns: []*catalog.Column{
  1383. {
  1384. Name: "object_catalog",
  1385. Type: ast.TypeName{Name: "sql_identifier"},
  1386. Length: toPointer(64),
  1387. },
  1388. {
  1389. Name: "object_schema",
  1390. Type: ast.TypeName{Name: "sql_identifier"},
  1391. Length: toPointer(64),
  1392. },
  1393. {
  1394. Name: "object_name",
  1395. Type: ast.TypeName{Name: "sql_identifier"},
  1396. Length: toPointer(64),
  1397. },
  1398. {
  1399. Name: "object_type",
  1400. Type: ast.TypeName{Name: "character_data"},
  1401. },
  1402. {
  1403. Name: "collection_type_identifier",
  1404. Type: ast.TypeName{Name: "sql_identifier"},
  1405. Length: toPointer(64),
  1406. },
  1407. {
  1408. Name: "data_type",
  1409. Type: ast.TypeName{Name: "character_data"},
  1410. },
  1411. {
  1412. Name: "character_maximum_length",
  1413. Type: ast.TypeName{Name: "cardinal_number"},
  1414. Length: toPointer(4),
  1415. },
  1416. {
  1417. Name: "character_octet_length",
  1418. Type: ast.TypeName{Name: "cardinal_number"},
  1419. Length: toPointer(4),
  1420. },
  1421. {
  1422. Name: "character_set_catalog",
  1423. Type: ast.TypeName{Name: "sql_identifier"},
  1424. Length: toPointer(64),
  1425. },
  1426. {
  1427. Name: "character_set_schema",
  1428. Type: ast.TypeName{Name: "sql_identifier"},
  1429. Length: toPointer(64),
  1430. },
  1431. {
  1432. Name: "character_set_name",
  1433. Type: ast.TypeName{Name: "sql_identifier"},
  1434. Length: toPointer(64),
  1435. },
  1436. {
  1437. Name: "collation_catalog",
  1438. Type: ast.TypeName{Name: "sql_identifier"},
  1439. Length: toPointer(64),
  1440. },
  1441. {
  1442. Name: "collation_schema",
  1443. Type: ast.TypeName{Name: "sql_identifier"},
  1444. Length: toPointer(64),
  1445. },
  1446. {
  1447. Name: "collation_name",
  1448. Type: ast.TypeName{Name: "sql_identifier"},
  1449. Length: toPointer(64),
  1450. },
  1451. {
  1452. Name: "numeric_precision",
  1453. Type: ast.TypeName{Name: "cardinal_number"},
  1454. Length: toPointer(4),
  1455. },
  1456. {
  1457. Name: "numeric_precision_radix",
  1458. Type: ast.TypeName{Name: "cardinal_number"},
  1459. Length: toPointer(4),
  1460. },
  1461. {
  1462. Name: "numeric_scale",
  1463. Type: ast.TypeName{Name: "cardinal_number"},
  1464. Length: toPointer(4),
  1465. },
  1466. {
  1467. Name: "datetime_precision",
  1468. Type: ast.TypeName{Name: "cardinal_number"},
  1469. Length: toPointer(4),
  1470. },
  1471. {
  1472. Name: "interval_type",
  1473. Type: ast.TypeName{Name: "character_data"},
  1474. },
  1475. {
  1476. Name: "interval_precision",
  1477. Type: ast.TypeName{Name: "cardinal_number"},
  1478. Length: toPointer(4),
  1479. },
  1480. {
  1481. Name: "domain_default",
  1482. Type: ast.TypeName{Name: "character_data"},
  1483. },
  1484. {
  1485. Name: "udt_catalog",
  1486. Type: ast.TypeName{Name: "sql_identifier"},
  1487. Length: toPointer(64),
  1488. },
  1489. {
  1490. Name: "udt_schema",
  1491. Type: ast.TypeName{Name: "sql_identifier"},
  1492. Length: toPointer(64),
  1493. },
  1494. {
  1495. Name: "udt_name",
  1496. Type: ast.TypeName{Name: "sql_identifier"},
  1497. Length: toPointer(64),
  1498. },
  1499. {
  1500. Name: "scope_catalog",
  1501. Type: ast.TypeName{Name: "sql_identifier"},
  1502. Length: toPointer(64),
  1503. },
  1504. {
  1505. Name: "scope_schema",
  1506. Type: ast.TypeName{Name: "sql_identifier"},
  1507. Length: toPointer(64),
  1508. },
  1509. {
  1510. Name: "scope_name",
  1511. Type: ast.TypeName{Name: "sql_identifier"},
  1512. Length: toPointer(64),
  1513. },
  1514. {
  1515. Name: "maximum_cardinality",
  1516. Type: ast.TypeName{Name: "cardinal_number"},
  1517. Length: toPointer(4),
  1518. },
  1519. {
  1520. Name: "dtd_identifier",
  1521. Type: ast.TypeName{Name: "sql_identifier"},
  1522. Length: toPointer(64),
  1523. },
  1524. },
  1525. },
  1526. {
  1527. Rel: &ast.TableName{
  1528. Catalog: "pg_catalog",
  1529. Schema: "information_schema",
  1530. Name: "enabled_roles",
  1531. },
  1532. Columns: []*catalog.Column{
  1533. {
  1534. Name: "role_name",
  1535. Type: ast.TypeName{Name: "sql_identifier"},
  1536. Length: toPointer(64),
  1537. },
  1538. },
  1539. },
  1540. {
  1541. Rel: &ast.TableName{
  1542. Catalog: "pg_catalog",
  1543. Schema: "information_schema",
  1544. Name: "foreign_data_wrapper_options",
  1545. },
  1546. Columns: []*catalog.Column{
  1547. {
  1548. Name: "foreign_data_wrapper_catalog",
  1549. Type: ast.TypeName{Name: "sql_identifier"},
  1550. Length: toPointer(64),
  1551. },
  1552. {
  1553. Name: "foreign_data_wrapper_name",
  1554. Type: ast.TypeName{Name: "sql_identifier"},
  1555. Length: toPointer(64),
  1556. },
  1557. {
  1558. Name: "option_name",
  1559. Type: ast.TypeName{Name: "sql_identifier"},
  1560. Length: toPointer(64),
  1561. },
  1562. {
  1563. Name: "option_value",
  1564. Type: ast.TypeName{Name: "character_data"},
  1565. },
  1566. },
  1567. },
  1568. {
  1569. Rel: &ast.TableName{
  1570. Catalog: "pg_catalog",
  1571. Schema: "information_schema",
  1572. Name: "foreign_data_wrappers",
  1573. },
  1574. Columns: []*catalog.Column{
  1575. {
  1576. Name: "foreign_data_wrapper_catalog",
  1577. Type: ast.TypeName{Name: "sql_identifier"},
  1578. Length: toPointer(64),
  1579. },
  1580. {
  1581. Name: "foreign_data_wrapper_name",
  1582. Type: ast.TypeName{Name: "sql_identifier"},
  1583. Length: toPointer(64),
  1584. },
  1585. {
  1586. Name: "authorization_identifier",
  1587. Type: ast.TypeName{Name: "sql_identifier"},
  1588. Length: toPointer(64),
  1589. },
  1590. {
  1591. Name: "library_name",
  1592. Type: ast.TypeName{Name: "character_data"},
  1593. },
  1594. {
  1595. Name: "foreign_data_wrapper_language",
  1596. Type: ast.TypeName{Name: "character_data"},
  1597. },
  1598. },
  1599. },
  1600. {
  1601. Rel: &ast.TableName{
  1602. Catalog: "pg_catalog",
  1603. Schema: "information_schema",
  1604. Name: "foreign_server_options",
  1605. },
  1606. Columns: []*catalog.Column{
  1607. {
  1608. Name: "foreign_server_catalog",
  1609. Type: ast.TypeName{Name: "sql_identifier"},
  1610. Length: toPointer(64),
  1611. },
  1612. {
  1613. Name: "foreign_server_name",
  1614. Type: ast.TypeName{Name: "sql_identifier"},
  1615. Length: toPointer(64),
  1616. },
  1617. {
  1618. Name: "option_name",
  1619. Type: ast.TypeName{Name: "sql_identifier"},
  1620. Length: toPointer(64),
  1621. },
  1622. {
  1623. Name: "option_value",
  1624. Type: ast.TypeName{Name: "character_data"},
  1625. },
  1626. },
  1627. },
  1628. {
  1629. Rel: &ast.TableName{
  1630. Catalog: "pg_catalog",
  1631. Schema: "information_schema",
  1632. Name: "foreign_servers",
  1633. },
  1634. Columns: []*catalog.Column{
  1635. {
  1636. Name: "foreign_server_catalog",
  1637. Type: ast.TypeName{Name: "sql_identifier"},
  1638. Length: toPointer(64),
  1639. },
  1640. {
  1641. Name: "foreign_server_name",
  1642. Type: ast.TypeName{Name: "sql_identifier"},
  1643. Length: toPointer(64),
  1644. },
  1645. {
  1646. Name: "foreign_data_wrapper_catalog",
  1647. Type: ast.TypeName{Name: "sql_identifier"},
  1648. Length: toPointer(64),
  1649. },
  1650. {
  1651. Name: "foreign_data_wrapper_name",
  1652. Type: ast.TypeName{Name: "sql_identifier"},
  1653. Length: toPointer(64),
  1654. },
  1655. {
  1656. Name: "foreign_server_type",
  1657. Type: ast.TypeName{Name: "character_data"},
  1658. },
  1659. {
  1660. Name: "foreign_server_version",
  1661. Type: ast.TypeName{Name: "character_data"},
  1662. },
  1663. {
  1664. Name: "authorization_identifier",
  1665. Type: ast.TypeName{Name: "sql_identifier"},
  1666. Length: toPointer(64),
  1667. },
  1668. },
  1669. },
  1670. {
  1671. Rel: &ast.TableName{
  1672. Catalog: "pg_catalog",
  1673. Schema: "information_schema",
  1674. Name: "foreign_table_options",
  1675. },
  1676. Columns: []*catalog.Column{
  1677. {
  1678. Name: "foreign_table_catalog",
  1679. Type: ast.TypeName{Name: "sql_identifier"},
  1680. Length: toPointer(64),
  1681. },
  1682. {
  1683. Name: "foreign_table_schema",
  1684. Type: ast.TypeName{Name: "sql_identifier"},
  1685. Length: toPointer(64),
  1686. },
  1687. {
  1688. Name: "foreign_table_name",
  1689. Type: ast.TypeName{Name: "sql_identifier"},
  1690. Length: toPointer(64),
  1691. },
  1692. {
  1693. Name: "option_name",
  1694. Type: ast.TypeName{Name: "sql_identifier"},
  1695. Length: toPointer(64),
  1696. },
  1697. {
  1698. Name: "option_value",
  1699. Type: ast.TypeName{Name: "character_data"},
  1700. },
  1701. },
  1702. },
  1703. {
  1704. Rel: &ast.TableName{
  1705. Catalog: "pg_catalog",
  1706. Schema: "information_schema",
  1707. Name: "foreign_tables",
  1708. },
  1709. Columns: []*catalog.Column{
  1710. {
  1711. Name: "foreign_table_catalog",
  1712. Type: ast.TypeName{Name: "sql_identifier"},
  1713. Length: toPointer(64),
  1714. },
  1715. {
  1716. Name: "foreign_table_schema",
  1717. Type: ast.TypeName{Name: "sql_identifier"},
  1718. Length: toPointer(64),
  1719. },
  1720. {
  1721. Name: "foreign_table_name",
  1722. Type: ast.TypeName{Name: "sql_identifier"},
  1723. Length: toPointer(64),
  1724. },
  1725. {
  1726. Name: "foreign_server_catalog",
  1727. Type: ast.TypeName{Name: "sql_identifier"},
  1728. Length: toPointer(64),
  1729. },
  1730. {
  1731. Name: "foreign_server_name",
  1732. Type: ast.TypeName{Name: "sql_identifier"},
  1733. Length: toPointer(64),
  1734. },
  1735. },
  1736. },
  1737. {
  1738. Rel: &ast.TableName{
  1739. Catalog: "pg_catalog",
  1740. Schema: "information_schema",
  1741. Name: "information_schema_catalog_name",
  1742. },
  1743. Columns: []*catalog.Column{
  1744. {
  1745. Name: "catalog_name",
  1746. Type: ast.TypeName{Name: "sql_identifier"},
  1747. Length: toPointer(64),
  1748. },
  1749. },
  1750. },
  1751. {
  1752. Rel: &ast.TableName{
  1753. Catalog: "pg_catalog",
  1754. Schema: "information_schema",
  1755. Name: "key_column_usage",
  1756. },
  1757. Columns: []*catalog.Column{
  1758. {
  1759. Name: "constraint_catalog",
  1760. Type: ast.TypeName{Name: "sql_identifier"},
  1761. Length: toPointer(64),
  1762. },
  1763. {
  1764. Name: "constraint_schema",
  1765. Type: ast.TypeName{Name: "sql_identifier"},
  1766. Length: toPointer(64),
  1767. },
  1768. {
  1769. Name: "constraint_name",
  1770. Type: ast.TypeName{Name: "sql_identifier"},
  1771. Length: toPointer(64),
  1772. },
  1773. {
  1774. Name: "table_catalog",
  1775. Type: ast.TypeName{Name: "sql_identifier"},
  1776. Length: toPointer(64),
  1777. },
  1778. {
  1779. Name: "table_schema",
  1780. Type: ast.TypeName{Name: "sql_identifier"},
  1781. Length: toPointer(64),
  1782. },
  1783. {
  1784. Name: "table_name",
  1785. Type: ast.TypeName{Name: "sql_identifier"},
  1786. Length: toPointer(64),
  1787. },
  1788. {
  1789. Name: "column_name",
  1790. Type: ast.TypeName{Name: "sql_identifier"},
  1791. Length: toPointer(64),
  1792. },
  1793. {
  1794. Name: "ordinal_position",
  1795. Type: ast.TypeName{Name: "cardinal_number"},
  1796. Length: toPointer(4),
  1797. },
  1798. {
  1799. Name: "position_in_unique_constraint",
  1800. Type: ast.TypeName{Name: "cardinal_number"},
  1801. Length: toPointer(4),
  1802. },
  1803. },
  1804. },
  1805. {
  1806. Rel: &ast.TableName{
  1807. Catalog: "pg_catalog",
  1808. Schema: "information_schema",
  1809. Name: "parameters",
  1810. },
  1811. Columns: []*catalog.Column{
  1812. {
  1813. Name: "specific_catalog",
  1814. Type: ast.TypeName{Name: "sql_identifier"},
  1815. Length: toPointer(64),
  1816. },
  1817. {
  1818. Name: "specific_schema",
  1819. Type: ast.TypeName{Name: "sql_identifier"},
  1820. Length: toPointer(64),
  1821. },
  1822. {
  1823. Name: "specific_name",
  1824. Type: ast.TypeName{Name: "sql_identifier"},
  1825. Length: toPointer(64),
  1826. },
  1827. {
  1828. Name: "ordinal_position",
  1829. Type: ast.TypeName{Name: "cardinal_number"},
  1830. Length: toPointer(4),
  1831. },
  1832. {
  1833. Name: "parameter_mode",
  1834. Type: ast.TypeName{Name: "character_data"},
  1835. },
  1836. {
  1837. Name: "is_result",
  1838. Type: ast.TypeName{Name: "yes_or_no"},
  1839. },
  1840. {
  1841. Name: "as_locator",
  1842. Type: ast.TypeName{Name: "yes_or_no"},
  1843. },
  1844. {
  1845. Name: "parameter_name",
  1846. Type: ast.TypeName{Name: "sql_identifier"},
  1847. Length: toPointer(64),
  1848. },
  1849. {
  1850. Name: "data_type",
  1851. Type: ast.TypeName{Name: "character_data"},
  1852. },
  1853. {
  1854. Name: "character_maximum_length",
  1855. Type: ast.TypeName{Name: "cardinal_number"},
  1856. Length: toPointer(4),
  1857. },
  1858. {
  1859. Name: "character_octet_length",
  1860. Type: ast.TypeName{Name: "cardinal_number"},
  1861. Length: toPointer(4),
  1862. },
  1863. {
  1864. Name: "character_set_catalog",
  1865. Type: ast.TypeName{Name: "sql_identifier"},
  1866. Length: toPointer(64),
  1867. },
  1868. {
  1869. Name: "character_set_schema",
  1870. Type: ast.TypeName{Name: "sql_identifier"},
  1871. Length: toPointer(64),
  1872. },
  1873. {
  1874. Name: "character_set_name",
  1875. Type: ast.TypeName{Name: "sql_identifier"},
  1876. Length: toPointer(64),
  1877. },
  1878. {
  1879. Name: "collation_catalog",
  1880. Type: ast.TypeName{Name: "sql_identifier"},
  1881. Length: toPointer(64),
  1882. },
  1883. {
  1884. Name: "collation_schema",
  1885. Type: ast.TypeName{Name: "sql_identifier"},
  1886. Length: toPointer(64),
  1887. },
  1888. {
  1889. Name: "collation_name",
  1890. Type: ast.TypeName{Name: "sql_identifier"},
  1891. Length: toPointer(64),
  1892. },
  1893. {
  1894. Name: "numeric_precision",
  1895. Type: ast.TypeName{Name: "cardinal_number"},
  1896. Length: toPointer(4),
  1897. },
  1898. {
  1899. Name: "numeric_precision_radix",
  1900. Type: ast.TypeName{Name: "cardinal_number"},
  1901. Length: toPointer(4),
  1902. },
  1903. {
  1904. Name: "numeric_scale",
  1905. Type: ast.TypeName{Name: "cardinal_number"},
  1906. Length: toPointer(4),
  1907. },
  1908. {
  1909. Name: "datetime_precision",
  1910. Type: ast.TypeName{Name: "cardinal_number"},
  1911. Length: toPointer(4),
  1912. },
  1913. {
  1914. Name: "interval_type",
  1915. Type: ast.TypeName{Name: "character_data"},
  1916. },
  1917. {
  1918. Name: "interval_precision",
  1919. Type: ast.TypeName{Name: "cardinal_number"},
  1920. Length: toPointer(4),
  1921. },
  1922. {
  1923. Name: "udt_catalog",
  1924. Type: ast.TypeName{Name: "sql_identifier"},
  1925. Length: toPointer(64),
  1926. },
  1927. {
  1928. Name: "udt_schema",
  1929. Type: ast.TypeName{Name: "sql_identifier"},
  1930. Length: toPointer(64),
  1931. },
  1932. {
  1933. Name: "udt_name",
  1934. Type: ast.TypeName{Name: "sql_identifier"},
  1935. Length: toPointer(64),
  1936. },
  1937. {
  1938. Name: "scope_catalog",
  1939. Type: ast.TypeName{Name: "sql_identifier"},
  1940. Length: toPointer(64),
  1941. },
  1942. {
  1943. Name: "scope_schema",
  1944. Type: ast.TypeName{Name: "sql_identifier"},
  1945. Length: toPointer(64),
  1946. },
  1947. {
  1948. Name: "scope_name",
  1949. Type: ast.TypeName{Name: "sql_identifier"},
  1950. Length: toPointer(64),
  1951. },
  1952. {
  1953. Name: "maximum_cardinality",
  1954. Type: ast.TypeName{Name: "cardinal_number"},
  1955. Length: toPointer(4),
  1956. },
  1957. {
  1958. Name: "dtd_identifier",
  1959. Type: ast.TypeName{Name: "sql_identifier"},
  1960. Length: toPointer(64),
  1961. },
  1962. {
  1963. Name: "parameter_default",
  1964. Type: ast.TypeName{Name: "character_data"},
  1965. },
  1966. },
  1967. },
  1968. {
  1969. Rel: &ast.TableName{
  1970. Catalog: "pg_catalog",
  1971. Schema: "information_schema",
  1972. Name: "referential_constraints",
  1973. },
  1974. Columns: []*catalog.Column{
  1975. {
  1976. Name: "constraint_catalog",
  1977. Type: ast.TypeName{Name: "sql_identifier"},
  1978. Length: toPointer(64),
  1979. },
  1980. {
  1981. Name: "constraint_schema",
  1982. Type: ast.TypeName{Name: "sql_identifier"},
  1983. Length: toPointer(64),
  1984. },
  1985. {
  1986. Name: "constraint_name",
  1987. Type: ast.TypeName{Name: "sql_identifier"},
  1988. Length: toPointer(64),
  1989. },
  1990. {
  1991. Name: "unique_constraint_catalog",
  1992. Type: ast.TypeName{Name: "sql_identifier"},
  1993. Length: toPointer(64),
  1994. },
  1995. {
  1996. Name: "unique_constraint_schema",
  1997. Type: ast.TypeName{Name: "sql_identifier"},
  1998. Length: toPointer(64),
  1999. },
  2000. {
  2001. Name: "unique_constraint_name",
  2002. Type: ast.TypeName{Name: "sql_identifier"},
  2003. Length: toPointer(64),
  2004. },
  2005. {
  2006. Name: "match_option",
  2007. Type: ast.TypeName{Name: "character_data"},
  2008. },
  2009. {
  2010. Name: "update_rule",
  2011. Type: ast.TypeName{Name: "character_data"},
  2012. },
  2013. {
  2014. Name: "delete_rule",
  2015. Type: ast.TypeName{Name: "character_data"},
  2016. },
  2017. },
  2018. },
  2019. {
  2020. Rel: &ast.TableName{
  2021. Catalog: "pg_catalog",
  2022. Schema: "information_schema",
  2023. Name: "role_column_grants",
  2024. },
  2025. Columns: []*catalog.Column{
  2026. {
  2027. Name: "grantor",
  2028. Type: ast.TypeName{Name: "sql_identifier"},
  2029. Length: toPointer(64),
  2030. },
  2031. {
  2032. Name: "grantee",
  2033. Type: ast.TypeName{Name: "sql_identifier"},
  2034. Length: toPointer(64),
  2035. },
  2036. {
  2037. Name: "table_catalog",
  2038. Type: ast.TypeName{Name: "sql_identifier"},
  2039. Length: toPointer(64),
  2040. },
  2041. {
  2042. Name: "table_schema",
  2043. Type: ast.TypeName{Name: "sql_identifier"},
  2044. Length: toPointer(64),
  2045. },
  2046. {
  2047. Name: "table_name",
  2048. Type: ast.TypeName{Name: "sql_identifier"},
  2049. Length: toPointer(64),
  2050. },
  2051. {
  2052. Name: "column_name",
  2053. Type: ast.TypeName{Name: "sql_identifier"},
  2054. Length: toPointer(64),
  2055. },
  2056. {
  2057. Name: "privilege_type",
  2058. Type: ast.TypeName{Name: "character_data"},
  2059. },
  2060. {
  2061. Name: "is_grantable",
  2062. Type: ast.TypeName{Name: "yes_or_no"},
  2063. },
  2064. },
  2065. },
  2066. {
  2067. Rel: &ast.TableName{
  2068. Catalog: "pg_catalog",
  2069. Schema: "information_schema",
  2070. Name: "role_routine_grants",
  2071. },
  2072. Columns: []*catalog.Column{
  2073. {
  2074. Name: "grantor",
  2075. Type: ast.TypeName{Name: "sql_identifier"},
  2076. Length: toPointer(64),
  2077. },
  2078. {
  2079. Name: "grantee",
  2080. Type: ast.TypeName{Name: "sql_identifier"},
  2081. Length: toPointer(64),
  2082. },
  2083. {
  2084. Name: "specific_catalog",
  2085. Type: ast.TypeName{Name: "sql_identifier"},
  2086. Length: toPointer(64),
  2087. },
  2088. {
  2089. Name: "specific_schema",
  2090. Type: ast.TypeName{Name: "sql_identifier"},
  2091. Length: toPointer(64),
  2092. },
  2093. {
  2094. Name: "specific_name",
  2095. Type: ast.TypeName{Name: "sql_identifier"},
  2096. Length: toPointer(64),
  2097. },
  2098. {
  2099. Name: "routine_catalog",
  2100. Type: ast.TypeName{Name: "sql_identifier"},
  2101. Length: toPointer(64),
  2102. },
  2103. {
  2104. Name: "routine_schema",
  2105. Type: ast.TypeName{Name: "sql_identifier"},
  2106. Length: toPointer(64),
  2107. },
  2108. {
  2109. Name: "routine_name",
  2110. Type: ast.TypeName{Name: "sql_identifier"},
  2111. Length: toPointer(64),
  2112. },
  2113. {
  2114. Name: "privilege_type",
  2115. Type: ast.TypeName{Name: "character_data"},
  2116. },
  2117. {
  2118. Name: "is_grantable",
  2119. Type: ast.TypeName{Name: "yes_or_no"},
  2120. },
  2121. },
  2122. },
  2123. {
  2124. Rel: &ast.TableName{
  2125. Catalog: "pg_catalog",
  2126. Schema: "information_schema",
  2127. Name: "role_table_grants",
  2128. },
  2129. Columns: []*catalog.Column{
  2130. {
  2131. Name: "grantor",
  2132. Type: ast.TypeName{Name: "sql_identifier"},
  2133. Length: toPointer(64),
  2134. },
  2135. {
  2136. Name: "grantee",
  2137. Type: ast.TypeName{Name: "sql_identifier"},
  2138. Length: toPointer(64),
  2139. },
  2140. {
  2141. Name: "table_catalog",
  2142. Type: ast.TypeName{Name: "sql_identifier"},
  2143. Length: toPointer(64),
  2144. },
  2145. {
  2146. Name: "table_schema",
  2147. Type: ast.TypeName{Name: "sql_identifier"},
  2148. Length: toPointer(64),
  2149. },
  2150. {
  2151. Name: "table_name",
  2152. Type: ast.TypeName{Name: "sql_identifier"},
  2153. Length: toPointer(64),
  2154. },
  2155. {
  2156. Name: "privilege_type",
  2157. Type: ast.TypeName{Name: "character_data"},
  2158. },
  2159. {
  2160. Name: "is_grantable",
  2161. Type: ast.TypeName{Name: "yes_or_no"},
  2162. },
  2163. {
  2164. Name: "with_hierarchy",
  2165. Type: ast.TypeName{Name: "yes_or_no"},
  2166. },
  2167. },
  2168. },
  2169. {
  2170. Rel: &ast.TableName{
  2171. Catalog: "pg_catalog",
  2172. Schema: "information_schema",
  2173. Name: "role_udt_grants",
  2174. },
  2175. Columns: []*catalog.Column{
  2176. {
  2177. Name: "grantor",
  2178. Type: ast.TypeName{Name: "sql_identifier"},
  2179. Length: toPointer(64),
  2180. },
  2181. {
  2182. Name: "grantee",
  2183. Type: ast.TypeName{Name: "sql_identifier"},
  2184. Length: toPointer(64),
  2185. },
  2186. {
  2187. Name: "udt_catalog",
  2188. Type: ast.TypeName{Name: "sql_identifier"},
  2189. Length: toPointer(64),
  2190. },
  2191. {
  2192. Name: "udt_schema",
  2193. Type: ast.TypeName{Name: "sql_identifier"},
  2194. Length: toPointer(64),
  2195. },
  2196. {
  2197. Name: "udt_name",
  2198. Type: ast.TypeName{Name: "sql_identifier"},
  2199. Length: toPointer(64),
  2200. },
  2201. {
  2202. Name: "privilege_type",
  2203. Type: ast.TypeName{Name: "character_data"},
  2204. },
  2205. {
  2206. Name: "is_grantable",
  2207. Type: ast.TypeName{Name: "yes_or_no"},
  2208. },
  2209. },
  2210. },
  2211. {
  2212. Rel: &ast.TableName{
  2213. Catalog: "pg_catalog",
  2214. Schema: "information_schema",
  2215. Name: "role_usage_grants",
  2216. },
  2217. Columns: []*catalog.Column{
  2218. {
  2219. Name: "grantor",
  2220. Type: ast.TypeName{Name: "sql_identifier"},
  2221. Length: toPointer(64),
  2222. },
  2223. {
  2224. Name: "grantee",
  2225. Type: ast.TypeName{Name: "sql_identifier"},
  2226. Length: toPointer(64),
  2227. },
  2228. {
  2229. Name: "object_catalog",
  2230. Type: ast.TypeName{Name: "sql_identifier"},
  2231. Length: toPointer(64),
  2232. },
  2233. {
  2234. Name: "object_schema",
  2235. Type: ast.TypeName{Name: "sql_identifier"},
  2236. Length: toPointer(64),
  2237. },
  2238. {
  2239. Name: "object_name",
  2240. Type: ast.TypeName{Name: "sql_identifier"},
  2241. Length: toPointer(64),
  2242. },
  2243. {
  2244. Name: "object_type",
  2245. Type: ast.TypeName{Name: "character_data"},
  2246. },
  2247. {
  2248. Name: "privilege_type",
  2249. Type: ast.TypeName{Name: "character_data"},
  2250. },
  2251. {
  2252. Name: "is_grantable",
  2253. Type: ast.TypeName{Name: "yes_or_no"},
  2254. },
  2255. },
  2256. },
  2257. {
  2258. Rel: &ast.TableName{
  2259. Catalog: "pg_catalog",
  2260. Schema: "information_schema",
  2261. Name: "routine_column_usage",
  2262. },
  2263. Columns: []*catalog.Column{
  2264. {
  2265. Name: "specific_catalog",
  2266. Type: ast.TypeName{Name: "sql_identifier"},
  2267. Length: toPointer(64),
  2268. },
  2269. {
  2270. Name: "specific_schema",
  2271. Type: ast.TypeName{Name: "sql_identifier"},
  2272. Length: toPointer(64),
  2273. },
  2274. {
  2275. Name: "specific_name",
  2276. Type: ast.TypeName{Name: "sql_identifier"},
  2277. Length: toPointer(64),
  2278. },
  2279. {
  2280. Name: "routine_catalog",
  2281. Type: ast.TypeName{Name: "sql_identifier"},
  2282. Length: toPointer(64),
  2283. },
  2284. {
  2285. Name: "routine_schema",
  2286. Type: ast.TypeName{Name: "sql_identifier"},
  2287. Length: toPointer(64),
  2288. },
  2289. {
  2290. Name: "routine_name",
  2291. Type: ast.TypeName{Name: "sql_identifier"},
  2292. Length: toPointer(64),
  2293. },
  2294. {
  2295. Name: "table_catalog",
  2296. Type: ast.TypeName{Name: "sql_identifier"},
  2297. Length: toPointer(64),
  2298. },
  2299. {
  2300. Name: "table_schema",
  2301. Type: ast.TypeName{Name: "sql_identifier"},
  2302. Length: toPointer(64),
  2303. },
  2304. {
  2305. Name: "table_name",
  2306. Type: ast.TypeName{Name: "sql_identifier"},
  2307. Length: toPointer(64),
  2308. },
  2309. {
  2310. Name: "column_name",
  2311. Type: ast.TypeName{Name: "sql_identifier"},
  2312. Length: toPointer(64),
  2313. },
  2314. },
  2315. },
  2316. {
  2317. Rel: &ast.TableName{
  2318. Catalog: "pg_catalog",
  2319. Schema: "information_schema",
  2320. Name: "routine_privileges",
  2321. },
  2322. Columns: []*catalog.Column{
  2323. {
  2324. Name: "grantor",
  2325. Type: ast.TypeName{Name: "sql_identifier"},
  2326. Length: toPointer(64),
  2327. },
  2328. {
  2329. Name: "grantee",
  2330. Type: ast.TypeName{Name: "sql_identifier"},
  2331. Length: toPointer(64),
  2332. },
  2333. {
  2334. Name: "specific_catalog",
  2335. Type: ast.TypeName{Name: "sql_identifier"},
  2336. Length: toPointer(64),
  2337. },
  2338. {
  2339. Name: "specific_schema",
  2340. Type: ast.TypeName{Name: "sql_identifier"},
  2341. Length: toPointer(64),
  2342. },
  2343. {
  2344. Name: "specific_name",
  2345. Type: ast.TypeName{Name: "sql_identifier"},
  2346. Length: toPointer(64),
  2347. },
  2348. {
  2349. Name: "routine_catalog",
  2350. Type: ast.TypeName{Name: "sql_identifier"},
  2351. Length: toPointer(64),
  2352. },
  2353. {
  2354. Name: "routine_schema",
  2355. Type: ast.TypeName{Name: "sql_identifier"},
  2356. Length: toPointer(64),
  2357. },
  2358. {
  2359. Name: "routine_name",
  2360. Type: ast.TypeName{Name: "sql_identifier"},
  2361. Length: toPointer(64),
  2362. },
  2363. {
  2364. Name: "privilege_type",
  2365. Type: ast.TypeName{Name: "character_data"},
  2366. },
  2367. {
  2368. Name: "is_grantable",
  2369. Type: ast.TypeName{Name: "yes_or_no"},
  2370. },
  2371. },
  2372. },
  2373. {
  2374. Rel: &ast.TableName{
  2375. Catalog: "pg_catalog",
  2376. Schema: "information_schema",
  2377. Name: "routine_routine_usage",
  2378. },
  2379. Columns: []*catalog.Column{
  2380. {
  2381. Name: "specific_catalog",
  2382. Type: ast.TypeName{Name: "sql_identifier"},
  2383. Length: toPointer(64),
  2384. },
  2385. {
  2386. Name: "specific_schema",
  2387. Type: ast.TypeName{Name: "sql_identifier"},
  2388. Length: toPointer(64),
  2389. },
  2390. {
  2391. Name: "specific_name",
  2392. Type: ast.TypeName{Name: "sql_identifier"},
  2393. Length: toPointer(64),
  2394. },
  2395. {
  2396. Name: "routine_catalog",
  2397. Type: ast.TypeName{Name: "sql_identifier"},
  2398. Length: toPointer(64),
  2399. },
  2400. {
  2401. Name: "routine_schema",
  2402. Type: ast.TypeName{Name: "sql_identifier"},
  2403. Length: toPointer(64),
  2404. },
  2405. {
  2406. Name: "routine_name",
  2407. Type: ast.TypeName{Name: "sql_identifier"},
  2408. Length: toPointer(64),
  2409. },
  2410. },
  2411. },
  2412. {
  2413. Rel: &ast.TableName{
  2414. Catalog: "pg_catalog",
  2415. Schema: "information_schema",
  2416. Name: "routine_sequence_usage",
  2417. },
  2418. Columns: []*catalog.Column{
  2419. {
  2420. Name: "specific_catalog",
  2421. Type: ast.TypeName{Name: "sql_identifier"},
  2422. Length: toPointer(64),
  2423. },
  2424. {
  2425. Name: "specific_schema",
  2426. Type: ast.TypeName{Name: "sql_identifier"},
  2427. Length: toPointer(64),
  2428. },
  2429. {
  2430. Name: "specific_name",
  2431. Type: ast.TypeName{Name: "sql_identifier"},
  2432. Length: toPointer(64),
  2433. },
  2434. {
  2435. Name: "routine_catalog",
  2436. Type: ast.TypeName{Name: "sql_identifier"},
  2437. Length: toPointer(64),
  2438. },
  2439. {
  2440. Name: "routine_schema",
  2441. Type: ast.TypeName{Name: "sql_identifier"},
  2442. Length: toPointer(64),
  2443. },
  2444. {
  2445. Name: "routine_name",
  2446. Type: ast.TypeName{Name: "sql_identifier"},
  2447. Length: toPointer(64),
  2448. },
  2449. {
  2450. Name: "sequence_catalog",
  2451. Type: ast.TypeName{Name: "sql_identifier"},
  2452. Length: toPointer(64),
  2453. },
  2454. {
  2455. Name: "sequence_schema",
  2456. Type: ast.TypeName{Name: "sql_identifier"},
  2457. Length: toPointer(64),
  2458. },
  2459. {
  2460. Name: "sequence_name",
  2461. Type: ast.TypeName{Name: "sql_identifier"},
  2462. Length: toPointer(64),
  2463. },
  2464. },
  2465. },
  2466. {
  2467. Rel: &ast.TableName{
  2468. Catalog: "pg_catalog",
  2469. Schema: "information_schema",
  2470. Name: "routine_table_usage",
  2471. },
  2472. Columns: []*catalog.Column{
  2473. {
  2474. Name: "specific_catalog",
  2475. Type: ast.TypeName{Name: "sql_identifier"},
  2476. Length: toPointer(64),
  2477. },
  2478. {
  2479. Name: "specific_schema",
  2480. Type: ast.TypeName{Name: "sql_identifier"},
  2481. Length: toPointer(64),
  2482. },
  2483. {
  2484. Name: "specific_name",
  2485. Type: ast.TypeName{Name: "sql_identifier"},
  2486. Length: toPointer(64),
  2487. },
  2488. {
  2489. Name: "routine_catalog",
  2490. Type: ast.TypeName{Name: "sql_identifier"},
  2491. Length: toPointer(64),
  2492. },
  2493. {
  2494. Name: "routine_schema",
  2495. Type: ast.TypeName{Name: "sql_identifier"},
  2496. Length: toPointer(64),
  2497. },
  2498. {
  2499. Name: "routine_name",
  2500. Type: ast.TypeName{Name: "sql_identifier"},
  2501. Length: toPointer(64),
  2502. },
  2503. {
  2504. Name: "table_catalog",
  2505. Type: ast.TypeName{Name: "sql_identifier"},
  2506. Length: toPointer(64),
  2507. },
  2508. {
  2509. Name: "table_schema",
  2510. Type: ast.TypeName{Name: "sql_identifier"},
  2511. Length: toPointer(64),
  2512. },
  2513. {
  2514. Name: "table_name",
  2515. Type: ast.TypeName{Name: "sql_identifier"},
  2516. Length: toPointer(64),
  2517. },
  2518. },
  2519. },
  2520. {
  2521. Rel: &ast.TableName{
  2522. Catalog: "pg_catalog",
  2523. Schema: "information_schema",
  2524. Name: "routines",
  2525. },
  2526. Columns: []*catalog.Column{
  2527. {
  2528. Name: "specific_catalog",
  2529. Type: ast.TypeName{Name: "sql_identifier"},
  2530. Length: toPointer(64),
  2531. },
  2532. {
  2533. Name: "specific_schema",
  2534. Type: ast.TypeName{Name: "sql_identifier"},
  2535. Length: toPointer(64),
  2536. },
  2537. {
  2538. Name: "specific_name",
  2539. Type: ast.TypeName{Name: "sql_identifier"},
  2540. Length: toPointer(64),
  2541. },
  2542. {
  2543. Name: "routine_catalog",
  2544. Type: ast.TypeName{Name: "sql_identifier"},
  2545. Length: toPointer(64),
  2546. },
  2547. {
  2548. Name: "routine_schema",
  2549. Type: ast.TypeName{Name: "sql_identifier"},
  2550. Length: toPointer(64),
  2551. },
  2552. {
  2553. Name: "routine_name",
  2554. Type: ast.TypeName{Name: "sql_identifier"},
  2555. Length: toPointer(64),
  2556. },
  2557. {
  2558. Name: "routine_type",
  2559. Type: ast.TypeName{Name: "character_data"},
  2560. },
  2561. {
  2562. Name: "module_catalog",
  2563. Type: ast.TypeName{Name: "sql_identifier"},
  2564. Length: toPointer(64),
  2565. },
  2566. {
  2567. Name: "module_schema",
  2568. Type: ast.TypeName{Name: "sql_identifier"},
  2569. Length: toPointer(64),
  2570. },
  2571. {
  2572. Name: "module_name",
  2573. Type: ast.TypeName{Name: "sql_identifier"},
  2574. Length: toPointer(64),
  2575. },
  2576. {
  2577. Name: "udt_catalog",
  2578. Type: ast.TypeName{Name: "sql_identifier"},
  2579. Length: toPointer(64),
  2580. },
  2581. {
  2582. Name: "udt_schema",
  2583. Type: ast.TypeName{Name: "sql_identifier"},
  2584. Length: toPointer(64),
  2585. },
  2586. {
  2587. Name: "udt_name",
  2588. Type: ast.TypeName{Name: "sql_identifier"},
  2589. Length: toPointer(64),
  2590. },
  2591. {
  2592. Name: "data_type",
  2593. Type: ast.TypeName{Name: "character_data"},
  2594. },
  2595. {
  2596. Name: "character_maximum_length",
  2597. Type: ast.TypeName{Name: "cardinal_number"},
  2598. Length: toPointer(4),
  2599. },
  2600. {
  2601. Name: "character_octet_length",
  2602. Type: ast.TypeName{Name: "cardinal_number"},
  2603. Length: toPointer(4),
  2604. },
  2605. {
  2606. Name: "character_set_catalog",
  2607. Type: ast.TypeName{Name: "sql_identifier"},
  2608. Length: toPointer(64),
  2609. },
  2610. {
  2611. Name: "character_set_schema",
  2612. Type: ast.TypeName{Name: "sql_identifier"},
  2613. Length: toPointer(64),
  2614. },
  2615. {
  2616. Name: "character_set_name",
  2617. Type: ast.TypeName{Name: "sql_identifier"},
  2618. Length: toPointer(64),
  2619. },
  2620. {
  2621. Name: "collation_catalog",
  2622. Type: ast.TypeName{Name: "sql_identifier"},
  2623. Length: toPointer(64),
  2624. },
  2625. {
  2626. Name: "collation_schema",
  2627. Type: ast.TypeName{Name: "sql_identifier"},
  2628. Length: toPointer(64),
  2629. },
  2630. {
  2631. Name: "collation_name",
  2632. Type: ast.TypeName{Name: "sql_identifier"},
  2633. Length: toPointer(64),
  2634. },
  2635. {
  2636. Name: "numeric_precision",
  2637. Type: ast.TypeName{Name: "cardinal_number"},
  2638. Length: toPointer(4),
  2639. },
  2640. {
  2641. Name: "numeric_precision_radix",
  2642. Type: ast.TypeName{Name: "cardinal_number"},
  2643. Length: toPointer(4),
  2644. },
  2645. {
  2646. Name: "numeric_scale",
  2647. Type: ast.TypeName{Name: "cardinal_number"},
  2648. Length: toPointer(4),
  2649. },
  2650. {
  2651. Name: "datetime_precision",
  2652. Type: ast.TypeName{Name: "cardinal_number"},
  2653. Length: toPointer(4),
  2654. },
  2655. {
  2656. Name: "interval_type",
  2657. Type: ast.TypeName{Name: "character_data"},
  2658. },
  2659. {
  2660. Name: "interval_precision",
  2661. Type: ast.TypeName{Name: "cardinal_number"},
  2662. Length: toPointer(4),
  2663. },
  2664. {
  2665. Name: "type_udt_catalog",
  2666. Type: ast.TypeName{Name: "sql_identifier"},
  2667. Length: toPointer(64),
  2668. },
  2669. {
  2670. Name: "type_udt_schema",
  2671. Type: ast.TypeName{Name: "sql_identifier"},
  2672. Length: toPointer(64),
  2673. },
  2674. {
  2675. Name: "type_udt_name",
  2676. Type: ast.TypeName{Name: "sql_identifier"},
  2677. Length: toPointer(64),
  2678. },
  2679. {
  2680. Name: "scope_catalog",
  2681. Type: ast.TypeName{Name: "sql_identifier"},
  2682. Length: toPointer(64),
  2683. },
  2684. {
  2685. Name: "scope_schema",
  2686. Type: ast.TypeName{Name: "sql_identifier"},
  2687. Length: toPointer(64),
  2688. },
  2689. {
  2690. Name: "scope_name",
  2691. Type: ast.TypeName{Name: "sql_identifier"},
  2692. Length: toPointer(64),
  2693. },
  2694. {
  2695. Name: "maximum_cardinality",
  2696. Type: ast.TypeName{Name: "cardinal_number"},
  2697. Length: toPointer(4),
  2698. },
  2699. {
  2700. Name: "dtd_identifier",
  2701. Type: ast.TypeName{Name: "sql_identifier"},
  2702. Length: toPointer(64),
  2703. },
  2704. {
  2705. Name: "routine_body",
  2706. Type: ast.TypeName{Name: "character_data"},
  2707. },
  2708. {
  2709. Name: "routine_definition",
  2710. Type: ast.TypeName{Name: "character_data"},
  2711. },
  2712. {
  2713. Name: "external_name",
  2714. Type: ast.TypeName{Name: "character_data"},
  2715. },
  2716. {
  2717. Name: "external_language",
  2718. Type: ast.TypeName{Name: "character_data"},
  2719. },
  2720. {
  2721. Name: "parameter_style",
  2722. Type: ast.TypeName{Name: "character_data"},
  2723. },
  2724. {
  2725. Name: "is_deterministic",
  2726. Type: ast.TypeName{Name: "yes_or_no"},
  2727. },
  2728. {
  2729. Name: "sql_data_access",
  2730. Type: ast.TypeName{Name: "character_data"},
  2731. },
  2732. {
  2733. Name: "is_null_call",
  2734. Type: ast.TypeName{Name: "yes_or_no"},
  2735. },
  2736. {
  2737. Name: "sql_path",
  2738. Type: ast.TypeName{Name: "character_data"},
  2739. },
  2740. {
  2741. Name: "schema_level_routine",
  2742. Type: ast.TypeName{Name: "yes_or_no"},
  2743. },
  2744. {
  2745. Name: "max_dynamic_result_sets",
  2746. Type: ast.TypeName{Name: "cardinal_number"},
  2747. Length: toPointer(4),
  2748. },
  2749. {
  2750. Name: "is_user_defined_cast",
  2751. Type: ast.TypeName{Name: "yes_or_no"},
  2752. },
  2753. {
  2754. Name: "is_implicitly_invocable",
  2755. Type: ast.TypeName{Name: "yes_or_no"},
  2756. },
  2757. {
  2758. Name: "security_type",
  2759. Type: ast.TypeName{Name: "character_data"},
  2760. },
  2761. {
  2762. Name: "to_sql_specific_catalog",
  2763. Type: ast.TypeName{Name: "sql_identifier"},
  2764. Length: toPointer(64),
  2765. },
  2766. {
  2767. Name: "to_sql_specific_schema",
  2768. Type: ast.TypeName{Name: "sql_identifier"},
  2769. Length: toPointer(64),
  2770. },
  2771. {
  2772. Name: "to_sql_specific_name",
  2773. Type: ast.TypeName{Name: "sql_identifier"},
  2774. Length: toPointer(64),
  2775. },
  2776. {
  2777. Name: "as_locator",
  2778. Type: ast.TypeName{Name: "yes_or_no"},
  2779. },
  2780. {
  2781. Name: "created",
  2782. Type: ast.TypeName{Name: "time_stamp"},
  2783. Length: toPointer(8),
  2784. },
  2785. {
  2786. Name: "last_altered",
  2787. Type: ast.TypeName{Name: "time_stamp"},
  2788. Length: toPointer(8),
  2789. },
  2790. {
  2791. Name: "new_savepoint_level",
  2792. Type: ast.TypeName{Name: "yes_or_no"},
  2793. },
  2794. {
  2795. Name: "is_udt_dependent",
  2796. Type: ast.TypeName{Name: "yes_or_no"},
  2797. },
  2798. {
  2799. Name: "result_cast_from_data_type",
  2800. Type: ast.TypeName{Name: "character_data"},
  2801. },
  2802. {
  2803. Name: "result_cast_as_locator",
  2804. Type: ast.TypeName{Name: "yes_or_no"},
  2805. },
  2806. {
  2807. Name: "result_cast_char_max_length",
  2808. Type: ast.TypeName{Name: "cardinal_number"},
  2809. Length: toPointer(4),
  2810. },
  2811. {
  2812. Name: "result_cast_char_octet_length",
  2813. Type: ast.TypeName{Name: "cardinal_number"},
  2814. Length: toPointer(4),
  2815. },
  2816. {
  2817. Name: "result_cast_char_set_catalog",
  2818. Type: ast.TypeName{Name: "sql_identifier"},
  2819. Length: toPointer(64),
  2820. },
  2821. {
  2822. Name: "result_cast_char_set_schema",
  2823. Type: ast.TypeName{Name: "sql_identifier"},
  2824. Length: toPointer(64),
  2825. },
  2826. {
  2827. Name: "result_cast_char_set_name",
  2828. Type: ast.TypeName{Name: "sql_identifier"},
  2829. Length: toPointer(64),
  2830. },
  2831. {
  2832. Name: "result_cast_collation_catalog",
  2833. Type: ast.TypeName{Name: "sql_identifier"},
  2834. Length: toPointer(64),
  2835. },
  2836. {
  2837. Name: "result_cast_collation_schema",
  2838. Type: ast.TypeName{Name: "sql_identifier"},
  2839. Length: toPointer(64),
  2840. },
  2841. {
  2842. Name: "result_cast_collation_name",
  2843. Type: ast.TypeName{Name: "sql_identifier"},
  2844. Length: toPointer(64),
  2845. },
  2846. {
  2847. Name: "result_cast_numeric_precision",
  2848. Type: ast.TypeName{Name: "cardinal_number"},
  2849. Length: toPointer(4),
  2850. },
  2851. {
  2852. Name: "result_cast_numeric_precision_radix",
  2853. Type: ast.TypeName{Name: "cardinal_number"},
  2854. Length: toPointer(4),
  2855. },
  2856. {
  2857. Name: "result_cast_numeric_scale",
  2858. Type: ast.TypeName{Name: "cardinal_number"},
  2859. Length: toPointer(4),
  2860. },
  2861. {
  2862. Name: "result_cast_datetime_precision",
  2863. Type: ast.TypeName{Name: "cardinal_number"},
  2864. Length: toPointer(4),
  2865. },
  2866. {
  2867. Name: "result_cast_interval_type",
  2868. Type: ast.TypeName{Name: "character_data"},
  2869. },
  2870. {
  2871. Name: "result_cast_interval_precision",
  2872. Type: ast.TypeName{Name: "cardinal_number"},
  2873. Length: toPointer(4),
  2874. },
  2875. {
  2876. Name: "result_cast_type_udt_catalog",
  2877. Type: ast.TypeName{Name: "sql_identifier"},
  2878. Length: toPointer(64),
  2879. },
  2880. {
  2881. Name: "result_cast_type_udt_schema",
  2882. Type: ast.TypeName{Name: "sql_identifier"},
  2883. Length: toPointer(64),
  2884. },
  2885. {
  2886. Name: "result_cast_type_udt_name",
  2887. Type: ast.TypeName{Name: "sql_identifier"},
  2888. Length: toPointer(64),
  2889. },
  2890. {
  2891. Name: "result_cast_scope_catalog",
  2892. Type: ast.TypeName{Name: "sql_identifier"},
  2893. Length: toPointer(64),
  2894. },
  2895. {
  2896. Name: "result_cast_scope_schema",
  2897. Type: ast.TypeName{Name: "sql_identifier"},
  2898. Length: toPointer(64),
  2899. },
  2900. {
  2901. Name: "result_cast_scope_name",
  2902. Type: ast.TypeName{Name: "sql_identifier"},
  2903. Length: toPointer(64),
  2904. },
  2905. {
  2906. Name: "result_cast_maximum_cardinality",
  2907. Type: ast.TypeName{Name: "cardinal_number"},
  2908. Length: toPointer(4),
  2909. },
  2910. {
  2911. Name: "result_cast_dtd_identifier",
  2912. Type: ast.TypeName{Name: "sql_identifier"},
  2913. Length: toPointer(64),
  2914. },
  2915. },
  2916. },
  2917. {
  2918. Rel: &ast.TableName{
  2919. Catalog: "pg_catalog",
  2920. Schema: "information_schema",
  2921. Name: "schemata",
  2922. },
  2923. Columns: []*catalog.Column{
  2924. {
  2925. Name: "catalog_name",
  2926. Type: ast.TypeName{Name: "sql_identifier"},
  2927. Length: toPointer(64),
  2928. },
  2929. {
  2930. Name: "schema_name",
  2931. Type: ast.TypeName{Name: "sql_identifier"},
  2932. Length: toPointer(64),
  2933. },
  2934. {
  2935. Name: "schema_owner",
  2936. Type: ast.TypeName{Name: "sql_identifier"},
  2937. Length: toPointer(64),
  2938. },
  2939. {
  2940. Name: "default_character_set_catalog",
  2941. Type: ast.TypeName{Name: "sql_identifier"},
  2942. Length: toPointer(64),
  2943. },
  2944. {
  2945. Name: "default_character_set_schema",
  2946. Type: ast.TypeName{Name: "sql_identifier"},
  2947. Length: toPointer(64),
  2948. },
  2949. {
  2950. Name: "default_character_set_name",
  2951. Type: ast.TypeName{Name: "sql_identifier"},
  2952. Length: toPointer(64),
  2953. },
  2954. {
  2955. Name: "sql_path",
  2956. Type: ast.TypeName{Name: "character_data"},
  2957. },
  2958. },
  2959. },
  2960. {
  2961. Rel: &ast.TableName{
  2962. Catalog: "pg_catalog",
  2963. Schema: "information_schema",
  2964. Name: "sequences",
  2965. },
  2966. Columns: []*catalog.Column{
  2967. {
  2968. Name: "sequence_catalog",
  2969. Type: ast.TypeName{Name: "sql_identifier"},
  2970. Length: toPointer(64),
  2971. },
  2972. {
  2973. Name: "sequence_schema",
  2974. Type: ast.TypeName{Name: "sql_identifier"},
  2975. Length: toPointer(64),
  2976. },
  2977. {
  2978. Name: "sequence_name",
  2979. Type: ast.TypeName{Name: "sql_identifier"},
  2980. Length: toPointer(64),
  2981. },
  2982. {
  2983. Name: "data_type",
  2984. Type: ast.TypeName{Name: "character_data"},
  2985. },
  2986. {
  2987. Name: "numeric_precision",
  2988. Type: ast.TypeName{Name: "cardinal_number"},
  2989. Length: toPointer(4),
  2990. },
  2991. {
  2992. Name: "numeric_precision_radix",
  2993. Type: ast.TypeName{Name: "cardinal_number"},
  2994. Length: toPointer(4),
  2995. },
  2996. {
  2997. Name: "numeric_scale",
  2998. Type: ast.TypeName{Name: "cardinal_number"},
  2999. Length: toPointer(4),
  3000. },
  3001. {
  3002. Name: "start_value",
  3003. Type: ast.TypeName{Name: "character_data"},
  3004. },
  3005. {
  3006. Name: "minimum_value",
  3007. Type: ast.TypeName{Name: "character_data"},
  3008. },
  3009. {
  3010. Name: "maximum_value",
  3011. Type: ast.TypeName{Name: "character_data"},
  3012. },
  3013. {
  3014. Name: "increment",
  3015. Type: ast.TypeName{Name: "character_data"},
  3016. },
  3017. {
  3018. Name: "cycle_option",
  3019. Type: ast.TypeName{Name: "yes_or_no"},
  3020. },
  3021. },
  3022. },
  3023. {
  3024. Rel: &ast.TableName{
  3025. Catalog: "pg_catalog",
  3026. Schema: "information_schema",
  3027. Name: "sql_features",
  3028. },
  3029. Columns: []*catalog.Column{
  3030. {
  3031. Name: "tableoid",
  3032. Type: ast.TypeName{Name: "oid"},
  3033. IsNotNull: true,
  3034. Length: toPointer(4),
  3035. },
  3036. {
  3037. Name: "cmax",
  3038. Type: ast.TypeName{Name: "cid"},
  3039. IsNotNull: true,
  3040. Length: toPointer(4),
  3041. },
  3042. {
  3043. Name: "xmax",
  3044. Type: ast.TypeName{Name: "xid"},
  3045. IsNotNull: true,
  3046. Length: toPointer(4),
  3047. },
  3048. {
  3049. Name: "cmin",
  3050. Type: ast.TypeName{Name: "cid"},
  3051. IsNotNull: true,
  3052. Length: toPointer(4),
  3053. },
  3054. {
  3055. Name: "xmin",
  3056. Type: ast.TypeName{Name: "xid"},
  3057. IsNotNull: true,
  3058. Length: toPointer(4),
  3059. },
  3060. {
  3061. Name: "ctid",
  3062. Type: ast.TypeName{Name: "tid"},
  3063. IsNotNull: true,
  3064. Length: toPointer(6),
  3065. },
  3066. {
  3067. Name: "feature_id",
  3068. Type: ast.TypeName{Name: "character_data"},
  3069. },
  3070. {
  3071. Name: "feature_name",
  3072. Type: ast.TypeName{Name: "character_data"},
  3073. },
  3074. {
  3075. Name: "sub_feature_id",
  3076. Type: ast.TypeName{Name: "character_data"},
  3077. },
  3078. {
  3079. Name: "sub_feature_name",
  3080. Type: ast.TypeName{Name: "character_data"},
  3081. },
  3082. {
  3083. Name: "is_supported",
  3084. Type: ast.TypeName{Name: "yes_or_no"},
  3085. },
  3086. {
  3087. Name: "is_verified_by",
  3088. Type: ast.TypeName{Name: "character_data"},
  3089. },
  3090. {
  3091. Name: "comments",
  3092. Type: ast.TypeName{Name: "character_data"},
  3093. },
  3094. },
  3095. },
  3096. {
  3097. Rel: &ast.TableName{
  3098. Catalog: "pg_catalog",
  3099. Schema: "information_schema",
  3100. Name: "sql_implementation_info",
  3101. },
  3102. Columns: []*catalog.Column{
  3103. {
  3104. Name: "tableoid",
  3105. Type: ast.TypeName{Name: "oid"},
  3106. IsNotNull: true,
  3107. Length: toPointer(4),
  3108. },
  3109. {
  3110. Name: "cmax",
  3111. Type: ast.TypeName{Name: "cid"},
  3112. IsNotNull: true,
  3113. Length: toPointer(4),
  3114. },
  3115. {
  3116. Name: "xmax",
  3117. Type: ast.TypeName{Name: "xid"},
  3118. IsNotNull: true,
  3119. Length: toPointer(4),
  3120. },
  3121. {
  3122. Name: "cmin",
  3123. Type: ast.TypeName{Name: "cid"},
  3124. IsNotNull: true,
  3125. Length: toPointer(4),
  3126. },
  3127. {
  3128. Name: "xmin",
  3129. Type: ast.TypeName{Name: "xid"},
  3130. IsNotNull: true,
  3131. Length: toPointer(4),
  3132. },
  3133. {
  3134. Name: "ctid",
  3135. Type: ast.TypeName{Name: "tid"},
  3136. IsNotNull: true,
  3137. Length: toPointer(6),
  3138. },
  3139. {
  3140. Name: "implementation_info_id",
  3141. Type: ast.TypeName{Name: "character_data"},
  3142. },
  3143. {
  3144. Name: "implementation_info_name",
  3145. Type: ast.TypeName{Name: "character_data"},
  3146. },
  3147. {
  3148. Name: "integer_value",
  3149. Type: ast.TypeName{Name: "cardinal_number"},
  3150. Length: toPointer(4),
  3151. },
  3152. {
  3153. Name: "character_value",
  3154. Type: ast.TypeName{Name: "character_data"},
  3155. },
  3156. {
  3157. Name: "comments",
  3158. Type: ast.TypeName{Name: "character_data"},
  3159. },
  3160. },
  3161. },
  3162. {
  3163. Rel: &ast.TableName{
  3164. Catalog: "pg_catalog",
  3165. Schema: "information_schema",
  3166. Name: "sql_parts",
  3167. },
  3168. Columns: []*catalog.Column{
  3169. {
  3170. Name: "tableoid",
  3171. Type: ast.TypeName{Name: "oid"},
  3172. IsNotNull: true,
  3173. Length: toPointer(4),
  3174. },
  3175. {
  3176. Name: "cmax",
  3177. Type: ast.TypeName{Name: "cid"},
  3178. IsNotNull: true,
  3179. Length: toPointer(4),
  3180. },
  3181. {
  3182. Name: "xmax",
  3183. Type: ast.TypeName{Name: "xid"},
  3184. IsNotNull: true,
  3185. Length: toPointer(4),
  3186. },
  3187. {
  3188. Name: "cmin",
  3189. Type: ast.TypeName{Name: "cid"},
  3190. IsNotNull: true,
  3191. Length: toPointer(4),
  3192. },
  3193. {
  3194. Name: "xmin",
  3195. Type: ast.TypeName{Name: "xid"},
  3196. IsNotNull: true,
  3197. Length: toPointer(4),
  3198. },
  3199. {
  3200. Name: "ctid",
  3201. Type: ast.TypeName{Name: "tid"},
  3202. IsNotNull: true,
  3203. Length: toPointer(6),
  3204. },
  3205. {
  3206. Name: "feature_id",
  3207. Type: ast.TypeName{Name: "character_data"},
  3208. },
  3209. {
  3210. Name: "feature_name",
  3211. Type: ast.TypeName{Name: "character_data"},
  3212. },
  3213. {
  3214. Name: "is_supported",
  3215. Type: ast.TypeName{Name: "yes_or_no"},
  3216. },
  3217. {
  3218. Name: "is_verified_by",
  3219. Type: ast.TypeName{Name: "character_data"},
  3220. },
  3221. {
  3222. Name: "comments",
  3223. Type: ast.TypeName{Name: "character_data"},
  3224. },
  3225. },
  3226. },
  3227. {
  3228. Rel: &ast.TableName{
  3229. Catalog: "pg_catalog",
  3230. Schema: "information_schema",
  3231. Name: "sql_sizing",
  3232. },
  3233. Columns: []*catalog.Column{
  3234. {
  3235. Name: "tableoid",
  3236. Type: ast.TypeName{Name: "oid"},
  3237. IsNotNull: true,
  3238. Length: toPointer(4),
  3239. },
  3240. {
  3241. Name: "cmax",
  3242. Type: ast.TypeName{Name: "cid"},
  3243. IsNotNull: true,
  3244. Length: toPointer(4),
  3245. },
  3246. {
  3247. Name: "xmax",
  3248. Type: ast.TypeName{Name: "xid"},
  3249. IsNotNull: true,
  3250. Length: toPointer(4),
  3251. },
  3252. {
  3253. Name: "cmin",
  3254. Type: ast.TypeName{Name: "cid"},
  3255. IsNotNull: true,
  3256. Length: toPointer(4),
  3257. },
  3258. {
  3259. Name: "xmin",
  3260. Type: ast.TypeName{Name: "xid"},
  3261. IsNotNull: true,
  3262. Length: toPointer(4),
  3263. },
  3264. {
  3265. Name: "ctid",
  3266. Type: ast.TypeName{Name: "tid"},
  3267. IsNotNull: true,
  3268. Length: toPointer(6),
  3269. },
  3270. {
  3271. Name: "sizing_id",
  3272. Type: ast.TypeName{Name: "cardinal_number"},
  3273. Length: toPointer(4),
  3274. },
  3275. {
  3276. Name: "sizing_name",
  3277. Type: ast.TypeName{Name: "character_data"},
  3278. },
  3279. {
  3280. Name: "supported_value",
  3281. Type: ast.TypeName{Name: "cardinal_number"},
  3282. Length: toPointer(4),
  3283. },
  3284. {
  3285. Name: "comments",
  3286. Type: ast.TypeName{Name: "character_data"},
  3287. },
  3288. },
  3289. },
  3290. {
  3291. Rel: &ast.TableName{
  3292. Catalog: "pg_catalog",
  3293. Schema: "information_schema",
  3294. Name: "table_constraints",
  3295. },
  3296. Columns: []*catalog.Column{
  3297. {
  3298. Name: "constraint_catalog",
  3299. Type: ast.TypeName{Name: "sql_identifier"},
  3300. Length: toPointer(64),
  3301. },
  3302. {
  3303. Name: "constraint_schema",
  3304. Type: ast.TypeName{Name: "sql_identifier"},
  3305. Length: toPointer(64),
  3306. },
  3307. {
  3308. Name: "constraint_name",
  3309. Type: ast.TypeName{Name: "sql_identifier"},
  3310. Length: toPointer(64),
  3311. },
  3312. {
  3313. Name: "table_catalog",
  3314. Type: ast.TypeName{Name: "sql_identifier"},
  3315. Length: toPointer(64),
  3316. },
  3317. {
  3318. Name: "table_schema",
  3319. Type: ast.TypeName{Name: "sql_identifier"},
  3320. Length: toPointer(64),
  3321. },
  3322. {
  3323. Name: "table_name",
  3324. Type: ast.TypeName{Name: "sql_identifier"},
  3325. Length: toPointer(64),
  3326. },
  3327. {
  3328. Name: "constraint_type",
  3329. Type: ast.TypeName{Name: "character_data"},
  3330. },
  3331. {
  3332. Name: "is_deferrable",
  3333. Type: ast.TypeName{Name: "yes_or_no"},
  3334. },
  3335. {
  3336. Name: "initially_deferred",
  3337. Type: ast.TypeName{Name: "yes_or_no"},
  3338. },
  3339. {
  3340. Name: "enforced",
  3341. Type: ast.TypeName{Name: "yes_or_no"},
  3342. },
  3343. {
  3344. Name: "nulls_distinct",
  3345. Type: ast.TypeName{Name: "yes_or_no"},
  3346. },
  3347. },
  3348. },
  3349. {
  3350. Rel: &ast.TableName{
  3351. Catalog: "pg_catalog",
  3352. Schema: "information_schema",
  3353. Name: "table_privileges",
  3354. },
  3355. Columns: []*catalog.Column{
  3356. {
  3357. Name: "grantor",
  3358. Type: ast.TypeName{Name: "sql_identifier"},
  3359. Length: toPointer(64),
  3360. },
  3361. {
  3362. Name: "grantee",
  3363. Type: ast.TypeName{Name: "sql_identifier"},
  3364. Length: toPointer(64),
  3365. },
  3366. {
  3367. Name: "table_catalog",
  3368. Type: ast.TypeName{Name: "sql_identifier"},
  3369. Length: toPointer(64),
  3370. },
  3371. {
  3372. Name: "table_schema",
  3373. Type: ast.TypeName{Name: "sql_identifier"},
  3374. Length: toPointer(64),
  3375. },
  3376. {
  3377. Name: "table_name",
  3378. Type: ast.TypeName{Name: "sql_identifier"},
  3379. Length: toPointer(64),
  3380. },
  3381. {
  3382. Name: "privilege_type",
  3383. Type: ast.TypeName{Name: "character_data"},
  3384. },
  3385. {
  3386. Name: "is_grantable",
  3387. Type: ast.TypeName{Name: "yes_or_no"},
  3388. },
  3389. {
  3390. Name: "with_hierarchy",
  3391. Type: ast.TypeName{Name: "yes_or_no"},
  3392. },
  3393. },
  3394. },
  3395. {
  3396. Rel: &ast.TableName{
  3397. Catalog: "pg_catalog",
  3398. Schema: "information_schema",
  3399. Name: "tables",
  3400. },
  3401. Columns: []*catalog.Column{
  3402. {
  3403. Name: "table_catalog",
  3404. Type: ast.TypeName{Name: "sql_identifier"},
  3405. Length: toPointer(64),
  3406. },
  3407. {
  3408. Name: "table_schema",
  3409. Type: ast.TypeName{Name: "sql_identifier"},
  3410. Length: toPointer(64),
  3411. },
  3412. {
  3413. Name: "table_name",
  3414. Type: ast.TypeName{Name: "sql_identifier"},
  3415. Length: toPointer(64),
  3416. },
  3417. {
  3418. Name: "table_type",
  3419. Type: ast.TypeName{Name: "character_data"},
  3420. },
  3421. {
  3422. Name: "self_referencing_column_name",
  3423. Type: ast.TypeName{Name: "sql_identifier"},
  3424. Length: toPointer(64),
  3425. },
  3426. {
  3427. Name: "reference_generation",
  3428. Type: ast.TypeName{Name: "character_data"},
  3429. },
  3430. {
  3431. Name: "user_defined_type_catalog",
  3432. Type: ast.TypeName{Name: "sql_identifier"},
  3433. Length: toPointer(64),
  3434. },
  3435. {
  3436. Name: "user_defined_type_schema",
  3437. Type: ast.TypeName{Name: "sql_identifier"},
  3438. Length: toPointer(64),
  3439. },
  3440. {
  3441. Name: "user_defined_type_name",
  3442. Type: ast.TypeName{Name: "sql_identifier"},
  3443. Length: toPointer(64),
  3444. },
  3445. {
  3446. Name: "is_insertable_into",
  3447. Type: ast.TypeName{Name: "yes_or_no"},
  3448. },
  3449. {
  3450. Name: "is_typed",
  3451. Type: ast.TypeName{Name: "yes_or_no"},
  3452. },
  3453. {
  3454. Name: "commit_action",
  3455. Type: ast.TypeName{Name: "character_data"},
  3456. },
  3457. },
  3458. },
  3459. {
  3460. Rel: &ast.TableName{
  3461. Catalog: "pg_catalog",
  3462. Schema: "information_schema",
  3463. Name: "transforms",
  3464. },
  3465. Columns: []*catalog.Column{
  3466. {
  3467. Name: "udt_catalog",
  3468. Type: ast.TypeName{Name: "sql_identifier"},
  3469. Length: toPointer(64),
  3470. },
  3471. {
  3472. Name: "udt_schema",
  3473. Type: ast.TypeName{Name: "sql_identifier"},
  3474. Length: toPointer(64),
  3475. },
  3476. {
  3477. Name: "udt_name",
  3478. Type: ast.TypeName{Name: "sql_identifier"},
  3479. Length: toPointer(64),
  3480. },
  3481. {
  3482. Name: "specific_catalog",
  3483. Type: ast.TypeName{Name: "sql_identifier"},
  3484. Length: toPointer(64),
  3485. },
  3486. {
  3487. Name: "specific_schema",
  3488. Type: ast.TypeName{Name: "sql_identifier"},
  3489. Length: toPointer(64),
  3490. },
  3491. {
  3492. Name: "specific_name",
  3493. Type: ast.TypeName{Name: "sql_identifier"},
  3494. Length: toPointer(64),
  3495. },
  3496. {
  3497. Name: "group_name",
  3498. Type: ast.TypeName{Name: "sql_identifier"},
  3499. Length: toPointer(64),
  3500. },
  3501. {
  3502. Name: "transform_type",
  3503. Type: ast.TypeName{Name: "character_data"},
  3504. },
  3505. },
  3506. },
  3507. {
  3508. Rel: &ast.TableName{
  3509. Catalog: "pg_catalog",
  3510. Schema: "information_schema",
  3511. Name: "triggered_update_columns",
  3512. },
  3513. Columns: []*catalog.Column{
  3514. {
  3515. Name: "trigger_catalog",
  3516. Type: ast.TypeName{Name: "sql_identifier"},
  3517. Length: toPointer(64),
  3518. },
  3519. {
  3520. Name: "trigger_schema",
  3521. Type: ast.TypeName{Name: "sql_identifier"},
  3522. Length: toPointer(64),
  3523. },
  3524. {
  3525. Name: "trigger_name",
  3526. Type: ast.TypeName{Name: "sql_identifier"},
  3527. Length: toPointer(64),
  3528. },
  3529. {
  3530. Name: "event_object_catalog",
  3531. Type: ast.TypeName{Name: "sql_identifier"},
  3532. Length: toPointer(64),
  3533. },
  3534. {
  3535. Name: "event_object_schema",
  3536. Type: ast.TypeName{Name: "sql_identifier"},
  3537. Length: toPointer(64),
  3538. },
  3539. {
  3540. Name: "event_object_table",
  3541. Type: ast.TypeName{Name: "sql_identifier"},
  3542. Length: toPointer(64),
  3543. },
  3544. {
  3545. Name: "event_object_column",
  3546. Type: ast.TypeName{Name: "sql_identifier"},
  3547. Length: toPointer(64),
  3548. },
  3549. },
  3550. },
  3551. {
  3552. Rel: &ast.TableName{
  3553. Catalog: "pg_catalog",
  3554. Schema: "information_schema",
  3555. Name: "triggers",
  3556. },
  3557. Columns: []*catalog.Column{
  3558. {
  3559. Name: "trigger_catalog",
  3560. Type: ast.TypeName{Name: "sql_identifier"},
  3561. Length: toPointer(64),
  3562. },
  3563. {
  3564. Name: "trigger_schema",
  3565. Type: ast.TypeName{Name: "sql_identifier"},
  3566. Length: toPointer(64),
  3567. },
  3568. {
  3569. Name: "trigger_name",
  3570. Type: ast.TypeName{Name: "sql_identifier"},
  3571. Length: toPointer(64),
  3572. },
  3573. {
  3574. Name: "event_manipulation",
  3575. Type: ast.TypeName{Name: "character_data"},
  3576. },
  3577. {
  3578. Name: "event_object_catalog",
  3579. Type: ast.TypeName{Name: "sql_identifier"},
  3580. Length: toPointer(64),
  3581. },
  3582. {
  3583. Name: "event_object_schema",
  3584. Type: ast.TypeName{Name: "sql_identifier"},
  3585. Length: toPointer(64),
  3586. },
  3587. {
  3588. Name: "event_object_table",
  3589. Type: ast.TypeName{Name: "sql_identifier"},
  3590. Length: toPointer(64),
  3591. },
  3592. {
  3593. Name: "action_order",
  3594. Type: ast.TypeName{Name: "cardinal_number"},
  3595. Length: toPointer(4),
  3596. },
  3597. {
  3598. Name: "action_condition",
  3599. Type: ast.TypeName{Name: "character_data"},
  3600. },
  3601. {
  3602. Name: "action_statement",
  3603. Type: ast.TypeName{Name: "character_data"},
  3604. },
  3605. {
  3606. Name: "action_orientation",
  3607. Type: ast.TypeName{Name: "character_data"},
  3608. },
  3609. {
  3610. Name: "action_timing",
  3611. Type: ast.TypeName{Name: "character_data"},
  3612. },
  3613. {
  3614. Name: "action_reference_old_table",
  3615. Type: ast.TypeName{Name: "sql_identifier"},
  3616. Length: toPointer(64),
  3617. },
  3618. {
  3619. Name: "action_reference_new_table",
  3620. Type: ast.TypeName{Name: "sql_identifier"},
  3621. Length: toPointer(64),
  3622. },
  3623. {
  3624. Name: "action_reference_old_row",
  3625. Type: ast.TypeName{Name: "sql_identifier"},
  3626. Length: toPointer(64),
  3627. },
  3628. {
  3629. Name: "action_reference_new_row",
  3630. Type: ast.TypeName{Name: "sql_identifier"},
  3631. Length: toPointer(64),
  3632. },
  3633. {
  3634. Name: "created",
  3635. Type: ast.TypeName{Name: "time_stamp"},
  3636. Length: toPointer(8),
  3637. },
  3638. },
  3639. },
  3640. {
  3641. Rel: &ast.TableName{
  3642. Catalog: "pg_catalog",
  3643. Schema: "information_schema",
  3644. Name: "udt_privileges",
  3645. },
  3646. Columns: []*catalog.Column{
  3647. {
  3648. Name: "grantor",
  3649. Type: ast.TypeName{Name: "sql_identifier"},
  3650. Length: toPointer(64),
  3651. },
  3652. {
  3653. Name: "grantee",
  3654. Type: ast.TypeName{Name: "sql_identifier"},
  3655. Length: toPointer(64),
  3656. },
  3657. {
  3658. Name: "udt_catalog",
  3659. Type: ast.TypeName{Name: "sql_identifier"},
  3660. Length: toPointer(64),
  3661. },
  3662. {
  3663. Name: "udt_schema",
  3664. Type: ast.TypeName{Name: "sql_identifier"},
  3665. Length: toPointer(64),
  3666. },
  3667. {
  3668. Name: "udt_name",
  3669. Type: ast.TypeName{Name: "sql_identifier"},
  3670. Length: toPointer(64),
  3671. },
  3672. {
  3673. Name: "privilege_type",
  3674. Type: ast.TypeName{Name: "character_data"},
  3675. },
  3676. {
  3677. Name: "is_grantable",
  3678. Type: ast.TypeName{Name: "yes_or_no"},
  3679. },
  3680. },
  3681. },
  3682. {
  3683. Rel: &ast.TableName{
  3684. Catalog: "pg_catalog",
  3685. Schema: "information_schema",
  3686. Name: "usage_privileges",
  3687. },
  3688. Columns: []*catalog.Column{
  3689. {
  3690. Name: "grantor",
  3691. Type: ast.TypeName{Name: "sql_identifier"},
  3692. Length: toPointer(64),
  3693. },
  3694. {
  3695. Name: "grantee",
  3696. Type: ast.TypeName{Name: "sql_identifier"},
  3697. Length: toPointer(64),
  3698. },
  3699. {
  3700. Name: "object_catalog",
  3701. Type: ast.TypeName{Name: "sql_identifier"},
  3702. Length: toPointer(64),
  3703. },
  3704. {
  3705. Name: "object_schema",
  3706. Type: ast.TypeName{Name: "sql_identifier"},
  3707. Length: toPointer(64),
  3708. },
  3709. {
  3710. Name: "object_name",
  3711. Type: ast.TypeName{Name: "sql_identifier"},
  3712. Length: toPointer(64),
  3713. },
  3714. {
  3715. Name: "object_type",
  3716. Type: ast.TypeName{Name: "character_data"},
  3717. },
  3718. {
  3719. Name: "privilege_type",
  3720. Type: ast.TypeName{Name: "character_data"},
  3721. },
  3722. {
  3723. Name: "is_grantable",
  3724. Type: ast.TypeName{Name: "yes_or_no"},
  3725. },
  3726. },
  3727. },
  3728. {
  3729. Rel: &ast.TableName{
  3730. Catalog: "pg_catalog",
  3731. Schema: "information_schema",
  3732. Name: "user_defined_types",
  3733. },
  3734. Columns: []*catalog.Column{
  3735. {
  3736. Name: "user_defined_type_catalog",
  3737. Type: ast.TypeName{Name: "sql_identifier"},
  3738. Length: toPointer(64),
  3739. },
  3740. {
  3741. Name: "user_defined_type_schema",
  3742. Type: ast.TypeName{Name: "sql_identifier"},
  3743. Length: toPointer(64),
  3744. },
  3745. {
  3746. Name: "user_defined_type_name",
  3747. Type: ast.TypeName{Name: "sql_identifier"},
  3748. Length: toPointer(64),
  3749. },
  3750. {
  3751. Name: "user_defined_type_category",
  3752. Type: ast.TypeName{Name: "character_data"},
  3753. },
  3754. {
  3755. Name: "is_instantiable",
  3756. Type: ast.TypeName{Name: "yes_or_no"},
  3757. },
  3758. {
  3759. Name: "is_final",
  3760. Type: ast.TypeName{Name: "yes_or_no"},
  3761. },
  3762. {
  3763. Name: "ordering_form",
  3764. Type: ast.TypeName{Name: "character_data"},
  3765. },
  3766. {
  3767. Name: "ordering_category",
  3768. Type: ast.TypeName{Name: "character_data"},
  3769. },
  3770. {
  3771. Name: "ordering_routine_catalog",
  3772. Type: ast.TypeName{Name: "sql_identifier"},
  3773. Length: toPointer(64),
  3774. },
  3775. {
  3776. Name: "ordering_routine_schema",
  3777. Type: ast.TypeName{Name: "sql_identifier"},
  3778. Length: toPointer(64),
  3779. },
  3780. {
  3781. Name: "ordering_routine_name",
  3782. Type: ast.TypeName{Name: "sql_identifier"},
  3783. Length: toPointer(64),
  3784. },
  3785. {
  3786. Name: "reference_type",
  3787. Type: ast.TypeName{Name: "character_data"},
  3788. },
  3789. {
  3790. Name: "data_type",
  3791. Type: ast.TypeName{Name: "character_data"},
  3792. },
  3793. {
  3794. Name: "character_maximum_length",
  3795. Type: ast.TypeName{Name: "cardinal_number"},
  3796. Length: toPointer(4),
  3797. },
  3798. {
  3799. Name: "character_octet_length",
  3800. Type: ast.TypeName{Name: "cardinal_number"},
  3801. Length: toPointer(4),
  3802. },
  3803. {
  3804. Name: "character_set_catalog",
  3805. Type: ast.TypeName{Name: "sql_identifier"},
  3806. Length: toPointer(64),
  3807. },
  3808. {
  3809. Name: "character_set_schema",
  3810. Type: ast.TypeName{Name: "sql_identifier"},
  3811. Length: toPointer(64),
  3812. },
  3813. {
  3814. Name: "character_set_name",
  3815. Type: ast.TypeName{Name: "sql_identifier"},
  3816. Length: toPointer(64),
  3817. },
  3818. {
  3819. Name: "collation_catalog",
  3820. Type: ast.TypeName{Name: "sql_identifier"},
  3821. Length: toPointer(64),
  3822. },
  3823. {
  3824. Name: "collation_schema",
  3825. Type: ast.TypeName{Name: "sql_identifier"},
  3826. Length: toPointer(64),
  3827. },
  3828. {
  3829. Name: "collation_name",
  3830. Type: ast.TypeName{Name: "sql_identifier"},
  3831. Length: toPointer(64),
  3832. },
  3833. {
  3834. Name: "numeric_precision",
  3835. Type: ast.TypeName{Name: "cardinal_number"},
  3836. Length: toPointer(4),
  3837. },
  3838. {
  3839. Name: "numeric_precision_radix",
  3840. Type: ast.TypeName{Name: "cardinal_number"},
  3841. Length: toPointer(4),
  3842. },
  3843. {
  3844. Name: "numeric_scale",
  3845. Type: ast.TypeName{Name: "cardinal_number"},
  3846. Length: toPointer(4),
  3847. },
  3848. {
  3849. Name: "datetime_precision",
  3850. Type: ast.TypeName{Name: "cardinal_number"},
  3851. Length: toPointer(4),
  3852. },
  3853. {
  3854. Name: "interval_type",
  3855. Type: ast.TypeName{Name: "character_data"},
  3856. },
  3857. {
  3858. Name: "interval_precision",
  3859. Type: ast.TypeName{Name: "cardinal_number"},
  3860. Length: toPointer(4),
  3861. },
  3862. {
  3863. Name: "source_dtd_identifier",
  3864. Type: ast.TypeName{Name: "sql_identifier"},
  3865. Length: toPointer(64),
  3866. },
  3867. {
  3868. Name: "ref_dtd_identifier",
  3869. Type: ast.TypeName{Name: "sql_identifier"},
  3870. Length: toPointer(64),
  3871. },
  3872. },
  3873. },
  3874. {
  3875. Rel: &ast.TableName{
  3876. Catalog: "pg_catalog",
  3877. Schema: "information_schema",
  3878. Name: "user_mapping_options",
  3879. },
  3880. Columns: []*catalog.Column{
  3881. {
  3882. Name: "authorization_identifier",
  3883. Type: ast.TypeName{Name: "sql_identifier"},
  3884. Length: toPointer(64),
  3885. },
  3886. {
  3887. Name: "foreign_server_catalog",
  3888. Type: ast.TypeName{Name: "sql_identifier"},
  3889. Length: toPointer(64),
  3890. },
  3891. {
  3892. Name: "foreign_server_name",
  3893. Type: ast.TypeName{Name: "sql_identifier"},
  3894. Length: toPointer(64),
  3895. },
  3896. {
  3897. Name: "option_name",
  3898. Type: ast.TypeName{Name: "sql_identifier"},
  3899. Length: toPointer(64),
  3900. },
  3901. {
  3902. Name: "option_value",
  3903. Type: ast.TypeName{Name: "character_data"},
  3904. },
  3905. },
  3906. },
  3907. {
  3908. Rel: &ast.TableName{
  3909. Catalog: "pg_catalog",
  3910. Schema: "information_schema",
  3911. Name: "user_mappings",
  3912. },
  3913. Columns: []*catalog.Column{
  3914. {
  3915. Name: "authorization_identifier",
  3916. Type: ast.TypeName{Name: "sql_identifier"},
  3917. Length: toPointer(64),
  3918. },
  3919. {
  3920. Name: "foreign_server_catalog",
  3921. Type: ast.TypeName{Name: "sql_identifier"},
  3922. Length: toPointer(64),
  3923. },
  3924. {
  3925. Name: "foreign_server_name",
  3926. Type: ast.TypeName{Name: "sql_identifier"},
  3927. Length: toPointer(64),
  3928. },
  3929. },
  3930. },
  3931. {
  3932. Rel: &ast.TableName{
  3933. Catalog: "pg_catalog",
  3934. Schema: "information_schema",
  3935. Name: "view_column_usage",
  3936. },
  3937. Columns: []*catalog.Column{
  3938. {
  3939. Name: "view_catalog",
  3940. Type: ast.TypeName{Name: "sql_identifier"},
  3941. Length: toPointer(64),
  3942. },
  3943. {
  3944. Name: "view_schema",
  3945. Type: ast.TypeName{Name: "sql_identifier"},
  3946. Length: toPointer(64),
  3947. },
  3948. {
  3949. Name: "view_name",
  3950. Type: ast.TypeName{Name: "sql_identifier"},
  3951. Length: toPointer(64),
  3952. },
  3953. {
  3954. Name: "table_catalog",
  3955. Type: ast.TypeName{Name: "sql_identifier"},
  3956. Length: toPointer(64),
  3957. },
  3958. {
  3959. Name: "table_schema",
  3960. Type: ast.TypeName{Name: "sql_identifier"},
  3961. Length: toPointer(64),
  3962. },
  3963. {
  3964. Name: "table_name",
  3965. Type: ast.TypeName{Name: "sql_identifier"},
  3966. Length: toPointer(64),
  3967. },
  3968. {
  3969. Name: "column_name",
  3970. Type: ast.TypeName{Name: "sql_identifier"},
  3971. Length: toPointer(64),
  3972. },
  3973. },
  3974. },
  3975. {
  3976. Rel: &ast.TableName{
  3977. Catalog: "pg_catalog",
  3978. Schema: "information_schema",
  3979. Name: "view_routine_usage",
  3980. },
  3981. Columns: []*catalog.Column{
  3982. {
  3983. Name: "table_catalog",
  3984. Type: ast.TypeName{Name: "sql_identifier"},
  3985. Length: toPointer(64),
  3986. },
  3987. {
  3988. Name: "table_schema",
  3989. Type: ast.TypeName{Name: "sql_identifier"},
  3990. Length: toPointer(64),
  3991. },
  3992. {
  3993. Name: "table_name",
  3994. Type: ast.TypeName{Name: "sql_identifier"},
  3995. Length: toPointer(64),
  3996. },
  3997. {
  3998. Name: "specific_catalog",
  3999. Type: ast.TypeName{Name: "sql_identifier"},
  4000. Length: toPointer(64),
  4001. },
  4002. {
  4003. Name: "specific_schema",
  4004. Type: ast.TypeName{Name: "sql_identifier"},
  4005. Length: toPointer(64),
  4006. },
  4007. {
  4008. Name: "specific_name",
  4009. Type: ast.TypeName{Name: "sql_identifier"},
  4010. Length: toPointer(64),
  4011. },
  4012. },
  4013. },
  4014. {
  4015. Rel: &ast.TableName{
  4016. Catalog: "pg_catalog",
  4017. Schema: "information_schema",
  4018. Name: "view_table_usage",
  4019. },
  4020. Columns: []*catalog.Column{
  4021. {
  4022. Name: "view_catalog",
  4023. Type: ast.TypeName{Name: "sql_identifier"},
  4024. Length: toPointer(64),
  4025. },
  4026. {
  4027. Name: "view_schema",
  4028. Type: ast.TypeName{Name: "sql_identifier"},
  4029. Length: toPointer(64),
  4030. },
  4031. {
  4032. Name: "view_name",
  4033. Type: ast.TypeName{Name: "sql_identifier"},
  4034. Length: toPointer(64),
  4035. },
  4036. {
  4037. Name: "table_catalog",
  4038. Type: ast.TypeName{Name: "sql_identifier"},
  4039. Length: toPointer(64),
  4040. },
  4041. {
  4042. Name: "table_schema",
  4043. Type: ast.TypeName{Name: "sql_identifier"},
  4044. Length: toPointer(64),
  4045. },
  4046. {
  4047. Name: "table_name",
  4048. Type: ast.TypeName{Name: "sql_identifier"},
  4049. Length: toPointer(64),
  4050. },
  4051. },
  4052. },
  4053. {
  4054. Rel: &ast.TableName{
  4055. Catalog: "pg_catalog",
  4056. Schema: "information_schema",
  4057. Name: "views",
  4058. },
  4059. Columns: []*catalog.Column{
  4060. {
  4061. Name: "table_catalog",
  4062. Type: ast.TypeName{Name: "sql_identifier"},
  4063. Length: toPointer(64),
  4064. },
  4065. {
  4066. Name: "table_schema",
  4067. Type: ast.TypeName{Name: "sql_identifier"},
  4068. Length: toPointer(64),
  4069. },
  4070. {
  4071. Name: "table_name",
  4072. Type: ast.TypeName{Name: "sql_identifier"},
  4073. Length: toPointer(64),
  4074. },
  4075. {
  4076. Name: "view_definition",
  4077. Type: ast.TypeName{Name: "character_data"},
  4078. },
  4079. {
  4080. Name: "check_option",
  4081. Type: ast.TypeName{Name: "character_data"},
  4082. },
  4083. {
  4084. Name: "is_updatable",
  4085. Type: ast.TypeName{Name: "yes_or_no"},
  4086. },
  4087. {
  4088. Name: "is_insertable_into",
  4089. Type: ast.TypeName{Name: "yes_or_no"},
  4090. },
  4091. {
  4092. Name: "is_trigger_updatable",
  4093. Type: ast.TypeName{Name: "yes_or_no"},
  4094. },
  4095. {
  4096. Name: "is_trigger_deletable",
  4097. Type: ast.TypeName{Name: "yes_or_no"},
  4098. },
  4099. {
  4100. Name: "is_trigger_insertable_into",
  4101. Type: ast.TypeName{Name: "yes_or_no"},
  4102. },
  4103. },
  4104. },
  4105. }
  4106. return s
  4107. }