Re: Minor improvement to partition_bounds_copy()

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Minor improvement to partition_bounds_copy()
Date: 2020-02-20 12:38:26
Message-ID: CA+HiwqELs5PirigAVe0vmrWeL2vnmakJa=W7xCx4cZH-Uuk-7g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fujita-san,

On Thu, Feb 20, 2020 at 8:36 PM Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2020-02-20 13:36:02 Re: Parallel copy
Previous Message Thomas Munro 2020-02-20 12:33:17 Re: Experimenting with transactional memory for SERIALIZABLE