Re: Minor improvement to partition_bounds_copy() - Mailing list pgsql-hackers

From Amit Langote
Subject Re: Minor improvement to partition_bounds_copy()
Date
Msg-id CA+HiwqELs5PirigAVe0vmrWeL2vnmakJa=W7xCx4cZH-Uuk-7g@mail.gmail.com
Whole thread Raw
In response to Minor improvement to partition_bounds_copy()  (Etsuro Fujita <etsuro.fujita@gmail.com>)
Responses Re: Minor improvement to partition_bounds_copy()
List pgsql-hackers
Fujita-san,

On Thu, Feb 20, 2020 at 8:36 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote:
> partition_bounds_copy() sets the hash_part and natts variable in each
> iteration of a loop to copy the datums in the datums array, which
> would not be efficient.  Attached is small patch for avoiding that.

That looks good to me.

Thanks,
Amit



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Experimenting with transactional memory for SERIALIZABLE
Next
From: Tomas Vondra
Date:
Subject: Re: Parallel copy