Re: [GENERAL] Load multiple CSV file in Postgres using COPY - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] Load multiple CSV file in Postgres using COPY
Date
Msg-id ed2912b2-4899-574d-0452-50bd71e007d6@hogranch.com
Whole thread Raw
In response to Re: [GENERAL] Load multiple CSV file in Postgres using COPY  (Magnus Hagander <magnus@hagander.net>)
Responses Re: [GENERAL] Load multiple CSV file in Postgres using COPY  (Magnus Hagander <magnus@hagander.net>)
List pgsql-general
On 2/16/2017 9:43 PM, Magnus Hagander wrote:


Perhaps something like "COPY FROM PROGRAM 'cat /path/*.csv'" would work for you?

he's using HEADER, so cat wouldn't work.    he's also using MSDOS/WIndows style filenames, so cat won't work, anyways..

I'd suggest using something like pgloader, but I don't know if that runs on MS Windows, either.   its very powerful for doing bulk imports from a wide range of formats, and even allows data manipulation.



-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: [GENERAL] Load multiple CSV file in Postgres using COPY
Next
From: Magnus Hagander
Date:
Subject: Re: [GENERAL] Load multiple CSV file in Postgres using COPY