pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Hill <Eric.Hill@jmp.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: PostgreSQL ODBC and INSERT INTO with multi-row binding.
Date: Tue, 19 Apr 2016 14:44:18 +0000
Message-ID: <520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hey,

We have a feature in our product that saves data to database tables via ODBC.  Currently our ODBC implementation uses multi-row binding with INSERT INTO/VALUES.  Previously, we just did single-row binding.  For many databases, the move to multi-row binding improved performance, but for PostgreSQL, it did not.  In fact, with PostgreSQL, we are having trouble doing better than just generating full text INSERT INTO/VALUES and sending that SQL through.  Does that surprise folks on this list?  Is there a secret to getting multi-row binding to be at least as fast, but preferably faster, than just generating full text INSERT INTO/VALUES statements?

I am using version 9.05.02.10 of the ODBC driver.

Thanks,

Eric

Message-ID: <520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com>
Permalink:  ../520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com/
Also on:    postgresql.org/message-id/520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Eric.Hill@jmp.com
  Subject: Re: PostgreSQL ODBC and INSERT INTO with multi-row binding.
  In-Reply-To: <520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com>
  References: <520960f6d4a44428adbea2dbc7259cfc@MERCMBX34D.na.SAS.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox