Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRKMl-0001lq-UK for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 13:54:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRKMl-0000LB-3w for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 13:54:35 +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) (envelope-from ) id 1aRKMk-0000L4-NQ for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 13:54:34 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aRKMh-0003bW-DH for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 13:54:34 +0000 Received: by mail-pf0-x22f.google.com with SMTP id 65so45927602pfd.2 for ; Thu, 04 Feb 2016 05:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; bh=7FmrOPp+KsidjTyVhkDKNid3cQZqBZQs2goKDJTKL8k=; b=MUWV8cwKHRXxSwzDAQTnP0YVn/PiipYcqOcmsljtSZwTiK4ijf1vI4N0HCbbM7Bzk+ zrVdPxJMd4ds1NIZSApoVKBdwcTo2aGi33N5ZbwBziZjlFRVIgvyGTMko5uUtb6JDAUn EMLc08ufNf2g3zDflkylsZ675/U917C3GNw7kEmjzIvkyJc1wd06AB7fgfyqmdO6rebC JiF/qpZi0Lif3ijyVPOwrytpUC4rQEoqJHLyBk6hmvnwvL9VdEAl+Oj10rrqxxf73Ez8 fDt2eqJKznWQ+LdSimHrUrs1bt0X6ggna+5celW1LtyqdqISpQdxLgS/awr8L1H6vlCu xUsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :mime-version:subject:message-id:date:to; bh=7FmrOPp+KsidjTyVhkDKNid3cQZqBZQs2goKDJTKL8k=; b=EcOv3TGnsu2/Gvz0FUvLKoH3HkC0A9jYesvyl6Tc5xEkcEi2B5I9ryq6y+XG5x1T8e s4mrXtg6DjBG0nJHIBkyEn7Fbwk2y9mc7tBhOwJZzRVaKmx8I0tsfLlTy0m77Ng/3N0G QZTe4+npos9lecVmljBSP/UERZDJS59LVHxosjiZyYU4Jb55xmovJQlEqsLi53b3FVEA 2L3OHOR9ZsCP7UXhIwdb7vbeGItsp1E+TYhnr4yq8aYMheCa/cm1oJkrZixYWs4qtLnq HlbPwM33erSV6mAmSUyjcCAqYV81tecfITE5heH+stnt6oKazV/6Fb1KYKFR1gPa1wjO hBUA== X-Gm-Message-State: AG10YORaAlgXsPC8VCH0DKONuK9U8bVlKGvuoEMpwRyc/6ZgDeOjTmC5DWhbrytdgilwrA== X-Received: by 10.66.164.196 with SMTP id ys4mr10932391pab.119.1454594069453; Thu, 04 Feb 2016 05:54:29 -0800 (PST) Received: from [10.24.187.106] (s896236.xgsspn.imtp.tachikawa.spmode.ne.jp. [49.97.96.236]) by smtp.gmail.com with ESMTPSA id 79sm17521802pfr.22.2016.02.04.05.54.26 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Feb 2016 05:54:28 -0800 (PST) From: Dang Minh Huong Content-Type: multipart/alternative; boundary=Apple-Mail-8FD657AF-4AF0-4F74-9D41-AFA8D2332A8F Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: Degradation of performance when upgrade psqlodbc to 09.03.0400 Message-Id: <016BF0E2-C52D-4D78-84C4-FB25BB04005C@gmail.com> Date: Thu, 4 Feb 2016 22:54:24 +0900 To: pgsql-odbc@postgresql.org X-Mailer: iPhone Mail (13C75) X-Pg-Spam-Score: -2.4 (--) 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 --Apple-Mail-8FD657AF-4AF0-4F74-9D41-AFA8D2332A8F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi, I'm using psqlodbc version 09.00.0310 for my project. Recently i tried to up= grade to version 09.03.0400 and found that it is very slow in processing my b= atch (batch with milion of SELECT, UPDATE, INSERT statements). [environment]=20 OS: Redhat 6.7 x 2 nodes PostgreSQL 9.1.19: Synchronouse Streaming replication & hot_standby. DB connect method: psqlodbc/unixODBC. [results of performance] It took below timing to execute my batch In version 09.00.0310: 11minute=20 In version 09.03.0400: 53minute When my batch run in 09.03.0400, ps command repeatedly show below processes.= Something delay the transmitting & replaying WAL in STANDBY db node? ----- ... UPDATE waiting for 0/xxx=20 or=20 ... INSERT waiting for 0/yyy ------ Note that, my replication connection is working well, and above messages jus= t display within a second. This phenomenon is not reproduced in version 09.0= 0.0310. I have confirmed release note. I thought changing of UseServerSidePrepare's d= efault value made this perfomance problem but not. I don't know what change m= ake it slower. Sorry for lack of infomation but, is any big changes related to performance b= etween above versions? Best regards, bocap.= --Apple-Mail-8FD657AF-4AF0-4F74-9D41-AFA8D2332A8F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi,

I'm using psqlo= dbc version 09.00.0310 for my project. Recently i tried to upgrade to versio= n 09.03.0400 and found that it is very slow in processing my batch (batch wi= th milion of SELECT, UPDATE, INSERT statements).

[environment] 

OS: Redhat 6.7 x 2 nodes

PostgreSQL 9.1.19: Synchronouse Streaming replicatio= n & hot_standby.

DB connect method: psqlodbc/unixODBC.

[results of performance]

It took below timing to execute my batch

<= p style=3D"color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; box= -sizing: border-box; margin-top: 0px; margin-bottom: 16px;">In version 09.00.0310: 11minute&nb= sp;

<= span style=3D"background-color: rgba(255, 255, 255, 0);">In version 09.03.04= 00: 53minute

When my batc= h run in 09.03.0400, ps command repeatedly show below processes.

<= p style=3D"color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; box= -sizing: border-box; margin-top: 0px; margin-bottom: 16px;">Something delay t= he transmitting & replaying WAL in STANDBY db node?

-----

... UPDATE waiting for 0/xxx 

or 

... INSERT waiting for 0/yyy

------

Note t= hat, my replication connection is working well, and above messages just disp= lay within a second. This phenomenon is not reproduced in version 09.00.0310.

I have confirmed release no= te. I thought changing of UseServerSidePrepare's default value made this per= fomance problem but not. I don't know what change make it slower.

=

Sorry for lack of infomation but,= is any big= changes related to performance between above versions?

Best regards,

bocap.

= = --Apple-Mail-8FD657AF-4AF0-4F74-9D41-AFA8D2332A8F--