Clean up code

Started by CK Tanalmost 5 years ago3 messages
#1CK Tan
cktan@vitessedata.com

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

#2Heikki Linnakangas
hlinnaka@iki.fi
In reply to: CK Tan (#1)
Re: Clean up code

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

#3Euler Taveira
euler@eulerto.com
In reply to: CK Tan (#1)
Re: Clean up code

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]/messages/by-id/CAH503wDKdYzyq7U-QJqGn=Gm6XmoK+6_6xTJ-Yn5WSvoHLY1Ww@mail.gmail.com.

[1]: /messages/by-id/CAH503wDKdYzyq7U-QJqGn=Gm6XmoK+6_6xTJ-Yn5WSvoHLY1Ww@mail.gmail.com

--
Euler Taveira
EDB https://www.enterprisedb.com/