File: drop.sql

package info (click to toggle)
pglogical 2.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,236 kB
  • sloc: ansic: 39,239; sql: 4,466; perl: 693; makefile: 210; sh: 77
file content (43 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SELECT * FROM pglogical_regress_variables()
\gset

\c :provider_dsn
SELECT * FROM pglogical.drop_node(node_name := 'test_provider');

SELECT plugin, slot_type, active FROM pg_replication_slots;
SELECT count(*) FROM pg_stat_replication;

\c :subscriber_dsn
SELECT * FROM pglogical.drop_subscription('test_subscription');
SELECT * FROM pglogical.drop_node(node_name := 'test_subscriber');

\c :provider_dsn
SELECT * FROM pglogical.drop_node(node_name := 'test_provider');

\c :subscriber_dsn
DROP OWNED BY nonsuper, super CASCADE;

\c :provider_dsn
DROP OWNED BY nonsuper, super CASCADE;

\c :provider1_dsn
DROP OWNED BY nonsuper, super CASCADE;

\c :orig_provider_dsn
DROP OWNED BY nonsuper, super CASCADE;

\c :subscriber_dsn
SET client_min_messages = 'warning';
DROP ROLE IF EXISTS nonsuper, super;

\c :provider_dsn
SET client_min_messages = 'warning';
DROP ROLE IF EXISTS nonsuper, super;

\c :provider1_dsn
SET client_min_messages = 'warning';
DROP ROLE IF EXISTS nonsuper, super;

\c :orig_provider_dsn
SET client_min_messages = 'warning';
DROP ROLE IF EXISTS nonsuper, super;