简体   繁体   English

PostgreSQL 中的临时表与未记录表的性能?

[英]Temporary tables vs unlogged tables performance in PostgreSQL?

I want to know about the Temporary tables vs unlogged tables performance in PostgreSQL?我想了解 PostgreSQL 中临时表与未记录表的性能? I mean which is more fast for read and write operations?我的意思是读写操作哪个更快?

Both are equally fast, since both bypass WAL.两者都同样快,因为两者都绕过 WAL。

The only difference is that temporary tables are cached in process private memory, governed by the temp_buffers parameter, while unlogged tables are cached in shared_buffers .唯一的区别是临时表缓存在进程私有内存中,由temp_buffers参数控制,而未记录的表缓存在shared_buffers So the size of these parameters will affect the performance.所以这些参数的大小会影响性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM