Re: Add error-checking to timestamp_recv - Mailing list pgsql-patches

From Tom Lane
Subject Re: Add error-checking to timestamp_recv
Date
Msg-id 792.1085063538@sss.pgh.pa.us
Whole thread Raw
In response to Re: Add error-checking to timestamp_recv  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Add error-checking to timestamp_recv
List pgsql-patches
Stephen Frost <sfrost@snowman.net> writes:
> * Bruce Momjian (pgman@candle.pha.pa.us) wrote:
>> Would you show an example of the invalid value this is trying to avoid?

> Well, the way I discovered the problem was by sending a timestamp in
> double format when the server was expecting one in int64 format.

Most of the time, though, this sort of error would still yield a valid
value that just failed to represent the timestamp value you wanted.
I'm unsure that a range check is going to help much.

            regards, tom lane

pgsql-patches by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Add error-checking to timestamp_recv
Next
From: Stephen Frost
Date:
Subject: Re: Add error-checking to timestamp_recv