Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8cUv-0000DJ-HQ for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 02:07:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8cUu-0007hp-1K for pgsql-general@arkaria.postgresql.org; Wed, 18 Apr 2018 02:07:00 +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.89) (envelope-from ) id 1f8cUt-0007hg-M9 for pgsql-general@lists.postgresql.org; Wed, 18 Apr 2018 02:06:59 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8cUr-0002pj-Dh for pgsql-general@lists.postgresql.org; Wed, 18 Apr 2018 02:06:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9093121D81; Tue, 17 Apr 2018 22:06:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 17 Apr 2018 22:06:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Vx3UqXVbAlt9A9z2MBwb8czuhiqfcsqMPa4T7S3grfs=; b=x1+RXiAG 74UVJiDJW+nDv924qEdpIg+MMjE8OUDzIh9YqI5COu7eR6kVjWuYN+mhlhg9GWiK pfUaE9ue+nJPeQenS2eQTZnSGHrR+2kznXNKiJ3Coo9KypzQm39sgVgB487KBLIg L28/53rbcD053AeyidfjRroAL5Y5G+fSRtPVOgMV0H8/74IyEglTe+aYQsJv2bE0 twW+yC5GiFm2eb7oRp1eF6Xrjja5Sf2YiuLhACyLPq63HRCQpWo0S+fs0U7dlmbd iRCkcRJHNo8vwAPYDmx+pjUXod0E8HQlqP7279q/NgLq6bnHBGpDqDWH3aj7hFbm T3nSmi6qsvuGLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Vx3UqXVbAlt9A9z2MBwb8czuhiqfc sqMPa4T7S3grfs=; b=EoSWwpDRAmQi8kQwDwA6kT8Cj0U+6XhHtDjOeETR2xiHZ IeAaRCkJK8RbrQefUR8C6k2s/H45qiGmYY9dnYtIdXQYrRsMNk2KCzmchPytTI16 HdLhFoMEv/3Jr5sesKQQTtAZ61D2NBgB7M4iivMSGxY2x/WyVZj7gusIYHXv8qWx 0w/xwjkBNyBKtVCXDX5GjB55QqzhdoVc3RoRhJwW0RZaIzxCHOsSzbOB/azI2Bcg uKNSY6soNKuV1lU3+yHMXKI5KK8OdygiY1Fu0q04XZIBL5VuSyh67E0TOwVsGmSf DGNVOpOeB2pFGdufc36M8OEi7LeVUoa8xFRGvP8Lw== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 5074B10256; Tue, 17 Apr 2018 22:06:55 -0400 (EDT) Date: Wed, 18 Apr 2018 11:06:52 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Hans Sebastian , "pgsql-generallists.postgresql.org" Subject: Re: Old active connections? Message-ID: <20180418020652.GH18178@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AqCDj3hiknadvR6t" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --AqCDj3hiknadvR6t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 17, 2018 at 05:11:10PM -0700, David G. Johnston wrote: > Long-lived non-idle statements would likely be waiting for a lock to be > released. Be very careful with transactions marked as "idle in transaction" for a long time. Long-running transactions prevent VACUUM to do its work as the oldest XID in view is not updated, causing performance to go down, and bloat to go up. -- Michael --AqCDj3hiknadvR6t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlrWqDwACgkQnvQgOdby QH18EQ/+Nz9TMSx4R1//K1vgaDfuo+foyHxjWc59f0MDdXZhhUQl29/QBPzjYXaF hnXcmOYkWP+EhlQbr0lJapc2hnDrdTCDpg2lDdh4yvfDQ0VYGQDu9mnsXJIgPhuv +Je5WDQddLDq10y6roPtDQvPbODbXkieVM2eLL3b9Oxf8jWyt99dExDwB7g5/WCp hk/ffRjOSNTXcte1qzunqi7oqLcFR0m1YjxktKQeUvCzB1xA+HRkMaN78A6MZj18 gYO7cJba4P08hGGGrL/l9/dmTke/+5Ts8h4eX9Oza1EDLFRnSKb0Z8tRl838GR3R 5plDuPww/93SfZRSD5wiA/Sw8VvYLGqjn9d816TNk53wXkjqbtWLBsLUDC+qfRt5 2P/JjTXqtj6WM+GoVDH3PxIVge7vH2AkT3Hh4mfXxUoJh4I0euJSx1oLWvkXWzni 61neXncdis8zr1N9Kfc5ltg3k/jYpuuCTCx12onR9l4F2gzXGuQVeWZ+PSSlRDb5 HQjamDBKSOgDk/fnsDe9im9pDo+3tcIvGmLAui6IUy3K5895qsu61O6paQHfTzAe QSk0Yhiq3LvqGbtQG6MHAFl0iFqteROn0J4cRON7NhEVoaBFbIW/ZEfRNnC5cJI+ rA82esrQoRF9vL+9X3ubRuiaHhxPA8HgAzNotsIdDqZ+IF8mKNQ= =VtNC -----END PGP SIGNATURE----- --AqCDj3hiknadvR6t--