pgsql: pg_upgrade: Upgrade an Assert to a real 'if' test

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: Upgrade an Assert to a real 'if' test
Date: 2022-03-23 18:26:15
Message-ID: E1nX5gV-0013d0-0x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_upgrade: Upgrade an Assert to a real 'if' test

It seems possible for the condition being tested to be true in
production, and nobody would never know (except when some data
eventually becomes corrupt?).

Author: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Discussion: https://postgr.es/m//202109040001(dot)zky3wgv2qeqg(at)alvherre(dot)pgsql

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/bin/pg_rewind/parsexlog.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2022-03-23 18:28:47 Re: pgsql: pg_upgrade: Upgrade an Assert to a real 'if' test
Previous Message Robert Haas 2022-03-23 17:27:04 pgsql: pg_basebackup: Try to fix some failures on Windows.