What you suggest is exactly the second option in the first message below
but that’s a real lot of overhead.
From: Melvin Davidson
Sent: Thursday, May 21, 2015 11:48 PM
To: Nicolas Paris
Subject: Re: About COPY command (and probably file fdw
too) I understand what you want with regards to skipping columns in input, but
rather than wait to see if that feature is added to a future version of
PostgreSQL, probably the best work around is to 1. CREATE an intermediate table with all columns in the input text file. 2. COPY into the intermediate table. On Thu, May 21, 2015 at 4:33 PM, Nicolas Paris <niparisco@xxxxxxxxx> wrote:
-- Melvin
Davidson I reserve the right to fantasize. Whether or not you wish to share my fantasy is entirely up to you. |