moving CSV data into table? - Mailing list pgsql-novice

From James Hartley
Subject moving CSV data into table?
Date
Msg-id CAKeNXXt=Cj66LRRJmC6eXJeKnPY-=NDLsCQqpDbkc2bbVmkUSQ@mail.gmail.com
Whole thread Raw
Responses Re: moving CSV data into table?  (Steve Crawford <scrawford@pinpointresearch.com>)
List pgsql-novice
I need to ask about best practices.  I now have periodic bulk CSV data needing to be added to an existing table.  I assume it is best to first move the data into a temporary table & scrub it before moving into the final table.  However, the incoming data does not have the same schema as the permanent target as additional attributes (columns) have been added.  Is it better to massage the temporary table into the same target's schema first, & use COPY to copy all temporary contents into the permanent table, or is scripting a better solution?  Is there a better method?

Your insights would be appreciated.

Thanks.

pgsql-novice by date:

Previous
From: Chris Campbell
Date:
Subject: Re: Automated pg_Dump issue
Next
From: Steve Crawford
Date:
Subject: Re: moving CSV data into table?