摘要:
db_test=# create index idx_name1 on tb_aa(name1);CREATE INDEX db_test=# SELECT pg_size_pretty(pg_total_relation_size('tb_aa')); pg_size_pretty 2469 MB 阅读全文
摘要:
1.查询数据库表大小SQL> select bytes/1024/1024/1024 as "GB" from dba_segments where segment_name='TB_TEST_OBJ'; GB 2.40203857 2.删除数据后查询表大小delete from tb_test_o 阅读全文
摘要:
1.脚本内容如下 [postgres@localhost tmp]$ more pg_archivecleanup.sh #!/bin/bash wallog_dir='/opt/pg14/archivelog/20221121' cd ${wallog_dir} ls -rt|grep "back 阅读全文