pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable.
@ 2020-07-20 18:56  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-07-20 18:56 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable.
@ 2020-07-20 18:56  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-07-20 18:56 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0fa0b487b5d75d2b8576dec86a317212542642b8

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-07-20 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 18:56 pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable. Tom Lane <tgl@sss.pgh.pa.us>
2020-07-20 18:56 pgsql: Correctly mark pg_subscription_rel.srsublsn as nullable. Tom Lane <tgl@sss.pgh.pa.us>

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