Re: why doesn't DestroyPartitionDirectory hash_destroy?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: why doesn't DestroyPartitionDirectory hash_destroy?
Date: 2019-03-14 16:02:10
Message-ID: CA+TgmoaLTaZJ9h4Sfdufg4U2LRb2izaFzPVeiRYKpp9ktejSJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 14, 2019 at 3:13 AM Amit Langote
<Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> wrote:
> I'm curious why DestroyPartitionDirectory doesn't do
> hash_destroy(pdir->pdir_hash)?

What would be the point? It's more efficient to let context teardown
take care of it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-03-14 16:07:03 Re: [sqlsmith] Failed assertion at relnode.c
Previous Message Robert Haas 2019-03-14 16:01:08 Re: ATTACH/DETACH PARTITION CONCURRENTLY