Minor improvement to partition_bounds_copy()

From: Etsuro Fujita <etsuro(dot)fujita(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Minor improvement to partition_bounds_copy()
Date: 2020-02-20 11:36:10
Message-ID: CAPmGK14Rvxrm8DHWvCjdoks6nwZuHBPvMnWZ6rkEx2KhFeEoPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Best regards,
Etsuro Fujita

Attachment Content-Type Size
partition_bounds_copy.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Juan José Santamaría Flecha 2020-02-20 11:39:56 Re: Clean up some old cruft related to Windows
Previous Message Amit Kapila 2020-02-20 11:16:36 Re: bad wal on replica / incorrect resource manager data checksum in record / zfs