You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pg_namespace on pg_namespace.oid = pg_stat_last_operation.objid
9
+
where pg_namespace.nspname = 'bfv_meta_track';
10
+
count
11
+
-------
12
+
1
13
+
(1 row)
14
+
15
+
-- test drop popicy
16
+
create table t1(a int);
17
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Cloudberry Database data distribution key for this table.
18
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
19
+
create policy p1 on t1 using (a % 2 = 0);
20
+
select count(*) from pg_stat_last_operation a join pg_policy b on b.oid = a.objid where b.polname = 'p1' and b.polrelid ='t1'::regclass::oid;
21
+
count
22
+
-------
23
+
1
24
+
(1 row)
25
+
26
+
drop policy p1 on t1;
27
+
select count(*) from pg_stat_last_operation a join pg_policy b on b.oid = a.objid where b.polname = 'p1' and b.polrelid ='t1'::regclass::oid;
28
+
count
29
+
-------
30
+
0
31
+
(1 row)
32
+
33
+
--test drop publication
34
+
-- start_ignore
35
+
create publication pub1;
36
+
-- end_ignore
37
+
select count(*) from pg_stat_last_operation a join pg_publication b on b.oid = a.objid where b.pubname = 'pub1';
38
+
count
39
+
-------
40
+
1
41
+
(1 row)
42
+
43
+
drop publication pub1;
44
+
select count(*) from pg_stat_last_operation a join pg_publication b on b.oid = a.objid where b.pubname = 'pub1';
45
+
count
46
+
-------
47
+
0
48
+
(1 row)
49
+
50
+
drop schema bfv_meta_track cascade;
51
+
NOTICE: drop cascades to table t1
52
+
-- test drop schema
53
+
select count(*) from pg_stat_last_operation join
54
+
pg_namespace on pg_namespace.oid = pg_stat_last_operation.objid
0 commit comments