pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Prevent "snapshot too old" from trying to return pruned TOAST tu
Date: Fri, 05 Aug 2016 11:05:31 -0400
Message-ID: <5831.1470409531@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoanNM+XuW+qxxhgakm19hEGoTFU8cbfi626u8agQkp4ww@mail.gmail.com>
References: <E1bV39W-0008CE-VK@gemulon.postgresql.org>
	<26768.1470353006@sss.pgh.pa.us>
	<CA+TgmobB_gM57=aUfqqbkc4g+K3_pNAX+StJSn0nXZLH9LROjg@mail.gmail.com>
	<CA+TgmoanNM+XuW+qxxhgakm19hEGoTFU8cbfi626u8agQkp4ww@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Aug 4, 2016 at 10:58 PM, Robert Haas <robertmhaas@gmail.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <5831.1470409531@sss.pgh.pa.us>
Permalink:  ../5831.1470409531@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5831.1470409531@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Prevent "snapshot too old" from trying to return pruned TOAST tu
  In-Reply-To: <5831.1470409531@sss.pgh.pa.us>
  References: <E1bV39W-0008CE-VK@gemulon.postgresql.org> <26768.1470353006@sss.pgh.pa.us> <CA+TgmobB_gM57=aUfqqbkc4g+K3_pNAX+StJSn0nXZLH9LROjg@mail.gmail.com> <CA+TgmoanNM+XuW+qxxhgakm19hEGoTFU8cbfi626u8agQkp4ww@mail.gmail.com> <5831.1470409531@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox