Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEg0I-0001qq-NU for pgsql-performance@arkaria.postgresql.org; Sun, 19 Jun 2016 16:55:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEg0H-0008Oz-V3 for pgsql-performance@arkaria.postgresql.org; Sun, 19 Jun 2016 16:55:22 +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_2) (envelope-from ) id 1bEg0H-0008Oq-9H for pgsql-performance@postgresql.org; Sun, 19 Jun 2016 16:55:21 +0000 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bEg0E-0005AK-BH for pgsql-performance@postgresql.org; Sun, 19 Jun 2016 16:55:20 +0000 Received: by mail-vk0-x234.google.com with SMTP id t129so170841156vka.1 for ; Sun, 19 Jun 2016 09:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fgYwCWn1cCT+HFxdh61b0y9MmAYoobbKrHyPFebJYdg=; b=VI8tJvZl2bYZXFCUKrFaDtjVwSezVw918YwTLvpFTpcCmedxsE6e+yxjodyvs/XQmw aNQlyLoXtSAFua0F5I8zdQE+/LFjiG5/cSFMBDC66iz4bohleMxuRXnU8O/lG/JXSAja hbn/RmgO6dAhv+uIVE4/NRFDs8HBGYCsAjhRT/xoAozevoxvLnOVqu8JRlaXI4SiEOmw /N0gyi/R441FCaRbBGFaxFVnqwvrV1W8d/2tuIpCTfHZkhKPSrBlQCcHtPnjf3oYKhYh PVvVLdJjDnMscFZx7gM9fnkj7BZqNI32MugjRoU9zh23izcRu0S7GV6Fja4u5Nblrpjf 3B5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fgYwCWn1cCT+HFxdh61b0y9MmAYoobbKrHyPFebJYdg=; b=NqXLTxInsjPO63HC5ToekHpudnlLXGnXqUzrFUij6TYAFNLix4NK5mqJ/nXvNYpvjL N9fG93RinOesLKR/bjpF5vRZUJM25G1mCg7pJfCaVXHtAYI4FxRl63ViZh/EIHisiPvI skuZtWe0bhR4+xB/tUsIJDQT82a9+c958tUxqQMejiTukNnzORRAGpq+VzxErl3b8c3J dza6zASC4X+SUMUccmpOYn0yZaBg+uy8Xl10sBx0+8XKVT7bAL8N+X89m4Zp/zX5f7nZ D2WXTDxl8NHd/1DN0xfXonMmiOKmQzAE+BWXT6wn6MvXG4c9TsHOKyksiL2x99axPDGP zayA== X-Gm-Message-State: ALyK8tIkPfe0C0oENvmbyJAqY010WILAC5jibRl80f98X/H8/XzOt2NSNgZH0ggDj17bRfsTSOCF5XTL5lHWLA== X-Received: by 10.31.74.2 with SMTP id x2mr3944548vka.99.1466355316513; Sun, 19 Jun 2016 09:55:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.131.204 with HTTP; Sun, 19 Jun 2016 09:55:16 -0700 (PDT) In-Reply-To: <632c061e261d478699e48af2a24363a7@CO2PR4202MB0281.048d.mgd.msft.net> References: <632c061e261d478699e48af2a24363a7@CO2PR4202MB0281.048d.mgd.msft.net> From: Jeff Janes Date: Sun, 19 Jun 2016 09:55:16 -0700 Message-ID: Subject: Re: Savepoint and Releasepoint in Logs To: e.ratnakar.shetty@accenture.com Cc: "pgsql-performance@postgresql.org" , daniel.machet@accenture.com Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Fri, Jun 17, 2016 at 8:19 AM, wrote: > Hi , > > I am connecting to PostgreSQL 9.4 via an ODBC driver on Windows machine from > MS VBA application. I am facing huge performance issues while inserting data > continuously. On analysing the logs , there were around 90000 statements > related to Save Points and Release Points. > > > > duration: 2.000 ms > > 2016-06-17 12:45:02 BST LOG: statement: RELEASE _EXEC_SVP_1018CCF8 > > 2016-06-17 12:45:02 BST LOG: duration: 1.000 ms > > 2016-06-17 12:45:05 BST LOG: statement: SAVEPOINT _EXEC_SVP_186EB5C8 > > 2016-06-17 12:45:05 BST LOG: duration: 0.000 ms > > > > I am guessing these statements are causing an overhead while inserting > records in to the table. The fact that there is 3 seconds between the release of one savepoint the start of the next suggests that your client, not the server, is the dominant bottleneck. Cheers, Jeff -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance