Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRSPZ-0007tR-Rl for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 22:30:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRSPZ-0004p2-8I for pgsql-odbc@arkaria.postgresql.org; Thu, 04 Feb 2016 22:30:01 +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 1aRSPY-0004oh-Pv for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 22:30:00 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aRSPR-0006TH-2F for pgsql-odbc@postgresql.org; Thu, 04 Feb 2016 22:30:00 +0000 Received: by mail-pf0-x233.google.com with SMTP id o185so56916797pfb.1 for ; Thu, 04 Feb 2016 14:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ekKyDxP07pbSye6Aqf6hIbnvZAM5RocRfKP2ODHjRso=; b=BqnWmKyEbseBlCLwp39k+kWbb5y5ks/fCgymWeRBEnVemYUi8klaIh1R81tnqL0A1K XoJlj1hiD2KvQkYDFNa0UMSxXs5oeK8HRKH/5rR1NiVPgCkOCp6hBTtX54dVmCO7QFMb io6ag2XCEfMRicfMfaz+LlILFafYBe+ce1ksKcA3Vz6BTKgpO/j56zzvR4+wiQUioCQK FlZmRJ120tz+UNv45imlOcWBxKTmFUmm7IwgaCDiPCZNBFYB1wIwac446SwgGHhhTxai g0hmQSlGuohLbC/o4H8OD+WZrgCrS+QaeB0SlTRUHYWDEZSXGv272GRifuRYYQIfpFAG TT1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=ekKyDxP07pbSye6Aqf6hIbnvZAM5RocRfKP2ODHjRso=; b=axiN8EBjYNeSuFa+wP1p7djUt4dnefrgckEf7hGmiMWtT7zXfe8WtVrXLE07+v1/06 1IC1XpFdAbE2nJ1VtHD4ij8lrJm1dQUAU5gG/DtUZ7sfKgINbVhzzXeuOH5tFNwoD/8t ryM7xYJp0PBVlBY784xPKAOdgSunAjRFs5RsfipCeCDylqTjvafHn/4qMcZLjp7TaSi1 5sWEmjl8+ZYDX1FWfW0HaEto0Liq0oT5H8n1bw8vYS8rnamiwmhM6ESKKJRGq6CH0ddo SkX2CrFVdftEjU3r0MAplhAgymgY8XDdyp/s3IP1Yki1sRa7K+wqUWDorHJ+IfmDdy4A FzHA== X-Gm-Message-State: AG10YOR/pIFCrwn7aRdZHbWM5xd2ZAInodnR/W/IJjueKuMyNm/VJ9Xy/bN7KiX4P+373w== X-Received: by 10.98.18.201 with SMTP id 70mr15054838pfs.104.1454624990979; Thu, 04 Feb 2016 14:29:50 -0800 (PST) Received: from [100.86.60.179] (s1184173.xgsspn.imtp.tachikawa.spmode.ne.jp. [1.79.84.173]) by smtp.gmail.com with ESMTPSA id ud8sm12498961pac.11.2016.02.04.14.29.48 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Feb 2016 14:29:49 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Degradation of performance when upgrade psqlodbc to 09.03.0400 From: Dang Minh Huong X-Mailer: iPhone Mail (13C75) In-Reply-To: <56B3B4A8.7040704@iki.fi> Date: Fri, 5 Feb 2016 07:29:46 +0900 Cc: pgsql-odbc@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <7430C065-C285-4EC4-833A-640BBE845FB5@gmail.com> References: <016BF0E2-C52D-4D78-84C4-FB25BB04005C@gmail.com> <56B3B4A8.7040704@iki.fi> To: Heikki Linnakangas X-Pg-Spam-Score: -2.5 (--) 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 Hi, Thanks for prompt response sir. >> On 04/02/16 16:54, Dang Minh Huong wrote: >> I'm using psqlodbc version 09.00.0310 for my project. Recently i tried t= o upgrade to version 09.03.0400 and found that it is very slow in processin= g my batch (batch with milion of SELECT, UPDATE, INSERT statements). >>=20 >> [environment] >>=20 >> OS: Redhat 6.7 x 2 nodes >>=20 >> PostgreSQL 9.1.19: Synchronouse Streaming replication & hot_standby. >>=20 >> DB connect method: psqlodbc/unixODBC. >>=20 >> [results of performance] >>=20 >> It took below timing to execute my batch >>=20 >> In version 09.00.0310: 11minute >>=20 >> In version 09.03.0400: 53minute >>=20 >> When my batch run in 09.03.0400, ps command repeatedly show below proces= ses. >>=20 >> Something delay the transmitting & replaying WAL in STANDBY db node? >>=20 >> ----- >>=20 >> ... UPDATE waiting for 0/xxx >>=20 >> or >>=20 >> ... INSERT waiting for 0/yyy >>=20 >> ------ >>=20 >> 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. >>=20 >> I have confirmed release note. I thought changing of UseServerSidePrepar= e's default value made this perfomance problem but not. I don't know what c= hange make it slower. >>=20 >> Sorry for lack of infomation but, is any big changes related to performa= nce between above versions? >=20 > I don't recall anything relevant. It seems strange that changing the ODBC= driver would make any difference to the replication. I also think that. I wonder if something missed in my environment but not f= ound, and it is not reproduced in 9.00.0310. > Something to do with autocommit, perhaps? Sorry but did you mean that, default of autocommit was changed to "on", bet= ween above versions? Thanks and best regards, bocap. >=20 > - Heikki >=20 --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc