aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain_state.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2025-07-04 09:03:58 +0900
committerFujii Masao <fujii@postgresql.org>2025-07-04 09:03:58 +0900
commit78ebda66bf2683d42b853660757aaf16268ee3b7 (patch)
tree6bc6979874ec8df46c2e9a71a55d2f5727c5a46f /src/backend/commands/explain_state.c
parent931766aaec58b2ce09c82203456877e0b05e1271 (diff)
downloadpostgresql-78ebda66bf2683d42b853660757aaf16268ee3b7.tar.gz
postgresql-78ebda66bf2683d42b853660757aaf16268ee3b7.zip
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 <3danissimo@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com> Reviewed-by: Maxim Orlov <orlovmg@gmail.com> Discussion: https://postgr.es/m/CAJDiXggNqsJOH7C5co4jA8nDk8vw-=sokyh5s1_TENWnC6Ofcg@mail.gmail.com
Diffstat (limited to 'src/backend/commands/explain_state.c')
0 files changed, 0 insertions, 0 deletions