pg数据库truncate table 会锁表吗? 和delete 锁表有什么不同?
truncate table 也是事务操作。会变更字典和数据文件。delete 会更新tuple信息,truncate 是 access execlusive, 不建议高峰使用