Thread: Clean up code

Clean up code

From
CK Tan
Date:
Hi, can someone point me to the code that cleans up temp files should a query crashed unexpectedly? Thanks!

Re: Clean up code

From
Heikki Linnakangas
Date:
On 09/02/2021 00:09, CK Tan wrote:
> Hi, can someone point me to the code that cleans up temp files should a 
> query crashed unexpectedly? Thanks!

Autovacuum does that. Search for "orphan" in do_autovacuum() function.

- Heikki



Re: Clean up code

From
"Euler Taveira"
Date:
On Mon, Feb 8, 2021, at 7:09 PM, CK Tan wrote:
Hi, can someone point me to the code that cleans up temp files should a query crashed unexpectedly? Thanks!
See this patch [1].




--
Euler Taveira