Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YOwN2-000350-7a for pgsql-admin@arkaria.postgresql.org; Fri, 20 Feb 2015 22:48:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YOwN1-0002yd-AQ for pgsql-admin@arkaria.postgresql.org; Fri, 20 Feb 2015 22:48:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YOwMz-0002yP-RY for pgsql-admin@postgresql.org; Fri, 20 Feb 2015 22:48:25 +0000 Received: from nm41-vm4.bullet.mail.bf1.yahoo.com ([216.109.114.159]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YOwMr-00076V-KD for pgsql-admin@postgresql.org; Fri, 20 Feb 2015 22:48:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1424472495; bh=3KdKI9ZBa0XdTEiqOIYF3y31FhRnXiOEMzGgt+OdflY=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=FsW5bxdsw0ywTM4DPPXS76tctkF6ivPszLwt573xc9JUZjzfE//Ufd7LXQu4/Dl/K7DY1EmhkRJR90iN9mJALRNcNL1i1VrPo+Hw/9bIpt4/OuqgMma1AWeQWgdJ4vOyhpIw8bmQ32w23w/1FE5cupmdnrT0B3tAXGl+zEyE1U4BSkF3UUs88Qnzcq+I+QCoj+1jWvNGpNmP6/KwP3ab4tIcRh1Ye8Fj+mZwC0NbUDAcI3iamF1RQ42eYvNxiDBCXz+pd9PGh7qpHjA8Duq8xDgi9RXU2c19TqN9JKo2J8n2XJ9ikIXLud3hjBcClkJXgjcUUOMP941EegA/+Z7cRg== Received: from [98.139.215.140] by nm41.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2015 22:48:15 -0000 Received: from [98.139.215.229] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2015 22:48:15 -0000 Received: from [127.0.0.1] by omp1069.mail.bf1.yahoo.com with NNFMP; 20 Feb 2015 22:48:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 927649.18922.bm@omp1069.mail.bf1.yahoo.com X-YMail-OSG: IE2CLvkVM1l0u9Tq52trmB2raGgXSlMktxhO0j4D.8kdhMZxDPwfgvFXie81zoH jhvLAnaDaB3KUCCR9yEPKkvRrsdRX9LiwKuU6EBC.DZ1SJhvx8HRYvYWyAKp3zjVSaD9ll2kfBnw gbEzZvE_nTkTQL2UXFOZ7.acoQgXKCcg00YYWHsGXNahYyM.tvTAhfxiQ_zsO1qxCq6G9UgQPl_h rLChT92m8kCM0EhqPrTJhxtEnGosjprPMT6UY1dF5o7YXmW.til6_eC9Zur1cACzSgOWSm_zFNB0 JesqKO6wYqeHPdLme7vs3X2dRin65FLL055bf82uTnadDNOmG0vXfZmJPkpDTRWcQEeiooytxQ4N YeeUPV0s67yzkY3ut.eK1BhkUaI114hvI7Pixroo9hvZ9pvF0xkCP7pkTRZRuz945vR.5bMDVvdH MlWPKx805A1N_tjW3xGhY2ZoJj.NZ9SPSVmLogSwqaF36VijN5MBOr9GQa5ZRVnhoxWuG2.NREM2 FPKoE_ZQtGnDMpCszVoS_CVtcJA4bZ8Js6L3jLok8xy0L6L1T9.CsIQ-- Received: by 98.138.105.200; Fri, 20 Feb 2015 22:48:14 +0000 Date: Fri, 20 Feb 2015 22:48:09 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Drazen Kacar , "pgsql-admin@postgresql.org" Message-ID: <1328517318.859752.1424472489522.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Query cancellation on hot standby because of buffer pins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1116 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Drazen Kacar wrote: > I'm seeing query cancellation on hot standby (Postgres 9.3.4, > configured with hot_standby_feedback=on) because of buffer pins > being held for too long. > > Database message looks like this: > > ERROR: canceling statement due to conflict with recovery > DETAIL: User was holding shared buffer pin for too long. > STATEMENT: ... It would be helpful to see what that statement was that you replaced with the ellipsis. I you don't already have log_autovacuum_min_duration set to 0 (or something very close to it) on the primary, I recommend you set that; it would be useful to see if this corresponds to a vacuum on the table. What is your maintenance_work_mem setting on the primary? Does increasing it change the behavior? (You may want to jack that up really high for diagnostic purposes.) If you can associate the problem with a particular table, seeing the definition of that table wouldn't hurt, either. Oh, and please update to 9.3.6; there are some nasty bugs fixed. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin