8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d7f9d commit c304018Copy full SHA for c304018
src/lib/sql/publications.sql
@@ -15,15 +15,22 @@ FROM
15
LEFT JOIN LATERAL (
16
SELECT
17
COALESCE(
18
- array_agg(c.relname :: text) filter (
19
- WHERE
20
- c.relname IS NOT NULL
+ array_agg(
+ json_build_object(
+ 'id',
21
+ c.oid :: int8,
22
+ 'name',
23
+ c.relname,
24
+ 'schema',
25
+ nc.nspname
26
+ )
27
),
28
'{}'
29
) AS tables
30
FROM
31
pg_catalog.pg_publication_rel AS pr
32
JOIN pg_class AS c ON pr.prrelid = c.oid
33
+ join pg_namespace as nc on c.relnamespace = nc.oid
34
WHERE
35
pr.prpubid = p.oid
36
) AS pr ON 1 = 1
0 commit comments