Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF5OI-0001Zt-8L for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jun 2016 20:01:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bF5OH-0007r7-RN for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jun 2016 20:01:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bElyr-00038G-SG for pgsql-odbc@postgresql.org; Sun, 19 Jun 2016 23:18:17 +0000 Received: from mail-bn1bon0144.outbound.protection.outlook.com ([157.56.111.144] helo=na01-bn1-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bElyl-0002ke-Cl for pgsql-odbc@postgresql.org; Sun, 19 Jun 2016 23:18:16 +0000 Received: from CO1P114CA0025.NAMP114.PROD.OUTLOOK.COM (129.75.50.79) by DM3P114MB0171.NAMP114.PROD.OUTLOOK.COM (129.75.51.150) with Microsoft SMTP Server (TLS) id 15.1.511.8; Sun, 19 Jun 2016 23:18:07 +0000 Received: from BY2FFO11FD037.protection.gbl (2a01:111:f400:7c0c::166) by CO1P114CA0025.outlook.office365.com (2603:10b6:110:8::15) with Microsoft SMTP Server (TLS) id 15.1.523.12 via Frontend Transport; Sun, 19 Jun 2016 23:18:06 +0000 Authentication-Results: spf=pass (sender IP is 170.252.43.199) smtp.mailfrom=accenture.com; dream.email.ne.jp; dkim=none (message not signed) header.d=none;dream.email.ne.jp; dmarc=bestguesspass action=none header.from=accenture.com; Received-SPF: Pass (protection.outlook.com: domain of accenture.com designates 170.252.43.199 as permitted sender) receiver=protection.outlook.com; client-ip=170.252.43.199; helo=AMRXE4004.accenture.com; Received: from AMRXE4004.accenture.com (170.252.43.199) by BY2FFO11FD037.mail.protection.outlook.com (10.1.14.222) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Sun, 19 Jun 2016 23:18:06 +0000 Received: from AMRXH4006.dir.svc.accenture.com (10.63.34.66) by AMRXE4004.dir.svc.accenture.com (10.63.35.194) with Microsoft SMTP Server id 14.3.279.2; Sun, 19 Jun 2016 19:17:56 -0400 Received: from 048-smtp-out.accenture.com (141.251.202.217) by AMRXH4006.dir.svc.accenture.com (10.63.34.96) with Microsoft SMTP Server (TLS) id 14.3.279.2; Sun, 19 Jun 2016 19:17:56 -0400 Received: from SN4PR4207MB0382.048d.mgd.msft.net (141.251.202.215) by SN4PR4207MB0384.048d.mgd.msft.net (141.251.202.217) with Microsoft SMTP Server (TLS) id 15.1.523.12; Sun, 19 Jun 2016 23:17:55 +0000 Received: from SN4PR4207MB0382.048d.mgd.msft.net ([141.251.202.215]) by SN4PR4207MB0382.048d.mgd.msft.net ([141.251.202.215]) with mapi id 15.01.0523.015; Sun, 19 Jun 2016 23:17:53 +0000 From: To: CC: , , Subject: Re: Issue with Save and Release points Thread-Topic: [ODBC] Issue with Save and Release points Thread-Index: AdHH6foMO5qcmvW8SZuKL4Y0WzvBjwATwfHAABqrgPAAEeN+gABhIl/gAAOboNA= Date: Sun, 19 Jun 2016 23:17:53 +0000 Message-ID: References: <2469e362195c475898c777212b68b244@CO2PR4202MB0281.048d.mgd.msft.net> <0A3221C70F24FB45833433255569204D1F595BEB@G01JPEXMBYT05> <78e9da35a70c4ff1bfce5bde393934fc@SN4PR4207MB0382.048d.mgd.msft.net> <57647FB5.6020001@dream.email.ne.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [109.147.187.47] X-MS-Office365-Filtering-Correlation-Id: f6fd87ff-7ccc-4582-71da-08d39897f878 Content-Type: multipart/alternative; boundary="_000_d95fd06cf4b54ddcbe25dd2b18227185SN4PR4207MB0382048dmgdm_" MIME-Version: 1.0 X-OrganizationHeadersPreserved: AMRXH4006.dir.svc.accenture.com X-CrossPremisesHeadersFiltered: AMRXE4004.dir.svc.accenture.com X-OrganizationHeadersPreserved: AMRXE4004.dir.svc.accenture.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:170.252.43.199;IPV:CAL;SCL:-1;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(7916002)(2980300002)(438002)(377424004)(189002)(24454002)(199003)(2900100001)(84326002)(9686002)(26826002)(19625215002)(87936001)(24736003)(551934003)(19580405001)(189998001)(586003)(19580395003)(6116002)(260700001)(33646002)(790700001)(6806005)(102836003)(76966002)(5001970100001)(3846002)(86146001)(110136002)(50986999)(8676002)(10400500002)(2351001)(66066001)(54356999)(76176999)(86152002)(3900700001)(92566002)(93886004)(86362001)(5003600100002)(356003)(15975445007)(108616004)(246002)(5004730100002)(8936002)(19300405004)(106466001)(2876002)(11100500001)(4326007)(7846002)(2906002)(512954002)(16236675004)(460985005);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3P114MB0171;H:AMRXE4004.accenture.com;FPR:;SPF:Pass;PTR:amrxe4004.accenture.com;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD037;1:ZHjDQI8fQ2oTiZvXhwJbRqL2EL5341Jj3EIE49j3t8+4pZfkegT/AqQS+IYadqPDO7Vkl+pmCKaMaT8/jbSNoUUYPREilsZbEUEYrlly+qSxoT0YgAWIYbShyZgX5gsOtJ06GrJaD8Jf4LvAUkW6OeSrd8fHeZrbHiOQ0DehG9N6KTD46XdxZrDUe+D2bEAek3btl4Puzgy5VRlXXC/crXwbQaJuzfIha9Ggu1EFbgeovGvjw0xheDL81dekNELSFjRRYHn1aUQ6bs2aWZA4VJYz8OUGqZckOWtjvLrTmu7W8KHTcAT2ID52+rBqxsc24Oto8e/2ClP6uHnYkI9GwcMNVuqMNy8wG3zXuHYFjCBt9hsNuI+1Slf/b38lftuZM/tYCd6M/6eeV5DC2xuToM3t7LWh/KjelbwJ2Sq553HnMbBNasqrh2xyqhTZUtrruJDB/oapOeyDWYeicEA5gcEfVwpzXAlb9dEFr+3RSRBZH3LBfauIBhq2THcszMub X-CrossPremisesHeadersPromoted: BY2FFO11FD037.protection.gbl X-CrossPremisesHeadersFiltered: BY2FFO11FD037.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;DM3P114MB0171;2:ok4TbnA73tnOM/tPGovYf22KaZJZH2CqeKwqMVEibi7jakHRIkAXCoBxqTyv2FdYEVJ3Z6qmvz0tqyRW5lMeMQCRTWRgzi80Osf2BX/xP2D0iGrEu9V4JHHvGHZMzrXEV0b6IZiqT0d+De1UPJXwVZLirmd51k3+g0QeTfg6nfs1wFCDs2UDE1FO+PLhq0oL;3:O2TFPQdSmk+wZsXbi2oRQFr9R6pC++TuDHUUdnJRSi5uM7amRqAypijL71BI13h4Ssu7iz8Ke9LdBqKsaRCkmkypb2hzK6chMNClQOhSPdxouhnYaSOIdAYwCmWQgiIyDhE1A6OjThFWLYjvx59vyDopZLACVLaqu4zLbKLQ4vXtEHAFduO6xMgk6YmZAPs+f+WGMJh3udpriHzgNr5canktRCoN1JtQiV3bBB3TRVt3632Us3erJHp7qZVeOeiBLhNsI+FeLm+HE1Fl/f1jfA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:DM3P114MB0171; X-Microsoft-Exchange-Diagnostics: 1;DM3P114MB0171;25:/crLgCy/d9K6LYVsSS4wtCAWWMzVK5euqYPdVeWuu9KHVIsv2VlUCfapWCJJ5YYssmGLv9h2OS/3+96zvyD5gaQ0rlYNstkOR4onTEcwN7gM7tVxLM4LDXZndheHCwj3Mp3Ru0FlOFBlCzkDq+P+Oo5Py+eceisKk0YMqCuGNPt2prO8qDmbEtN7AwyqPOjAp6EUFzXj7zq0S1gk/e1Z1QdYY8cZd1M0ligwqfnX5Frb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ROd/2jdwvrKHtE6M0Yh3kjtH353EPb4t90c5+VsM2HH2C8u69UpaAsxy7pQbeq2/9XzXX/9zZSQuYjZ2HURaKJu5KOvBdatv/8j5ii5LzmVQuvzNqFmvQAaSq/qznIq1yw/cAHqRcM+HGdNzmzXsBPHD+cQg0kXURtUyuzjmXYcRNqd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(169223907730125)(192374486261705)(265634631926514)(170618885588394)(21748063052155)(21532816269658); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(61425038)(2401047)(13023025)(13013025)(13020025)(13024025)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038);SRVR:DM3P114MB0171;BCL:0;PCL:0;RULEID:;SRVR:DM3P114MB0171; X-Microsoft-Exchange-Diagnostics: 1;DM3P114MB0171;4:PslpmJYvFePkgS2jKjklWBof1msRTRF+GIJ8+LzIs6XJkgu/TpvlWbE1VxdN30lNPHIyO4sFVj9Ca7+q/u4Pg5NrCaSIqC6RGzSqtwTrOBg08GN1N+LCttjcmSomzy0ooqKjCA/256T+N7Iv4JQeufqZbyb6J40+6ItAJ0SrzeJdjtertrzUsixcpDt2tW2EVdQ5gBzO3oy0Ou54gwrix3PXx5wRVkO8oYjL4dZhVyX33trEbIoyFZ7rXSb7QJgrxmbBLVfE4NqvFdVPVk194a8fwQvMt0g5AAigB30vILVM+pdsJeGKUIhvoID17wbF7rY+6L/3Tk4JyHOxeVCvAChbUtl7dSAfaBgYZ/gWg/M0mZWZ5seWaTjVA9WgUM4lGd6kTbQFSsnAuQtLTrafI4BqX7hxvigetoETjlYgq8OBq3/mtJ1/frtjc7Q7f1alBGvzCe6HcA6K+I9S+LaJ7KndQ6UmVmAdzI0BGQrMlFo8IYs1sm2AD1b8F7wu/5m+vFw1M7yle9SQXwPVL2xBZaGXt4MzIJ/E/dcAX49lQ91DcrC0/OSnrYwpVa6h0FhXzCjQIQ19vQLVkdnSemZ451pHSsHHb/MNhP2tffi2dz7LqfmPY1kBLmpvZiWEwhQqAmaK3d5X6Io4dPJulRt4V2lP0jUS8nE5ryycuduvVF2eU96wKR7OK1FDi6cuDpJb0qUuGUY2LhaqOV2dT32DzA== X-Forefront-PRVS: 09781D4C35 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3P114MB0171;23:iJt9/HLyLX4L3EuxTPjHi9EHSNX6T7UNm4cX3gh4j?= =?us-ascii?Q?B5919CZn9YTXLimzJGOQO12YPXKpVPIO+61sIN3hGt7njL5Nvi4WfBGDjz3g?= =?us-ascii?Q?omRBNli/XZIaXBN0D6d5Utn6Dp0aZzxOccCOZllPESwZedvuy/TyruyRdQOX?= =?us-ascii?Q?kp5HzPxsN7TWCty9+3v10NjI77wzAMuOZNTfwZgickRTDUOaqtw6tOROsktz?= =?us-ascii?Q?3tgjRBE/33p2m2fp7Wi7HdzZ6QUmmpEFqHaxL8n2alq88zOso9bvdpmrfsxE?= =?us-ascii?Q?mnapHe91ckg8vQKw84G48ZSU1GrmcY4xgFMelcqAL18dwzXbDg3dj7XN5RG8?= =?us-ascii?Q?x52pqyjinqDdUywvPvvVyntHiu2Fqmf/Bd1pnE5BDcXnPv2ZVribwx62i2We?= =?us-ascii?Q?zQiETGYqZDw3OLtzLoEww2ctqcwe/9B2nN+vjG81q+BY6pW5ZmuN/kfXmazW?= =?us-ascii?Q?BhtrlK6Os3aaJop7bM2OYJ7VnugvrhwFvDq0+wPE58feXmMdfsxHfmqqN4x7?= =?us-ascii?Q?oxaWgxt/ptVOeRMmaAJGAra1uJe4CIe9GrU3+T98yYjdeBaCwUmB2ZcYdpPi?= =?us-ascii?Q?JCMiqe5g3lG88Uj/qzyCkvHcntH93wkSUzfnn+qZCABaG6ERc2OkHeMeAN5l?= =?us-ascii?Q?94LmVEg4zG+VmZj+tntdDJTq7O7iXZ6huRWLKv0nU3NBHUTjZgJQK6PbxMnx?= =?us-ascii?Q?xS70cXyuE+sLaso7yfxhnrwEveoASrosbH1h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5yR3OTl3dN+scjwqKG3eoGqbAaIlWvQkvnC+2X641FfIrjKlA6oc1x5OQ==;24:Yzohod/UwuefaGAjssdguN/B/TWRDDMSqn4ILuv4V/4greQ5pBQM2k3Dl2qmVhmVZpVhoTI4fh8D6pdu7eSfZE6sd+Cwr1lRF8OBlAEib8A=;7:ByPKqJ3Rnefkreaoq41YKZ054PXbxLn3mQ0y/ANGYnR1Yk1znABlHcU3kiPzRWfWP+lpW9QREtxxUVhxS/EBXVPKxO7Hh/ot1Sn2asAUKzD4tAs4Z/dAdOd6eDRsjWaqQJkrlKBV3fhb8/NgtHl/jmHqCX9aF1vcCkIMKs4KOrg3d+M0v08UhKBBM/6UQYmPZJJ5FBLeFy089panUoLiag== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: accenture.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2016 23:18:06.2066 (UTC) X-MS-Exchange-CrossTenant-Id: e0793d39-0939-496d-b129-198edd916feb X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e0793d39-0939-496d-b129-198edd916feb;Ip=[170.252.43.199];Helo=[AMRXE4004.accenture.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3P114MB0171 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org --_000_d95fd06cf4b54ddcbe25dd2b18227185SN4PR4207MB0382048dmgdm_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Hiroshi - I've tried setting the protocol by typing Protocol=3D7.4-1 in the Connect S= ettings within the odbcad32.exe configuration and I've set Level of Rollbac= k to 'Transaction' but I'm still seeing savepoints and release statements f= or each statement within the transaction. On further analysis, it appears to be the following query which happens in= between the savepoints and Release statements which is taking up majority = of the time and is having a significant impact on the time taken to insert = around 57000 records: select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.= attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid, pg_get_= expr(d.adbin, d.adrelid), case t.typtype when 'd' then t.typbasetype else 0= end, t.typtypmod, c.relhasoids from (((pg_catalog.pg_class c inner join pg= _catalog.pg_namespace n on n.oid =3D c.relnamespace and c.relname like 'tbl= contributions' and n.nspname like 'public') inner join pg_catalog.pg_attrib= ute a on (not a.attisdropped) and a.attnum > 0 and a.attrelid =3D c.oid) in= ner join pg_catalog.pg_type t on t.oid =3D a.atttypid) left outer join pg_a= ttrdef d on a.atthasdef and d.adrelid =3D a.attrelid and d.adnum =3D a.attn= um order by n.nspname, c.relname, attnum 2016-06-15 09:49:51 BST LOG: duration: 3.088 ms Regards Dan ________________________________ This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it i= n error, please notify the sender immediately and delete the original. Any = other use of the e-mail by you is prohibited. Where allowed by local law, e= lectronic communications with Accenture and its affiliates, including e-mai= l and instant messaging (including content), may be scanned by our systems = for the purposes of information security and assessment of internal complia= nce with Accenture policy. Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD. From: Machet, Daniel Sent: 19 June 2016 22:44 To: 'Inoue, Hiroshi' Cc: tsunakawa.takay@jp.fujitsu.com; Ratnakar Shetty, E. ; pgsql-odbc@postgresql.org Subject: RE: [ODBC] Issue with Save and Release points Hi Hiroshi, Apologies for the delayed reply, I'm not sure where to change the connection string to protocol=3D7.4-1 This is running psqlodbc35W driver on a windows system and when I try confi= guring it from odbcad32.exe , the protocol section isn't shown on page 2 or= page 3 I tried adding that line verbose in ODBC.ini but same SAVEPOINT and RELEASE= POINT messages are seen for each statement. Also whenever I make a change t= o the odbc driver using the odbcad32.exe, it overwrites this and removes th= e 'protocol=3D7.4-1' statement I've added. Regards Dan ________________________________ This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it i= n error, please notify the sender immediately and delete the original. Any = other use of the e-mail by you is prohibited. Where allowed by local law, e= lectronic communications with Accenture and its affiliates, including e-mai= l and instant messaging (including content), may be scanned by our systems = for the purposes of information security and assessment of internal complia= nce with Accenture policy. Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD. From: Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp] Sent: 17 June 2016 23:55 To: Machet, Daniel > Cc: tsunakawa.takay@jp.fujitsu.com; = Ratnakar Shetty, E. >; pgsql-odbc@postgresql.org Subject: Re: [ODBC] Issue with Save and Release points Hi Daniel, Doesn't your connection string contain 'Protocol=3D7.4-2' option? If so, please change it to 'Protocol=3D7.4-1'. regards, Hiroshi Inoue On 2016/06/17 23:28, daniel.machet@accenture.com wrote: Thanks Takayuki, We've tried with Transaction but are still seeing save points and release p= oints in the postgres logs. Also on executing the same query on localhost (= from my laptop) am getting slow performance (around 4 records per second). We don't see same performance drawback on inserting directly on the client Regards Daniel Machet ________________________________ This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it i= n error, please notify the sender immediately and delete the original. Any = other use of the e-mail by you is prohibited. Where allowed by local law, e= lectronic communications with Accenture and its affiliates, including e-mai= l and instant messaging (including content), may be scanned by our systems = for the purposes of information security and assessment of internal complia= nce with Accenture policy. Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD. --_000_d95fd06cf4b54ddcbe25dd2b18227185SN4PR4207MB0382048dmgdm_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Hiroshi –

 

I’ve tried se= tting the protocol by typing Protocol=3D7.4-1 in the Connect Settings withi= n the odbcad32.exe configuration and I’ve set Level of Rollback to &#= 8216;Transaction’ but I’m still seeing savepoints and release statements for each statement within the transaction.

 

On further analysis= , it appears to be the  following query which happens in between the s= avepoints and Release statements which is taking up majority of the time an= d is having a significant impact on the time taken to insert around 57000 records:

 

select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c= .oid, pg_get_expr(d.adbin, d.adrelid), case t.typtype when 'd' then t.typba= setype else 0 end, t.typtypmod, c.relhasoids from (((pg_catalog.pg_class c = inner join pg_catalog.pg_namespace n on n.oid =3D c.relnamespace and c.relname like 'tblcontributions' and n.= nspname like 'public') inner join pg_catalog.pg_attribute a on (not a.attis= dropped) and a.attnum > 0 and a.attrelid =3D c.oid) inner join pg_catalo= g.pg_type t on t.oid =3D a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid =3D a.attrelid and d.= adnum =3D a.attnum order by n.nspname, c.relname, attnum<= /p>

2016-06-15 09:49:51 BST LOG:&n= bsp; duration: 3.088 ms

 

 

Regards

Dan

 

 

 


This message is for the= designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in = error, please notify the sender immediately and delete the original. Any ot= her use of the e-mail by you is prohibited. Where allowed by local law, ele= ctronic communications with Accenture and its affiliates, including e-mail and instant messaging (including cont= ent), may be scanned by our systems for the purposes of information securit= y and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD.

 

From: Machet, Daniel
Sent: 19 June 2016 22:44
To: 'Inoue, Hiroshi' <h-inoue@dream.email.ne.jp>
Cc: tsunakawa.takay@jp.fujitsu.com; Ratnakar Shetty, E. <e.ratnak= ar.shetty@accenture.com>; pgsql-odbc@postgresql.org
Subject: RE: [ODBC] Issue with Save and Release points

 

Hi Hiroshi,=

 

Apologies for the dela= yed reply,

 

I’m not sure whe= re to change the connection string to protocol=3D7.4-1

 

This is running psqlod= bc35W driver on a windows system and when I try configuring it from odbcad3= 2.exe , the protocol section isn’t shown on page 2 or page 3

 

I tried adding that li= ne verbose in ODBC.ini but same SAVEPOINT and RELEASEPOINT messages are see= n for each statement. Also whenever I make a change to the odbc driver usin= g the odbcad32.exe, it overwrites this and removes the ‘protocol=3D7.4-1’ statement I’ve added.=

 

Regards

Dan<= /p>


This message is for th= e designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in = error, please notify the sender immediately and delete the original. Any ot= her use of the e-mail by you is prohibited. Where allowed by local law, ele= ctronic communications with Accenture and its affiliates, including e-mail and instant messaging (including cont= ent), may be scanned by our systems for the purposes of information securit= y and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD.

 

From: Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp]
Sent: 17 June 2016 23:55
To: Machet, Daniel <
daniel.m= achet@accenture.com>
Cc:
tsunakawa.takay@jp.fujit= su.com; Ratnakar Shetty, E. <e.ratnakar.shetty@accenture.com>; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Issue with Save and Release points

 

Hi Daniel,

Doesn't your connection string contain 'Protocol=3D7.4-2' option?
If so, please change it to 'Protocol=3D7.4-1'.

regards,
Hiroshi Inoue

On 2016/06/17 23:28, daniel.machet@accenture.com wrote:

Thanks Takayuki,

 

We’ve tried with= Transaction but are still seeing save points and release points in the pos= tgres logs. Also on executing the same query on localhost (from my laptop) = am getting slow performance (around 4 records per second).

 

We don’t see sam= e performance drawback on inserting directly on the client

 

Regards

Daniel Machet


This message= is for the designated recipient only and may contain privileged, proprieta= ry, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the = original. Any other use of the e-mail by you is prohibited. Where allowed b= y local law, electronic communications with Accenture and its affiliates, i= ncluding e-mail and instant messaging (including content), may be scanned by our systems for the purposes of inf= ormation security and assessment of internal compliance with Accenture poli= cy.

Accenture means Accenture (UK) Limited (registered number 4757301), registe= red in England and Wales with registered address at 30 Fenchurch Street, Lo= ndon EC3M 3BD.

 

--_000_d95fd06cf4b54ddcbe25dd2b18227185SN4PR4207MB0382048dmgdm_--