Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVgiC-0005ny-Q5 for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 15:07:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVgiC-0008Dm-9h for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 15: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.84_2) (envelope-from ) id 1bVggo-00064C-T5 for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 15:05:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVggm-0004XS-JE for pgsql-hackers@postgresql.org; Fri, 05 Aug 2016 15:05:33 +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 u75F5VTF005832; Fri, 5 Aug 2016 11:05:31 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Prevent "snapshot too old" from trying to return pruned TOAST tu In-reply-to: References: <26768.1470353006@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 04 Aug 2016 23:59:06 -0400" Date: Fri, 05 Aug 2016 11:05:31 -0400 Message-ID: <5831.1470409531@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) 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 Robert Haas writes: > On Thu, Aug 4, 2016 at 10:58 PM, Robert Haas wrote: >> What is the reason? We refuse to separate frontend and backend >> headers in any sort of principled way? > That was poorly phrased. I'll try again: I can't see any reason for > using a macro here except that it allows frontend code to compile this > without breaking. Well, the alternative would be to put "#ifndef FRONTEND" around the static-inline function. That's not very pretty either, and it's inconsistent with the existing precedent (ie, InitDirtySnapshot). Also, it presumes that a non-backend includer actually has defined FRONTEND; that seems to be the case for pg_xlogdump but I do not think we do that everywhere. > Here's a patch. Is this what you want? OK by me. 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