pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Fix comments in gistxlogDelete, xl_heap_freeze_page and xl_btree_delete
Date: Fri, 6 Jan 2023 11:05:07 +0100
Message-ID: <80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com> (raw)

Hi hackers,

Please find attached a patch to $SUBJECT.

The wrong comments have been discovered by Robert in [1].

Submitting this here as a separate thread so it does not get lost in the logical decoding
on standby thread.

[1]: https://www.postgresql.org/message-id/CA%2BTgmoYTTsxP8y6uknZvCBNCRq%2B1FJ4zGbX8Px1TGW459fGsaQ%40mail...

Looking forward to your feedback,

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachments:

v1-0001-fix-some-comments.patch (text/plain, 1.8K) download diff --git a/src/include/access/gistxlog.h b/src/include/access/gistxlog.h index 33f1c7e31b..95068feb87 100644 --- a/src/include/access/gistxlog.h +++ b/src/include/access/gistxlog.h @@ -52,9 +52,7 @@ typedef struct gistxlogDelete TransactionId snapshotConflictHorizon; uint16 ntodelete; /* number of deleted offsets */ - /* - * In payload of blk 0 : todelete OffsetNumbers - */ + /* TODELETE OFFSET NUMBER ARRAY FOLLOWS */ } gistxlogDelete; #define SizeOfGistxlogDelete (offsetof(gistxlogDelete, ntodelete) + sizeof(uint16)) diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index 5c77290eec..1117e95ede 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -345,8 +345,9 @@ typedef struct xl_heap_freeze_page TransactionId snapshotConflictHorizon; uint16 nplans; - /* FREEZE PLANS FOLLOW */ - /* OFFSET NUMBER ARRAY FOLLOWS */ + /* + * In payload of blk 0 : FREEZE PLANS and OFFSET NUMBER ARRAY + */ } xl_heap_freeze_page; #define SizeOfHeapFreezePage (offsetof(xl_heap_freeze_page, nplans) + sizeof(uint16)) diff --git a/src/include/access/nbtxlog.h b/src/include/access/nbtxlog.h index 3b2d959c69..1aa8e7eca5 100644 --- a/src/include/access/nbtxlog.h +++ b/src/include/access/nbtxlog.h @@ -236,9 +236,12 @@ typedef struct xl_btree_delete uint16 ndeleted; uint16 nupdated; - /* DELETED TARGET OFFSET NUMBERS FOLLOW */ - /* UPDATED TARGET OFFSET NUMBERS FOLLOW */ - /* UPDATED TUPLES METADATA (xl_btree_update) ARRAY FOLLOWS */ + /* + * In payload of blk 0 : + * - DELETED TARGET OFFSET NUMBERS + * - UPDATED TARGET OFFSET NUMBERS + * - UPDATED TUPLES METADATA (xl_btree_update) ARRAY + */ } xl_btree_delete; #define SizeOfBtreeDelete (offsetof(xl_btree_delete, nupdated) + sizeof(uint16))

view thread (7+ messages)  latest in thread

Message-ID: <80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com>
Permalink:  ../80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com/
Also on:    postgresql.org/message-id/80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com

 ·  · 

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: bertranddrouvot.pg@gmail.com, robertmhaas@gmail.com
  Subject: Re: Fix comments in gistxlogDelete, xl_heap_freeze_page and xl_btree_delete
  In-Reply-To: <80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com>
  References: <80db7836-4415-d54a-64c3-66b88b1430e7@gmail.com>

* 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