diff options
author | Fujii Masao | 2025-07-04 00:03:58 +0000 |
---|---|---|
committer | Fujii Masao | 2025-07-04 00:03:58 +0000 |
commit | 78ebda66bf2683d42b853660757aaf16268ee3b7 (patch) | |
tree | 6bc6979874ec8df46c2e9a71a55d2f5727c5a46f /src/backend/executor/tstoreReceiver.c | |
parent | 931766aaec58b2ce09c82203456877e0b05e1271 (diff) |
Speed up truncation of temporary relations.
Previously, truncating a temporary relation required scanning the entire
local buffer pool once per relation fork to invalidate buffers. This could
be slow, especially with a large local buffers, as the scan was repeated
multiple times.
A similar issue with regular tables (shared buffers) was addressed in
commit 6d05086c0a7 by scanning the buffer pool only once for all forks.
This commit applies the same optimization to temporary relations,
improving truncation performance.
Author: Daniil Davydov <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Reviewed-by: Dilip Kumar <[email protected]>
Reviewed-by: Maxim Orlov <[email protected]>
Discussion: https://postgr.es/m/CAJDiXggNqsJOH7C5co4jA8nDk8vw-=sokyh5s1_TENWnC6Ofcg@mail.gmail.com
Diffstat (limited to 'src/backend/executor/tstoreReceiver.c')
0 files changed, 0 insertions, 0 deletions