pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: a.lepikhov@postgrespro.ru
Cc: hlinnaka@iki.fi
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PATCH] XLogReadRecord returns pointer to currently read page
Date: Mon, 19 Nov 2018 10:27:29 +0900
Message-ID: <20181119012728.GA1578@paquier.xyz> (raw)
In-Reply-To: <20181116062355.GE6613@paquier.xyz>
References: <2553f2b0-0e39-eb0e-d382-6c0ed08ca8ae@postgrespro.ru>
	<20181026.143300.212568635.horiguchi.kyotaro@lab.ntt.co.jp>
	<ea3dca6a-b898-e7a8-dcfa-b3ad227a6349@postgrespro.ru>
	<20181115.181238.258013477.horiguchi.kyotaro@lab.ntt.co.jp>
	<20181116062355.GE6613@paquier.xyz>

On Fri, Nov 16, 2018 at 03:23:55PM +0900, Michael Paquier wrote:
> I was looking at this patch, and shouldn't we worry about compatibility
> with plugins or utilities which look directly at what's in readRecordBuf
> for the record contents?  Let's not forget that the contents of
> XLogReaderState are public.

And a couple of days later, committed.  I did not notice first that the
comments of xlogreader.h mention that a couple of areas are private, and
readRecordBuf is part of that, so objection withdrawn.

There is a comment in xlog.c (on top of ReadRecord) referring to
readRecordBuf which has not been removed as part of 7fcbf6a4 when WAL
reading has been moved to its own facility.  The original comment was
from 0ffe11a.  So I have removed the comment at the same time.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (18+ messages)  latest in thread

Message-ID: <20181119012728.GA1578@paquier.xyz>
Permalink:  ../20181119012728.GA1578@paquier.xyz/
Also on:    postgresql.org/message-id/20181119012728.GA1578@paquier.xyz

 · 

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-hackers@postgresql.org
  Cc: michael@paquier.xyz, horiguchi.kyotaro@lab.ntt.co.jp, a.lepikhov@postgrespro.ru, hlinnaka@iki.fi
  Subject: Re: [PATCH] XLogReadRecord returns pointer to currently read page
  In-Reply-To: <20181119012728.GA1578@paquier.xyz>
  References: <2553f2b0-0e39-eb0e-d382-6c0ed08ca8ae@postgrespro.ru> <20181026.143300.212568635.horiguchi.kyotaro@lab.ntt.co.jp> <ea3dca6a-b898-e7a8-dcfa-b3ad227a6349@postgrespro.ru> <20181115.181238.258013477.horiguchi.kyotaro@lab.ntt.co.jp> <20181116062355.GE6613@paquier.xyz> <20181119012728.GA1578@paquier.xyz>

* 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