Skip to content

Commit 6d791c3

Browse files
committed
fix
1 parent fbe2379 commit 6d791c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

201703/20170315_01.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ nextval属于volatile函数,||拼接序列名,带来了操作符的开销
378378
```
379379

380380
## 小结
381+
382+
如果需要较为正确的perf诊断,PG的编译参数要改一下。
383+
384+
[《PostgreSQL 源码性能诊断(perf profiling)指南》](../201611/20161129_01.md)
385+
381386
1\. 序列的cache是会话层级的,例如一次cache 100个序列值,那么一次会消耗100,如果会话退出,这100个没有被用完的序列值也会被消耗掉。
382387

383388
cache的好处是减少锁冲突。

0 commit comments

Comments
 (0)