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
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
Hi, can someone point me to the code that cleans up temp files should a
query crashed unexpectedly? Thanks!