Title: Querying Postgres Materialized Views Catalog: relation "pg_matviews" does not exist · Issue #3403 · sqlc-dev/sqlc · GitHub
Open Graph Title: Querying Postgres Materialized Views Catalog: relation "pg_matviews" does not exist · Issue #3403 · sqlc-dev/sqlc
X Title: Querying Postgres Materialized Views Catalog: relation "pg_matviews" does not exist · Issue #3403 · sqlc-dev/sqlc
Description: Version 1.26.0 What happened? A bug happened! Running: go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest sqlc generate errors with: relation "pg_matviews" does not exist. tried :exec, :many as well in terms of the sqlc annotations. sql...
Open Graph Description: Version 1.26.0 What happened? A bug happened! Running: go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest sqlc generate errors with: relation "pg_matviews" does not exist. tried :exec, :many as we...
X Description: Version 1.26.0 What happened? A bug happened! Running: go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest sqlc generate errors with: relation "pg_matviews" does not exist. tried :exec, :...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Querying Postgres Materialized Views Catalog: relation \"pg_matviews\" does not exist","articleBody":"### Version\r\n\r\n1.26.0\r\n\r\n### What happened?\r\n\r\nA bug happened! Running: \r\n\r\n```\r\ngo install github.com/sqlc-dev/sqlc/cmd/sqlc@latest\r\nsqlc generate\r\n```\r\n\r\nerrors with:\r\n\r\n> relation \"pg_matviews\" does not exist. \r\n\r\ntried `:exec`, `:many` as well in terms of the `sqlc` annotations. `sqlc vet` returns the same error.\r\n\r\n---\r\n\r\nprior art:\r\n\r\n- https://github.com/sqlc-dev/sqlc/pull/1044\r\n- https://github.com/sqlc-dev/sqlc/issues/1021\r\n- https://github.com/sqlc-dev/sqlc/pull/1509\r\n\r\n---\r\n\r\nversions:\r\n\r\n```\r\n❯ sqlc version\r\nv1.26.0\r\n```\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Database schema\r\n\r\n_No response_\r\n\r\n### SQL queries\r\n\r\n```sql\r\n-- name: ListMatViews :execresult\r\n\r\nSELECT schemaname AS schema_name,\r\n matviewname AS view_name,\r\n matviewowner AS owner,\r\n ispopulated AS is_populated,\r\n definition\r\nFROM pg_matviews\r\nORDER BY schemaname,\r\n matviewname;\r\n```\r\n\r\n\r\n### Configuration\r\n\r\n_No response_\r\n\r\n### Playground URL\r\n\r\nhttps://play.sqlc.dev/p/0eae0cbbe4f0c8bd76da5385dfb3e69a9196f6bad0b01ace20a669b9621274a2\r\n\r\n### What operating system are you using?\r\n\r\nmacOS ARM M1\r\n\r\n### What database engines are you using?\r\n\r\nPostgreSQL\r\n\r\n```\r\nSELECT version();\r\nPostgreSQL 16.2 (Debian 16.2-1.pgdg120+2) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit\r\n```\r\n\r\n### What type of code are you generating?\r\n\r\nGo\r\n\r\n```\r\n❯ go version\r\ngo version go1.22.3 darwin/arm64\r\n```","author":{"url":"https://github.com/mikeblum","@type":"Person","name":"mikeblum"},"datePublished":"2024-05-28T15:20:21Z","url":"https://github.com/sqlc-dev/sqlc/issues/3403"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b0e18211-c437-08ab-e8dd-ce956f0b80c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B604:31E99C:220F70B:2D728D9:6B018B5D |
| html-safe-nonce | 06f053e41d35050ce30daa4a741c2dc8481c42a820ac3912830c5620d39b60be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjA0OjMxRTk5QzoyMjBGNzBCOjJENzI4RDk6NkIwMThCNUQiLCJ2aXNpdG9yX2lkIjoiNjQyNjEzMTM3NDcxODAyMjA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2052104053618270d0bf27cb4ccf419a798acaf30eb1babb922b5121c06d497d |
| hovercard-subject-tag | issue:2321354988 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/3403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57cb4e8bc5b6df2f1b7d2ad8383cf061437b7c7d7ab397e680c93a7b227182d1/sqlc-dev/sqlc/issues/3403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57cb4e8bc5b6df2f1b7d2ad8383cf061437b7c7d7ab397e680c93a7b227182d1/sqlc-dev/sqlc/issues/3403 |
| og:image:alt | Version 1.26.0 What happened? A bug happened! Running: go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest sqlc generate errors with: relation "pg_matviews" does not exist. tried :exec, :many as we... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikeblum |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width