Skip to content

Commit fd837d6

Browse files
committed
Added query to see all replication sets on slony.
1 parent a111503 commit fd837d6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

slony/see_replication_config.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
select set_id, master.no_comment as master,
2+
array_to_string(array_agg(replicas.no_comment), ',') as replicas,
3+
set_comment as replication_desc
4+
from sl_set
5+
join sl_node as master on set_origin = no_id
6+
join sl_subscribe ON set_id = sub_set
7+
join sl_node as replicas ON sub_receiver = replicas.no_id
8+
where sub_active
9+
and replicas.no_active
10+
group by set_id, master.no_comment, set_comment
11+
order by set_id;

0 commit comments

Comments
 (0)