WAIT for LSN does not reject small negative timeouts - Mailing list pgsql-hackers

From Kirill Reshke
Subject WAIT for LSN does not reject small negative timeouts
Date
Msg-id CALdSSPiQaKvF_FhLdZKmMu=a-eoeXgJg49Fb1aVmYqj6ksAFng@mail.gmail.com
Whole thread
Responses Re: WAIT for LSN does not reject small negative timeouts
List pgsql-hackers
repro:

reshke=# wait for lsn '1/01C96E58' with (timeout '-1ms');
ERROR:  timeout cannot be negative
reshke=# wait for lsn '1/01C96E58' with (timeout '-0.4ms');
^CCancel request sent
ERROR:  canceling statement due to user request

I think we need to reject '-0.4ms' in the same way as '-1ms'.

SImple fix attached

-- 
Best regards,
Kirill Reshke

Attachment

pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Allow pg_read_all_stats to read replication origin status
Next
From: Bertrand Drouvot
Date:
Subject: Re: Persist slot invalidations before publishing them