Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRQYO-0002xQ-1w for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 20:31:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRQYN-0003En-IU for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 20:30:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRQY0-0002pd-HK for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 20:30:36 +0000 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aRQXx-0003Nh-AU for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 20:30:35 +0000 Received: by mail-lb0-x22d.google.com with SMTP id bc4so38203296lbc.2 for ; Thu, 04 Feb 2016 12:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=324a4yyswvJxO7SpzjPq32NJeG5QNEyad/C8gzIu0DQ=; b=Dr1ga3Q74mo+XjKpOdMcx5uujD8akW7hyd+YMmYrXFqICB913om131PFqP8APaGPRS 9vUjutDKVcOe67ju309Ivk+rCn7dmD5i70gGYlMLcF7aueU0Jw1UltNvSfiCBclnLTEE NzbORqLRw1UsjaElnA22MeJpLY6T99/t+IwFm7Bb7ftmiLWf+PGRyhTtZToB1ctGgfGI 094F04Fhkpa58FV1s+7msbVyPr2Qcz/Gxc2htVpkUO4+H7BjB9+gJB5ClXfctK0ULNUV QBNJYFwC6k0kxd4R1EPZtAIjIHKR/kMtvZSDv+zvp8u6aVxq8j+WnWixc+k1we6kywFN 9gTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=324a4yyswvJxO7SpzjPq32NJeG5QNEyad/C8gzIu0DQ=; b=Srph6XUd96od8v6OATt/LHdSxKy5Sx0zF4kaFJy/ynHOv+5gBDkR76yMZtw7soGXSy 4NlxNOmCahaxt9nHBrA3iQt31YfYGceZjJ9V7ibgTtojTKEEVGsDN6ii2WFbiu0vlrzP vJuyAdkgu9g2do2qaksE3HN8Q0bhanPatXjcYz/q7kY0d/mJFBcudNtkT+Esl+j+5V92 obREPWCvy2QOuTY1KfTomkimBp4oqJcT/C+xD3x7gx4kpchhpWi/o2YIt9nUeUDhTgK+ mXKjxk70+MSpc20uJYp2vnsihkUTzOwAJ0kmEj24B/235smdxNHdZniynLapJNzWTXPd uUaA== X-Gm-Message-State: AG10YORoBrYC6mFDa9SrRD16+cLeAepQtpxxKop93OtjzHEk7wy87m82LvxlgdwwPts2oA== X-Received: by 10.112.170.101 with SMTP id al5mr4283017lbc.92.1454617830528; Thu, 04 Feb 2016 12:30:30 -0800 (PST) Received: from [10.0.1.221] ([5.61.10.2]) by smtp.gmail.com with ESMTPSA id t9sm1747041lfd.13.2016.02.04.12.30.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Feb 2016 12:30:29 -0800 (PST) Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400 To: Dang Minh Huong , pgsql-odbc@postgresql.org References: <016BF0E2-C52D-4D78-84C4-FB25BB04005C@gmail.com> From: Heikki Linnakangas Message-ID: <56B3B4A8.7040704@iki.fi> Date: Thu, 4 Feb 2016 23:29:28 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <016BF0E2-C52D-4D78-84C4-FB25BB04005C@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 04/02/16 16:54, Dang Minh Huong wrote: > I'm using psqlodbc version 09.00.0310 for my project. Recently i tried to upgrade to version 09.03.0400 and found that it is very slow in processing my batch (batch with milion of SELECT, UPDATE, INSERT statements). > > [environment] > > 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 > > 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 > > or > > ... INSERT waiting for 0/yyy > > ------ > > Note that, my replication connection is working well, and above messages just display within a second. This phenomenon is not reproduced in version 09.00.0310. > > I have confirmed release note. I thought changing of UseServerSidePrepare's default value made this perfomance 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? I don't recall anything relevant. It seems strange that changing the ODBC driver would make any difference to the replication. Something to do with autocommit, perhaps? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc