Optimize CleanupTempFiles by having a boolean flag that keeps track of whether
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 19 Sep 2008 04:57:10 +0000 (04:57 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 19 Sep 2008 04:57:10 +0000 (04:57 +0000)
commit78dc06d530a4f421b8d4a3ffc06c8e8bbeb2f2fa
tree2acba04839026c96b235ef5408f747074115e414
parenta278fc38a438a5c7536388a795d45ee6899741ab
Optimize CleanupTempFiles by having a boolean flag that keeps track of whether
there are FD_XACT_TEMPORARY files to clean up at transaction end.

Per performance profiling results on AWeber's huge systems.

Patch by me after an idea suggested by Simon Riggs.
src/backend/storage/file/fd.c