7

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 1

12

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.

Sign up to request clarification or add additional context in comments.

2 Comments

what is difference in size of these buffers?
You can set them however you want, so you can determine the difference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.