简体   繁体   中英

Temporary tables vs unlogged tables performance in PostgreSQL?

I want to know about the Temporary tables vs unlogged tables performance in PostgreSQL? I mean which is more fast for read and write operations?

Both are equally fast, since both bypass 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 . So the size of these parameters will affect the performance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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