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