Take skip header out of a loop in COPY FROM

From: Surafel Temesgen <surafel3000(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Take skip header out of a loop in COPY FROM
Date: 2019-08-22 08:31:14
Message-ID: CALAY4q8epDDY_-9JCG8wp7OfY4AG7O+DSUEnMv=jRoWTsZ1L1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Even if skipping header is done only once its checked and skipped in a
loop. If I don’t miss something it can be done out side a loop like
attached patch

regards

Surafel

Attachment Content-Type Size
outing-skip-header-from-loop-v1.patch text/x-patch 935 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2019-08-22 08:48:31 Re: Take skip header out of a loop in COPY FROM
Previous Message Heikki Linnakangas 2019-08-22 08:14:39 Comment in ginpostinglist.c doesn't match code