Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZjpB3-000318-Is for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2015 13:54:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZjpB2-0002WR-EG for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Oct 2015 13:54:40 +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 1ZjpB1-0002TB-7u for pgsql-bugs@postgresql.org; Wed, 07 Oct 2015 13:54:39 +0000 Received: from nm12-vm10.bullet.mail.gq1.yahoo.com ([98.136.218.139]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZjpAw-0002Xg-U1 for pgsql-bugs@postgresql.org; Wed, 07 Oct 2015 13:54:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1444226071; bh=WU9TpAiGK09w3yRcWjwsHkNhoh/YA2SCsaOW8jzG5Rs=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=ASEJxhiqy0NPliwvD+csoAgSYL09y/2LnaPz5abmgKxLiffxVvr0nA0XUNzTrlS8MURB6D4Evtjdr/R1uiOmiydVWo7dwrOK7u5h523RdBr/FuNUZYO2IEnMzPaJ/c4aUftSuXKr9Y5rCo+hcksN2Znxs4N3k/2xAUDxofHXEYgwvmf4h+RIPyRV71+kHTkoSno7QPv5TlQ14tBmaNi3r8IbLYN3E0L/JX+AtFfZ15otbA9HLgTPuephrKzgp4rA19n7WPkmHsmfjiE9I75vsVEEb6WDP/QBoW56idvG9Mk240/MoCbK3xVDoJ6vm0xENXwncfD2UQpSQsCo3qsjhg== Received: from [216.39.60.183] by nm12.bullet.mail.gq1.yahoo.com with NNFMP; 07 Oct 2015 13:54:31 -0000 Received: from [98.137.12.208] by tm19.bullet.mail.gq1.yahoo.com with NNFMP; 07 Oct 2015 13:54:31 -0000 Received: from [127.0.0.1] by omp1016.mail.gq1.yahoo.com with NNFMP; 07 Oct 2015 13:54:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 781361.93666.bm@omp1016.mail.gq1.yahoo.com X-YMail-OSG: KGZ9A5cVM1kfmdpp6fnt0h6I4grpSwcn3tzNenzQMWO_bOK7DCiy_yez8q.nktv 4F4K92fGwaCL5bNtcHQXrI35V1s9jyxFRi.7u20VE_N4e63PN.qjEb5ODbmVJn3QnvPopsT25tzH QvGlXOc3xaJ2za79V8Zk4Mgh4_aQdRKERkFgiFA7p398e0XrU1tU8qH5BrVUTMFxWa3WgWYLomkA ja_Py0Y8G8Tahf1te79rrG2JLRuw1ktGa7_7TvP0QAylzc7nZ15wDc346xUvyiJSADjvJpNmkmWr 6DzzPm536uWT1no5nkVayXFPcJ.ngXJnKqCp.TNqR2GuZMVVb7uy8Dbq119lOJu7.LdLAcNm8n.N AtLeLi2rrlpT4jpqz0qiYPi4ODb9sE6MgnirVVA.4OuwbMxaK9uqzHtywgqPOKCIffJUBzX5F6_c BaWZ6C0Apu6OVW7CqTEQMYOG7NlgtnGFk.mm6sUtbEy18P1K_uhcrnxZ2cdqqKC2EeYafHP.xXQ-- Received: by 98.137.12.254; Wed, 07 Oct 2015 13:54:31 +0000 Date: Wed, 7 Oct 2015 13:54:30 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Tom Lane Cc: Chris Pacejo , "pgsql-bugs@postgresql.org" Message-ID: <1788034186.151912.1444226070374.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <22977.1444225029@sss.pgh.pa.us> References: <22977.1444225029@sss.pgh.pa.us> Subject: Re: BUG #13660: serializable snapshotting hangs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 1813 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Wednesday, October 7, 2015 8:37 AM, Tom Lane wrote: > Kevin Grittner writes: >> Incorrect. Like vacuum and other visibility-related operations, >> long-running transactions in other databases in the same "cluster" >> (in the sense of a group of backends running under a single >> postmaster) will be an issue. I seem to recall that it was >> non-trivial to limit things in general to a single database, but >> perhaps the DEFERRABLE feature could be enhanced to do that without >> too much pain. > > How will that work in the case of serialized access to a shared catalog? The Serializable Snapshot Isolation techniques only work on top of MVCC snapshot isolation. At the time of the SSI patch, catalogs were not accessed according to those rules, so we excluded them from SSI handling -- it just could not have worked in a meaningful way. (So catalog access is currently identical under REPEATABLE READ and SERIALIZABLE transaction isolation levels.) I am not clear on whether MVCC snapshot access changes to the catalogs since then have made it possible to extend SSI into the catalogs, or what the pros and cons of that would be. So, until such time as as SSI is changed to cover catalogs, it would be safe to ignore that issue in implementing what the OP wants -- nothing would break. The question is whether providing this feature would paint us into a corner in terms of the possibility of later extending SSI to cover shared catalogs. It's worth taking a close look at that; but for right now this is basically a few spots below the top of my TODO list, and I don't have time available right now to do the analysis that requires. Thanks for pointing it out, though. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs