07 2023 档案
摘要:select 'create index CONCURRENTLY ix_'||relname ||'_20230714 on '|| relname ||' (submittime) ;' From pg_stat_user_tables where relname ~'photowall';
阅读全文
摘要:[root@localhost ~]# cat /root/delete_big_table.sh #!/bin/bash #$1对应表名,$2对应主键列,$3对应一次删除多少行 i=`psql -h 127.0.0.1 -U postgres -d tenant_1011046 -c "selec
阅读全文