Postgresql存储过程优化1.破除for循环,改用group by。2.看哪个表查询耗时,增加索引。3.临时表4.case when转载于:https://blog.51cto.com/alpha2/956191