Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XqPt9-0003a1-6d for pgsql-odbc@arkaria.postgresql.org; Mon, 17 Nov 2014 17:14:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XqPt7-0008Fp-GY for pgsql-odbc@arkaria.postgresql.org; Mon, 17 Nov 2014 17:14:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XpJ6n-0004Ic-Oh for pgsql-odbc@postgresql.org; Fri, 14 Nov 2014 15:48:26 +0000 Received: from nm26-vm6.access.bullet.mail.bf1.yahoo.com ([216.109.115.213]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XpJ6i-0004wd-63 for pgsql-odbc@postgresql.org; Fri, 14 Nov 2014 15:48:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1415980096; bh=Ya0WWY87mEJjsydRzyrc8cfI0IRmUas16r1+6Ej4YVo=; h=Date:From:To:Subject:From:Subject; b=VxHC1bpwBFT5Quxk07ESeWdeUnE0yndd/B/UQrwuGUpYOCxY7QhDHAjxpzSvqe5+X7j9LO7IaS8leAd9G8DXsSPqSv3DC3R/R+r4rB0iIsK1ZHpDPtLSvp6qE4lBCikFuKsB9h4PE5f2DPLU8jDZTSXiK6NdZra91wuEIc5mwnPOEo0tj27orTDPtRH2vzlZ9xRvNrffw4TfiNVswykIvnWoG1isvUclJa1gEzGbSHUmbjqA9hfsrh1g0wOrPORYRnmwJl1k+mXgfiSFaJ9eq7Qx6CTCUv034Hh0ppgBsvLVR74Bvd3kMxbjZ9gQi5YGYXrKQgYkCHH3J8AHw8jHdg== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=UB0ArCHFj3Rmazu73Ykx0xtYwsIejxtrCDsqO8MrShj5oE2RK0XWCUm0zrUrn1fbtJsUT/Bv4k2jjRoQeD1zQ/xbzS9g2loNhNkVRsIM/68I8l/3BjKCmjy+XxjSokSg1yPhV8uT70+Hg1GxpbrQfUrXLFbZffmgkjoO9+eqtLbeXF0jS5ZZQjwv/Hb85r2NSlQCVjUVd/6qrFi+MWrgwT2z7sH2stLAsUBEwuAvZT5IPFlSbmhUrppI8u41s8T7IY6Z+78VxtuPdYdHUXMljcKKFqbuAEPgRf5G95K/7NcUo3wXzasdxUOQkJS3orBR300BGo4lKQkQL7w3QprwJw==; Received: from [66.196.81.160] by nm26.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Nov 2014 15:48:16 -0000 Received: from [98.139.244.53] by tm6.access.bullet.mail.bf1.yahoo.com with NNFMP; 14 Nov 2014 15:48:16 -0000 Received: from [127.0.0.1] by smtp115.sbc.mail.bf1.yahoo.com with NNFMP; 14 Nov 2014 15:48:16 -0000 X-Yahoo-Newman-Id: 590459.16694.bm@smtp115.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Z73zqhYVM1kpLxFJR84QO2LvouNn844Yzp7W1bcItAwVGGo gh067AmHX.EVuR2o.ASUF4tn63muP4nSDtDkozQAKtpRRXKMwprTtB6bmiN0 Ue3FoQtd.FhidadthFhshS5IBeY0m7BxZUW.2CK4yeQiN3O5pNWx0Fsd9.Py I2_vLL8XNOfeRzujUcmOJL7pMwdRo96JKsk3ry_HWFRgnytjaKmewO7TqYkN fWHlcK71R31q4.V.VZfPTf681hM5ov9WFlbIXvtGP5G0XWr7.gCrJ8wEzfAx ymS7DzYGyV3lALBu7kgOusgwW7TNHhJpPLOBLjMBE8dDZsr9x8GL6yJOSUpc OgVgT.kRTAyhvCsnD8BXHRyFJL3yEaL6M8ya8ebzAuGTZSImiA3KzHd0K5UX In9PXSmMpblDWGBkOtvRoG_4KmhnBQdYt0MQ_KkIiiPbLipx2YqTTAgg2mBj DNSuTQa9YuQV.gYk626jjCK7GagRQxFW_eavQuEz2JPNMr2hFiAV0.nAERLO sbdVN_bpMwcrBDbMlu4XynXe0eX3IssuhRUrAMDh5YKQ- X-Yahoo-SMTP: k88nFuKswBA1ME62ctly5_ytuuq0PFFRRyjLS3v3S8Vmn4nMeA-- Message-ID: <54662407.7060405@processlinx.com> Date: Fri, 14 Nov 2014 10:47:19 -0500 From: "perry@processlinx.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: issue Content-Type: multipart/alternative; boundary="------------000504020507030204000305" 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 This is a multi-part message in MIME format. --------------000504020507030204000305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit We are running a third party application on windows. It inserts about 15,000 rows a day into a postgres database. From time to time we see an issue where the insert rollsbacks. We do not have access to the client code but I would like to rule out odbc driver and postgres. We see no errors or warnings in the postgres log. Windows 7 we have installed psqlodbc Driver Version 9.02.01.00 Unicode Windows 7 client connects to a postgres sql server on freebsd 10.0 Postgresql 9.0.15 Looking for some gentle advice on how to diagnose this issue. Thank You mylog typical result [1788-1055553.436]SC_init_Result(653b058)[1788-1055553.436]SC_Destructor: self=0653B058, self->result=00000000, self->hdbc=0483B460 [1788-1055553.436]reset_a_column_binding: entering ... self=0653B0E0, bindings_allocated=1, icol=1 [1788-1055553.436]APD_free_params: ENTER, self=0653B158 ... mylog error result [1788-1055559.077]SC_init_Result(653b058)[1788-1055559.077]SC_Destructor: self=0653B058, self->result=00000000, self->hdbc=0483B460 [1788-1055559.077][[SQLEndTran]][1788-1055559.077]entering PGAPI_Transact: hdbc=0483B460, henv=00000000 [1788-1055559.077]PGAPI_Transact: sending on conn 0483B460 '1' psql log [1055547.871]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,70)' ' [1055547.886] [ fetched 1 rows ] [1055547.902]conn=0483B460, query='COMMIT' [1055553.374]conn=0483B460, query='insert into "public"."raw_trans" ("_name", "_numericid", "_value", "_timestamp", "_quality") values (E'OMRONS.LINE34.PULLER SPEED', 10, E'418', '2014-11-04 04:14:50.301'::timestamp, 192) returning ctid' [1055553.405] [ fetched 1 rows ] [1055553.405]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,72)' ' [1055553.420] [ fetched 1 rows ] [1055553.436]conn=0483B460, query='COMMIT' [1055559.014]conn=0483B460, query='insert into "public"."raw_trans" ("_name", "_numericid", "_value", "_timestamp", "_quality") values (E'OMRONS.LINE34.PULLER SPEED', 10, E'405', '2014-11-04 04:14:55.942'::timestamp, 192) returning ctid' [1055559.045] [ fetched 1 rows ] [1055559.045]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,74)' ' [1055559.061] [ fetched 1 rows ] [1055559.077]conn=0483B460, query='ROLLBACK' [1055559.264]conn=0483B460, query='close "SQL_CUR0653A4F0"' [1055559.264]conn=0483B460, PGAPI_Disconnect [1055559.295]conn=0483B460, PGAPI_DriverConnect( in)='DSN=PostgreSQL35W;UID=royal_plant1;PWD=processlinx;', fDriverCompletion=0 [1055559.295]DSN info: DSN='PostgreSQL35W',server='172.19.37.8',port='5432',dbase='royal',user='royal_plant1',passwd='xxxxx' [1055559.295] onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0' [1055559.295] conn_settings='', conn_encoding='(null)' [1055559.295] translation_dll='',translation_option='' [1055559.295]Driver Version='09.02.0100,201306020000' linking 1600 static Multithread library [1055559.295]Global Options: fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=255, max_longvarchar_size=8190 [1055559.295] disable_optimizer=0, ksqo=0, unique_index=1, use_declarefetch=1 [1055559.295] text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64 [1055559.295] extra_systable_prefixes='dd_;', conn_settings='' conn_encoding='' [1055559.311] [ PostgreSQL version string = '9.0.15' ] [1055559.311] [ PostgreSQL version number = '9.0' ] --------------000504020507030204000305 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit We are running a third party application on windows. It inserts about 15,000 rows a day into a postgres database. From time to time we see an issue where the insert rollsbacks.

We do not have access to the client code but I would like to rule out odbc driver and postgres. We see no errors or warnings in the postgres log.

Windows 7 we have installed psqlodbc Driver Version 9.02.01.00 Unicode
Windows 7 client connects to a postgres sql server on freebsd 10.0 Postgresql 9.0.15

Looking for some gentle advice on how to diagnose this issue.

Thank You


mylog typical result
[1788-1055553.436]SC_init_Result(653b058)[1788-1055553.436]SC_Destructor: self=0653B058, self->result=00000000, self->hdbc=0483B460
[1788-1055553.436]reset_a_column_binding: entering ... self=0653B0E0, bindings_allocated=1, icol=1
[1788-1055553.436]APD_free_params:  ENTER, self=0653B158
...

mylog error result
[1788-1055559.077]SC_init_Result(653b058)[1788-1055559.077]SC_Destructor: self=0653B058, self->result=00000000, self->hdbc=0483B460
[1788-1055559.077][[SQLEndTran]][1788-1055559.077]entering PGAPI_Transact: hdbc=0483B460, henv=00000000
[1788-1055559.077]PGAPI_Transact: sending on conn 0483B460 '1'

psql log
[1055547.871]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,70)' '
[1055547.886]    [ fetched 1 rows ]
[1055547.902]conn=0483B460, query='COMMIT'
[1055553.374]conn=0483B460, query='insert into "public"."raw_trans" ("_name", "_numericid", "_value", "_timestamp", "_quality") values (E'OMRONS.LINE34.PULLER SPEED', 10, E'418', '2014-11-04 04:14:50.301'::timestamp, 192) returning ctid'
[1055553.405]    [ fetched 1 rows ]
[1055553.405]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,72)' '
[1055553.420]    [ fetched 1 rows ]
[1055553.436]conn=0483B460, query='COMMIT'
[1055559.014]conn=0483B460, query='insert into "public"."raw_trans" ("_name", "_numericid", "_value", "_timestamp", "_quality") values (E'OMRONS.LINE34.PULLER SPEED', 10, E'405', '2014-11-04 04:14:55.942'::timestamp, 192) returning ctid'
[1055559.045]    [ fetched 1 rows ]
[1055559.045]conn=0483B460, query='SELECT * , "ctid", "id" FROM raw_trans where ctid = '(7840,74)' '
[1055559.061]    [ fetched 1 rows ]
[1055559.077]conn=0483B460, query='ROLLBACK'
[1055559.264]conn=0483B460, query='close "SQL_CUR0653A4F0"'
[1055559.264]conn=0483B460, PGAPI_Disconnect
[1055559.295]conn=0483B460, PGAPI_DriverConnect( in)='DSN=PostgreSQL35W;UID=royal_plant1;PWD=processlinx;', fDriverCompletion=0
[1055559.295]DSN info: DSN='PostgreSQL35W',server='172.19.37.8',port='5432',dbase='royal',user='royal_plant1',passwd='xxxxx'
[1055559.295]          onlyread='0',protocol='7.4',showoid='0',fakeoidindex='0',showsystable='0'
[1055559.295]          conn_settings='', conn_encoding='(null)'
[1055559.295]          translation_dll='',translation_option=''
[1055559.295]Driver Version='09.02.0100,201306020000' linking 1600 static Multithread library
[1055559.295]Global Options: fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=255, max_longvarchar_size=8190
[1055559.295]                disable_optimizer=0, ksqo=0, unique_index=1, use_declarefetch=1
[1055559.295]                text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64
[1055559.295]                extra_systable_prefixes='dd_;', conn_settings='' conn_encoding=''
[1055559.311]    [ PostgreSQL version string = '9.0.15' ]
[1055559.311]    [ PostgreSQL version number = '9.0' ]

--------------000504020507030204000305--