Skip to content

Commit

Permalink
fix: also fix metadata loading issue for PG 16
Browse files Browse the repository at this point in the history
add: meta_data.sql for PG16
  • Loading branch information
ctron committed May 8, 2024
1 parent 8a7f0be commit 145eb5f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/sql/16/meta_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SELECT * FROM (
SELECT c.relname AS label, n.oid as namespace_id, c.reltuples AS cnt
FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n
ON n.oid = c.relnamespace
WHERE c.relkind = 'r'
AND n.nspname = '%s'
) as q1
JOIN ag_graph as g ON q1.namespace_id = g.namespace
INNER JOIN ag_label as label

ON label.name = q1.label
AND label.graph = g.graphid;

0 comments on commit 145eb5f

Please sign in to comment.