5
5
c .relrowsecurity as rls_enabled,
6
6
c .relforcerowsecurity as rls_forced,
7
7
case
8
- when c .relreplident = ' d' then ' default '
9
- when c .relreplident = ' i' then ' index '
10
- when c .relreplident = ' f' then ' full '
11
- else ' nothing '
8
+ when c .relreplident = ' d' then ' DEFAULT '
9
+ when c .relreplident = ' i' then ' INDEX '
10
+ when c .relreplident = ' f' then ' FULL '
11
+ else ' NOTHING '
12
12
end as " replica_identity!" ,
13
- pg_total_relation_size(format(' %i.%i ' , nc .nspname , c .relname )) :: int8 as " bytes!" ,
13
+ pg_total_relation_size(format(' %I.%I ' , nc .nspname , c .relname )) :: int8 as " bytes!" ,
14
14
pg_size_pretty(
15
- pg_total_relation_size(format(' %i.%i ' , nc .nspname , c .relname ))
15
+ pg_total_relation_size(format(' %I.%I ' , nc .nspname , c .relname ))
16
16
) as " size!" ,
17
17
pg_stat_get_live_tuples(c .oid ) as " live_rows_estimate!" ,
18
18
pg_stat_get_dead_tuples(c .oid ) as " dead_rows_estimate!" ,
@@ -24,12 +24,12 @@ where
24
24
c .relkind in (' r' , ' p' )
25
25
and not pg_is_other_temp_schema(nc .oid )
26
26
and (
27
- pg_has_role(c .relowner , ' usage ' )
27
+ pg_has_role(c .relowner , ' USAGE ' )
28
28
or has_table_privilege(
29
29
c .oid ,
30
- ' select, insert, update, delete, truncate, references, trigger '
30
+ ' SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER '
31
31
)
32
- or has_any_column_privilege(c .oid , ' select, insert, update, references ' )
32
+ or has_any_column_privilege(c .oid , ' SELECT, INSERT, UPDATE, REFERENCES ' )
33
33
)
34
34
group by
35
35
c .oid ,
0 commit comments