Re: DEALLOCATE ALL - Mailing list pgsql-patches

From Marko Kreen
Subject Re: DEALLOCATE ALL
Date
Msg-id e51f66da0703300555m238cac13h122131e3370c6f35@mail.gmail.com
Whole thread Raw
In response to Re: DEALLOCATE ALL  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: DEALLOCATE ALL
List pgsql-patches
On 3/30/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
> Neil Conway escribió:
>
> > As to the implementation, calling hash_remove() in a loop seems a pretty
> > unfortunate way to clear a hash table -- adding a hash_reset() function
> > to the dynahash API would be cleaner and faster.
>
> I wonder why hash_drop cannot be used?

hash_destroy()?  Each element need separate destruction.

--
marko

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: DEALLOCATE ALL
Next
From: Peter Eisentraut
Date:
Subject: Re: Current enums patch