RE: Reject negative max_retention_duration values

From: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
To: 'Chao Li' <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>
Subject: RE: Reject negative max_retention_duration values
Date: 2026-06-10 05:12:26
Message-ID: OS9PR01MB12149AE30A835D39EEDCEA6FAF51A2@OS9PR01MB12149.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear Chao,

> Yes, this patch rejects negative values at CREATE/ALTER SUBSCRIPTION time,
> so in theory the if (MySubscription->maxretention <= 0) change is not strictly
> necessary. I made that change for a few reasons (from strong do weak):

I personal preference is to use Assert() for detecting cannot-happen case,
but it's not very strong opinion. Let's see how others say.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-06-10 05:19:27 Re: Fix DROP PROPERTY GRAPH "unsupported object class" error
Previous Message Kyotaro Horiguchi 2026-06-10 04:53:35 Re: [PATCH] Fix minRecoveryPoint not advanced past checkpoint in CreateRestartPoint