Title: Postgres materialized views problem · Issue #1021 · sqlc-dev/sqlc · GitHub
Open Graph Title: Postgres materialized views problem · Issue #1021 · sqlc-dev/sqlc
X Title: Postgres materialized views problem · Issue #1021 · sqlc-dev/sqlc
Description: Hi! Help needed. SQLC 1.8.0 Database PostgreSQL 13.2 I have materialized view as shown below: create materialized view m_lentities_assets as select l.id as lentity_id, l.short_name as lentity_short_name, l.full_name as lentity_full_name,...
Open Graph Description: Hi! Help needed. SQLC 1.8.0 Database PostgreSQL 13.2 I have materialized view as shown below: create materialized view m_lentities_assets as select l.id as lentity_id, l.short_name as lentity_short...
X Description: Hi! Help needed. SQLC 1.8.0 Database PostgreSQL 13.2 I have materialized view as shown below: create materialized view m_lentities_assets as select l.id as lentity_id, l.short_name as lentity_short...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1021
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Postgres materialized views problem","articleBody":"Hi!\r\nHelp needed.\r\n\r\nSQLC 1.8.0\r\nDatabase PostgreSQL 13.2\r\n\r\nI have materialized view as shown below:\r\n\r\n```\r\ncreate materialized view m_lentities_assets as\r\n select l.id as lentity_id,\r\n l.short_name as lentity_short_name,\r\n l.full_name as lentity_full_name,\r\n l.status as lentity_status,\r\n m.role_id as lentity_role_id,\r\n a.id as asset_id,\r\n a.parent_id as asset_parent_id,\r\n a.atypes_id as asset_atypes_id,\r\n a.name as asset_name,\r\n a.status as asset_status\r\n from lentities l,\r\n assets a,\r\n lentity_assets m\r\n where m.lentity_id = l.id\r\n and m.asset_id = a.id\r\n with no data;\r\n\r\nrefresh materialized view m_lentities_assets;\r\n```\r\nand query respectively:\r\n\r\n```\r\n-- name: MLentitiesAssetsGet :many\r\nselect *\r\n from m_lentities_assets\r\n order by @sql_order::text\r\n limit @sql_limit offset @sql_offset;\r\n\r\n```\r\nbut im unlucky yet...\r\nEven for the read only selects i can't generate any result...\r\n\r\n```\r\ndocker run --rm -v /Users/Stalker/workspace/src/gitlab.com/company/be:/src -w /src kjconroy/sqlc generate\r\n# package dbs\r\nstorage/query/m_lentities_assets.sql:1:1: relation \"m_lentities_assets\" does not exist\r\nmake: *** [generate-dbs] Error 1\r\n\r\n```\r\nAny help would be appreciated.\r\nThanx!\r\n","author":{"url":"https://github.com/basilex","@type":"Person","name":"basilex"},"datePublished":"2021-05-18T08:02:57Z","url":"https://github.com/sqlc-dev/sqlc/issues/1021"}
| 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:455a13d3-7cd6-f8ff-04e7-a7c2188ac8d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85C6:2F9718:202CB56:2B27049:6B018BCC |
| html-safe-nonce | fae078f2d6787cc636273dd3ff59f60b00b1f691e3adda52adde24695ab1c9f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUM2OjJGOTcxODoyMDJDQjU2OjJCMjcwNDk6NkIwMThCQ0MiLCJ2aXNpdG9yX2lkIjoiNzE0MjIyMjMzMDg4MDY5MTE0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a942bafc6fbb7428c13b22c8046756ae59105bf8dc66b0f1438b8710ea55d003 |
| hovercard-subject-tag | issue:894097012 |
| 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/1021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ef833b2662e81363c251edb9fb912a7e208e097c2169fda8eee1f1cb49da42e/sqlc-dev/sqlc/issues/1021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ef833b2662e81363c251edb9fb912a7e208e097c2169fda8eee1f1cb49da42e/sqlc-dev/sqlc/issues/1021 |
| og:image:alt | Hi! Help needed. SQLC 1.8.0 Database PostgreSQL 13.2 I have materialized view as shown below: create materialized view m_lentities_assets as select l.id as lentity_id, l.short_name as lentity_short... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | basilex |
| 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