We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7f0be commit 145eb5fCopy full SHA for 145eb5f
1 file changed
backend/sql/16/meta_data.sql
@@ -0,0 +1,13 @@
1
+SELECT * FROM (
2
+ SELECT c.relname AS label, n.oid as namespace_id, c.reltuples AS cnt
3
+ FROM pg_catalog.pg_class c
4
+ JOIN pg_catalog.pg_namespace n
5
+ ON n.oid = c.relnamespace
6
+ WHERE c.relkind = 'r'
7
+ AND n.nspname = '%s'
8
+) as q1
9
+JOIN ag_graph as g ON q1.namespace_id = g.namespace
10
+INNER JOIN ag_label as label
11
+
12
+ON label.name = q1.label
13
+AND label.graph = g.graphid;
0 commit comments