Re: why doesn't DestroyPartitionDirectory hash_destroy? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: why doesn't DestroyPartitionDirectory hash_destroy?
Date
Msg-id CA+TgmoaLTaZJ9h4Sfdufg4U2LRb2izaFzPVeiRYKpp9ktejSJA@mail.gmail.com
Whole thread Raw
In response to why doesn't DestroyPartitionDirectory hash_destroy?  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Responses Re: why doesn't DestroyPartitionDirectory hash_destroy?
Re: why doesn't DestroyPartitionDirectory hash_destroy?
List pgsql-hackers
On Thu, Mar 14, 2019 at 3:13 AM Amit Langote
<Langote_Amit_f8@lab.ntt.co.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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: ATTACH/DETACH PARTITION CONCURRENTLY
Next
From: Tom Lane
Date:
Subject: Re: [sqlsmith] Failed assertion at relnode.c