Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arY9A-0000wf-Jn for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 21:52:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arY99-0008HQ-BR for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 21:52:55 +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_2) (envelope-from ) id 1arY98-0008HJ-Mb for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 21:52:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arY93-0006JZ-QA for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 21:52:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3GLqimS023904; Sat, 16 Apr 2016 17:52:44 -0400 From: Tom Lane To: Andres Freund cc: Noah Misch , Kevin Grittner , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < In-reply-to: <20160416205630.puxsglckxi3sn5ec@alap3.anarazel.de> References: <20160412192801.wffn2vjyszyw4qa4@alap3.anarazel.de> <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> <20160413192110.fogwesjti3kxycnu@alap3.anarazel.de> <20160413200148.bawmwjdmggbllhha@alap3.anarazel.de> <20160416204452.GA1910190@tornado.leadboat.com> <20160416205630.puxsglckxi3sn5ec@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 16 Apr 2016 13:56:30 -0700" Date: Sat, 16 Apr 2016 17:52:44 -0400 Message-ID: <23903.1460843564@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > On 2016-04-16 16:44:52 -0400, Noah Misch wrote: >> That is more controversial than the potential ~2% regression for >> old_snapshot_threshold=-1. Alvaro[2] and Robert[3] are okay releasing >> that way, and Andres[4] is not. > FWIW, I could be kinda convinced that it's temporarily ok, if there'd be > a clear proposal on the table how to solve the scalability issue around > MaintainOldSnapshotTimeMapping(). Postponing the optimization around > something as trivial as a spinlock around reading an LSN is one thing, > postponing something we don't know the solution to is anohter. The message Noah cited mentions only a 4% regression, but this one seems far worse: http://www.postgresql.org/message-id/20160413200148.bawmwjdmggbllhha@alap3.anarazel.de That's more than a 5X penalty, which seems like it would make the feature unusable; unless there is an argument that that's an extreme case that wouldn't be representative of most real-world usage. Which there may well be; I've not been following this thread carefully. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers