Suspicious redundant assignment in COPY FROM

From: Jingtang Zhang <mrdrivingduck(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Suspicious redundant assignment in COPY FROM
Date: 2023-09-08 04:23:17
Message-ID: CAPsk3_CrYeXUVHEiaWAYxY9BKiGvGT3AoXo_+Jm0xP_s_VmXCA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all, I was reading code of COPY FROM and I found some suspicious
redundant assignment for tuple descriptor and number of attributes. Is
it a behavior on purpose, or an accidently involved by the refactor in
c532d15? Patch is attached.

Attachment Content-Type Size
0001-Remove-redundant-assignment-in-copyfrom.patch application/octet-stream 1.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2023-09-08 04:38:30 Re: persist logical slots to disk during shutdown checkpoint
Previous Message Peter Geoghegan 2023-09-08 04:22:23 Re: old_snapshot_threshold bottleneck on replica