pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Venkatesan, Sekhar <sekhar.venkatesan@emc.com>
To: Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Rao, Raghavendra <raghavendra.rao@emc.com>
Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
Date: Thu, 18 Feb 2016 21:29:25 +0900
Message-ID: <56C5B925.6060608@dream.email.ne.jp> (raw)
In-Reply-To: <F84DE43FDACD4C45AA84E2DA016FAE2F1C668B14@MX105CL01.corp.emc.com>
References: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65A834@MX105CL01.corp.emc.com>
	<56AA5348.60100@commandprompt.com>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65A8B7@MX105CL01.corp.emc.com>
	<56ABD9CF.7030400@aklaver.com>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65BE3B@MX105CL01.corp.emc.com>
	<0A3221C70F24FB45833433255569204D1F521518@G01JPEXMBYT05>
	<0A3221C70F24FB45833433255569204D1F521579@G01JPEXMBYT05>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C668B14@MX105CL01.corp.emc.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi,

It's not the difference between Windows and Linux.
There is an option *Level of rollback on errors* to specify either nop, 
transaction or statement.

regards,
Hiroshi Inoue

On 2016/02/18 15:45, Venkatesan, Sekhar wrote:
>
> Hi Takayuki,
>
> One thing I wanted to point out is that I didn’t see this issue in 
> Linux OS. The application code is the same for both windows and Linux. 
> In both the cases, we are in a transaction and an error occurred.
>
> In linux, inserts are getting committed. In Windows, inserts are not 
> getting committed. I will fix the application code to resolve the 
> error. But just want to know the reason for different behavior.
>
> When I enabled tracing in both, I see this difference:
>
> Windows (After insert statements in tables):
>
> *2016-02-17 16:47:10 GMT ERROR:  relation "dm_job_request_s" does not 
> exist at character 24*
>
> 2016-02-17 16:47:10 GMT STATEMENT:  SELECT 1 AS total FROM 
> dm_job_request_s S, dm_job_request_r R WHERE S.r_object_id = 
> R.r_object_id AND arguments_keys = 'OldUserName' and arguments_values 
> = $1   AND request_completed = 0 AND job_name = 'dm_UserRename'
>
> *2016-02-17 16:47:10 GMT LOG:  statement: ROLLBACK*
>
> 2016-02-17 16:47:10 GMT LOG:  statement: BEGIN
>


> Linux (After insert statements in tables):
>
> *< 2016-02-18 01:17:53.173 EST >ERROR:  relation "dm_job_request_s" 
> does not exist at character 24*
>
> < 2016-02-18 01:17:53.173 EST >STATEMENT:  SELECT 1 AS total FROM 
> dm_job_request_s S, dm_job_request_r R WHERE S.r_object_id = 
> R.r_object_id AND arguments_keys = 'OldUserName' and arguments_values 
> = $1   AND request_completed = 0 AND job_name = 'dm_UserRename'
>
> *< 2016-02-18 01:17:53.173 EST >LOG:  statement: ROLLBACK to 
> _EXEC_SVP_0x35fa4b0*
>
> *< 2016-02-18 01:17:53.173 EST >LOG:  statement: RELEASE 
> _EXEC_SVP_0x35fa4b0*
>
> **
>
> In linux, there is one extra call to release the savepoint which is 
> not the case in windows.
>
> Is this causing the behavior change in windows when compared to linux?
>
> What is the expected behavior when “Release” savepoint is called?
>
> *Note:* In linux, we are talking to linux PostgreSQL server. In 
> Windows, We are talking to windows PostgreSQL server.
>
> Thanks,
> Sekhar
>
>

view thread (17+ messages)  latest in thread

Message-ID: <56C5B925.6060608@dream.email.ne.jp>
Permalink:  ../56C5B925.6060608@dream.email.ne.jp/
Also on:    postgresql.org/message-id/56C5B925.6060608@dream.email.ne.jp

 · 

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: h-inoue@dream.email.ne.jp, sekhar.venkatesan@emc.com, tsunakawa.takay@jp.fujitsu.com, adrian.klaver@aklaver.com, jd@commandprompt.com, raghavendra.rao@emc.com
  Subject: Re: PostgreSQL: Autocommit through windows odbc driver doesnt work!!!
  In-Reply-To: <56C5B925.6060608@dream.email.ne.jp>
  References: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65A834@MX105CL01.corp.emc.com> <56AA5348.60100@commandprompt.com> <F84DE43FDACD4C45AA84E2DA016FAE2F1C65A8B7@MX105CL01.corp.emc.com> <56ABD9CF.7030400@aklaver.com> <F84DE43FDACD4C45AA84E2DA016FAE2F1C65BE3B@MX105CL01.corp.emc.com> <0A3221C70F24FB45833433255569204D1F521518@G01JPEXMBYT05> <0A3221C70F24FB45833433255569204D1F521579@G01JPEXMBYT05> <F84DE43FDACD4C45AA84E2DA016FAE2F1C668B14@MX105CL01.corp.emc.com> <56C5B925.6060608@dream.email.ne.jp>

* 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