pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable.
Date: Mon, 20 Jul 2020 18:56:05 +0000
Message-ID: <E1jxaxJ-0002hw-Kb@gemulon.postgresql.org> (raw)

Correctly mark pg_subscription_rel.srsublsn as nullable.

The code has always set this column to NULL when it's not valid,
but the catalog header's description failed to reflect that,
as did the SGML docs, as did some of the code.  To prevent future
coding errors of the same ilk, let's hide the field from C code
as though it were variable-length (which, in a sense, it is).

As with commit 72eab84a5, we can only fix this cleanly in HEAD
and v13; the problem extends further back but we'll need some
klugery in the released branches.

Discussion: https://postgr.es/m/367660.1595202498@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e5372b48b94f17dcce5d8f3b26d55b0f182e4306

Modified Files
--------------
doc/src/sgml/catalogs.sgml                |  4 +++-
src/backend/catalog/pg_subscription.c     | 18 ++++++++++++++++--
src/include/catalog/catversion.h          |  2 +-
src/include/catalog/pg_subscription_rel.h | 14 ++++++++++++--
4 files changed, 32 insertions(+), 6 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1jxaxJ-0002hw-Kb@gemulon.postgresql.org>
Permalink:  ../E1jxaxJ-0002hw-Kb@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jxaxJ-0002hw-Kb@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable.
  In-Reply-To: <E1jxaxJ-0002hw-Kb@gemulon.postgresql.org>
  References: <E1jxaxJ-0002hw-Kb@gemulon.postgresql.org>

* 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