- Mailing list pgsql-odbc

From Artashes Khachatryan Galust
Subject
Date
Msg-id AM7P189MB0600829A58AEDD5E2B6D456FF9AD0@AM7P189MB0600.EURP189.PROD.OUTLOOK.COM
Whole thread Raw
List pgsql-odbc

Hi,

 

I try to sync data from MS SQL to postgres with SSIS. I configure ODBC destination using official driver for postgres.

You can see my driver version in attached driver.png file.

 

My SSIS package just gets data from a single MS SQL table and transfer it to Postgres. You can find DDL of my postgres table in attached table.sql file.

 

The problem is that data sync is done row by row, instead of bulk as expected. I understand this by profiling my postgres server file data is in sync process and there was only a single insert like this

 

INSERT INTO "public"."DailyGgrNgr" ( "Date","PlayerId","GameId","GGR","NGR","BetCount","WinCount","BetAmount","WinAmount") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)

When I change the destination to another postgres ODBC driver it works fine, so the problem is not in the package.
According to Microsoft official documentation – “If you select Batch and the provider does not support this method, the ODBC destination automatically switches to the Row-by-row mode.”  - so it seems like the ODBC driver does not support bulk insert/update, or I don’t configure it properly.

 

My Postgres version is PostgreSQL 12.2.

 

Please let me know if You need some additional information.

 

Regards,

Artashes Khachatryan

Solodev Icon

Notice: the data sent by this e-mail address (the correspondence) is of informative nature and cannot confer rights and impose duties, give rise to any responsibility for the represented company. The commercial information contained in this correspondence, including price offers, may relate to the represented company, as well as the partner companies.

Attachment

pgsql-odbc by date:

Previous
From: Jose Raul Da Conceicao
Date:
Subject: RE: Postgresql-ODBC
Next
From: Artashes Khachatryan Galust
Date:
Subject: Problem with Bulk Insert ODBC driver