Обсуждение: pgsql: pg_upgrade: Upgrade an Assert to a real 'if' test

Поиск
Список
Период
Сортировка

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

От
Alvaro Herrera
Дата:
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@alvh.no-ip.org>
Discussion: https://postgr.es/m//202109040001.zky3wgv2qeqg@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3e1c942a4e2f06e9b0196180eb8fd1383e6d788e

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


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

От
Alvaro Herrera
Дата:
On 2022-Mar-23, Alvaro Herrera wrote:

> Discussion: https://postgr.es/m//202109040001.zky3wgv2qeqg@alvherre.pgsql

Hmm, apparently the double slash here makes the link invalid.  I had
never realized that that URL-handling thingy was so brittle.  Anyway,
the correct URL of course is
https://postgr.es/m/202109040001.zky3wgv2qeqg@alvherre.pgsql

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/