RE: Reject negative max_retention_duration values - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Reject negative max_retention_duration values
Date
Msg-id OS9PR01MB12149AE30A835D39EEDCEA6FAF51A2@OS9PR01MB12149.jpnprd01.prod.outlook.com
Whole thread
In response to Re: Reject negative max_retention_duration values  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Reject negative max_retention_duration values
List 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




pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: [PATCH] Fix minRecoveryPoint not advanced past checkpoint in CreateRestartPoint
Next
From: Michael Paquier
Date:
Subject: Re: Reject negative max_retention_duration values