R: batch inserts in python & libpq

From: Scara Maccai <m_lists(at)yahoo(dot)it>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: R: batch inserts in python & libpq
Date: 2009-08-10 10:26:19
Message-ID: 315461.72191.qm@web24613.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> Is there a Python driver that uses the same protocol form
> of addBatch in Java?

I'll answer my own question: the method to be used should be

cursor.executemany()

In response to

Browse pgsql-general by date

  From Date Subject
Next Message sub_woofer 2009-08-10 11:55:32 Re: Postgresql Backups
Previous Message Martijn van Oosterhout 2009-08-10 07:57:30 Re: psql crashing - don't know why