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?
1 Answer
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.
2 Comments
Ali Hussain
what is difference in size of these buffers?
Laurenz Albe
You can set them however you want, so you can determine the difference.