Thanks Chris. I didn’t realise psycopg2 had a COPY interface, that’s quite handy. I’ll have a play, cheers. Tim From: Chris Curvey <chris@xxxxxxxxxxxxxxx> Reply-To: <chris@xxxxxxxxxxxxxxx> Date: Friday, 27 December 2013 21:18 To: Tim Kane <tim.kane@xxxxxxxxx> Cc: pgsql-general General <pgsql-general@xxxxxxxxxxxxxx> Subject: Re: ON_ERROR_EXIT and interactive mode (or, how to force interactive mode off) On Fri, Dec 27, 2013 at 7:30 AM, Tim Kane <tim.kane@xxxxxxxxx> wrote:
I'm afraid I can't answer your question directly (see my sig), but if you're already using Python to create the files, would you be better off using psycopg2's COPY interfaces? If use just connect directly from Python to Postgres, I would think that your success and error handling would be much simpler. I asked the Internet how to train my cat, and the Internet told me to get a dog. |