Re: Clean up code

2021-02-09 Thread Euler Taveira
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]. [1] https://www.postgresql.org/message-id/CAH503wDKdYzyq7U-QJqGn%3DGm6XmoK%2B6_6xTJ-Yn5WSvoHLY1Ww%40mail.gmail.com

Re: Clean up code

2021-02-09 Thread Heikki Linnakangas
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

Clean up code

2021-02-08 Thread CK Tan
Hi, can someone point me to the code that cleans up temp files should a query crashed unexpectedly? Thanks!