Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjD7-00081v-Br for pgsql-performance@arkaria.postgresql.org; Mon, 14 Apr 2014 15:54:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZjD6-0005zi-R0 for pgsql-performance@arkaria.postgresql.org; Mon, 14 Apr 2014 15:54:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjD5-0005ye-4o for pgsql-performance@postgresql.org; Mon, 14 Apr 2014 15:54:15 +0000 Received: from nm4-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.44]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjD1-0003hr-PY for pgsql-performance@postgresql.org; Mon, 14 Apr 2014 15:54:14 +0000 Received: from [98.138.100.116] by nm4.bullet.mail.ne1.yahoo.com with NNFMP; 14 Apr 2014 15:54:09 -0000 Received: from [98.138.89.163] by tm107.bullet.mail.ne1.yahoo.com with NNFMP; 14 Apr 2014 15:54:04 -0000 Received: from [127.0.0.1] by omp1019.mail.ne1.yahoo.com with NNFMP; 14 Apr 2014 15:54:04 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 205202.81358.bm@omp1019.mail.ne1.yahoo.com Received: (qmail 27667 invoked by uid 60001); 14 Apr 2014 15:54:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1397490844; bh=dn0A9gMWUrSeoyTrgkPOTL0UVC6CdA+syvolVFw6Rws=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jP89zPkrutyrNpcHkLmvUwc41i5up+xBC0v4pB06VeToIo/PsVtR7lqEfavKkGSoPYj/ryk+/RmuH6taImwKMZv1kUs5j+bjMG56h0Q/Oj35W3pIBhuT6WHzwp46hj+K71OEBe2DOEDfABE1BRMt3QO2piJi7oGmMJFg+rFD1ko= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=nOrfcePC8QJBbOuUU6sF0Bey6PoXTmZnqgZSR5CBSwnaKfPLdjv4D6Fv325dNHqCaExncm3YXtfog7xD54LWRpmYE5uysDVASbQAT5NyNB6xkG8juc72xYAvEukTZyKdKqxxJ58G1sZiueSQR8Ng1EdlHg2h5qNe1i00A8HqPII=; X-YMail-OSG: gBmmUM8VM1mjWRjFrEpaozzDvTCNZXw6UTZjhR8MuiDYv6S 3t3n5zUpT7kPv1V_k5BI0QKSa38ipMLEfHv09ygBwsE25Hpx0ACTrp.2MwMI tax7.c3YZVyiEqrzT.uIHCtJnlehAdHcjR0cInPvD4bwHzXTcFqgU8IjJGp4 xEuM2RBdcURv1vv_ijs7dFSwmT3cFHijoNEEEB8u1lTWfnVakvug5pUSXZce m93YGTBEEpBwiO2HDGt94H_Iw6qB0Y6EIRZH6LQUup2j7ROtPy6xT.xb5V9y MmD8I9r1k2UB8eZCLE7BxY9LOxencynD1NL.vgGJEocsnvxFJLDOtUGdn4tM Hxbv_V.YTrC46csBRWJgIYg3YSs.lLfC_bzjGcnCMDpMz2w0ZQSclVU2kpTE RmFd39JSqkQMy1owGvh8oBO0gbwAqe3YrYuMgP4KPQEJlgLOj2Yj3ikzGnes DP8.urWmJCgdCVZ_c0Jx946pcaPokq5j31HviXKMHF5OGtTzefsof0P7VTIY I_3ipDgi7IA5cY0vMdNdbdEscKsu98lCb1VIU0wdR.5sfFgjPa0_fYiFColI wexsJjpozcYamR4zG1UdwKPOAl0xpIFugOzfGA9HASCxUXHk5ah2.kW2pvDY LQ477hz1tse3IdGLZMyOwlF21s3aYk91yPIMyzgVW_q_IgJpdoUTRgLd4hAg PzPTG3O.0DyhifPqPidst Received: from [24.178.25.147] by web122304.mail.ne1.yahoo.com via HTTP; Mon, 14 Apr 2014 08:54:03 PDT X-Rocket-MIMEInfo: 002.001, UnlhbiBKb2huc29uIDxyeWFuLmpvaG5zb25AY3MudXRvcm9udG8uY2E.IHdyb3RlOg0KDQo.IHdoYXQgZmFjdG9ycyBtaWdodCBjYXVzZSBhIHByZXBhcmVkIHRyYW5zYWN0aW9uIHRvIGV4aXN0IGluIHRoZQ0KPiBmaXJzdCBwbGFjZT8NCg0KQXMgcGFydCBvZiBhICJkaXN0cmlidXRlZCB0cmFuc2FjdGlvbiIgdXNpbmcgInR3byBwaGFzZSBjb21taXQiIGENClBSRVBBUkUgVFJBTlNBQ1RJT04gc3RhdGVtZW50IHdvdWxkIGhhdmUgaGFkIHRvIHJ1biBhZ2FpbnN0DQpQb3N0Z3JlU1FMOg0KDQpodHRwOi8vd3cBMAEBAQE- X-Mailer: YahooMailClassic/481 YahooMailWebService/0.8.185.657 Message-ID: <1397490843.97407.YahooMailBasic@web122304.mail.ne1.yahoo.com> Date: Mon, 14 Apr 2014 08:54:03 -0700 (PDT) From: Kevin Grittner Subject: Re: SSI slows down over time To: Ryan Johnson Cc: pgsql-performance@postgresql.org In-Reply-To: <534BEF32.9060309@cs.utoronto.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -2.0 (--) 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 Ryan Johnson wrote: > what factors might cause a prepared transaction to exist in the > first place? As part of a "distributed transaction" using "two phase commit" a PREPARE TRANSACTION statement would have had to run against PostgreSQL: http://www.postgresql.org/docs/current/interactive/sql-prepare-transaction.html > I'm running a single-node db, and I've had only normal database > shutdowns, so I wouldn't have expected any. Prepared transactions survive shutdowns, normal or not, so that doesn't matter; but prepared transactions are normally used with a transaction manager coordinating transactions among multiple data stores. On the other hand, I have seen cases where a developer "playing around" with database features has created one. And using them with a "home-grown" transaction manager rather than a mature product is risky; there are some non-obvious pitfalls to avoid. Anyway, you may have found a bug, but most of what you're seeing could be caused by a prepared transaction sitting around indefinitely, so it's something to check before looking at other possible causes. If you have a way to reproduce this from a new cluster, please share it. That always makes diagnosis much easier. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance