Re: shared tempfile was not removed on statement_timeout - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: shared tempfile was not removed on statement_timeout
Date
Msg-id CA+hUKGJPzYo-qz63tp9052i8FKehRyUw4djo8a474xvRCZ+vHQ@mail.gmail.com
Whole thread Raw
In response to Re: shared tempfile was not removed on statement_timeout  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: shared tempfile was not removed on statement_timeout  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
On Tue, Jul 21, 2020 at 4:33 PM Justin Pryzby <pryzby@telsasoft.com> wrote:
>  /*
>   * clean up a spool structure and its substructures.
>   */
>  static void
>  _bt_spooldestroy(BTSpool *btspool)
>  {
> +       void *fileset = tuplesort_shared_fileset(btspool->sortstate);
> +       if (fileset)
> +               SharedFileSetDeleteAll(fileset);
>         tuplesort_end(btspool->sortstate);
>         pfree(btspool);
>  }

Why can't tuplesort_end do it?



pgsql-hackers by date:

Previous
From: Mahendra Singh Thalor
Date:
Subject: Re: display offset along with block number in vacuum errors
Next
From: Hamid Akhtar
Date:
Subject: Re: Should we remove a fallback promotion? take 2