Keeping temporary tables in shared buffers - Mailing list pgsql-hackers

From Asim Praveen
Subject Keeping temporary tables in shared buffers
Date
Msg-id CANXE4Te_aw0CyO_i4J51fUChZhG4s+PmLPjQWckw5OrX1Tf3yA@mail.gmail.com
Whole thread Raw
Responses Re: Keeping temporary tables in shared buffers
Re: Keeping temporary tables in shared buffers
List pgsql-hackers
Hello

We are evaluating the use of shared buffers for temporary tables.  The advantage being queries involving temporary tables can make use of parallel workers.

Challenges:
1. We lose the performance benefit of local buffers.
2. Additional complexity in shared buffer manager - BufferTag needs to include backend ID to distinguish 'my' temp buffers from non-temp or 'others' temp buffers.
3. Checkpointer needs to skip them for fsync but bgwriter needs to write them out.

Has someone already thought about this?  Any workloads that might benefit from this idea?

Asim and David

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: add default parallel query to v10 release notes? (Re: [PERFORM]performance drop after upgrade (9.6 > 10))
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: A Japanese-unfriendy error message contruction