另有大表分页提交update见《PostgreSQL-慢sql查询优化过程-大SQL文件分割-大表分页提交update结果》DO$$DECLAREiinteger;page_sizeinteger=1000;total_countinteger;total_pageinteger;total_count_bakbigint;BEGINSELECTCOUNT(*)INTOtotal_countFROMbos_data_flag_info;total_page=total_count/page_size;IFtotal_count%10>0THENt
阅读全文