-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: also fix metadata loading issue for PG 16
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |