Correctly mark pg_subscription_rel.srsublsn as nullable.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jul 2020 18:55:56 +0000 (14:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jul 2020 18:55:56 +0000 (14:55 -0400)
commite5372b48b94f17dcce5d8f3b26d55b0f182e4306
tree8fa564f0d7b69efe53f113fea941e7bd2c3e89c9
parent2f1f189cf8806a02987dfa1759257b154162fac2
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
doc/src/sgml/catalogs.sgml
src/backend/catalog/pg_subscription.c
src/include/catalog/catversion.h
src/include/catalog/pg_subscription_rel.h