Re: Add error-checking to timestamp_recv

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Add error-checking to timestamp_recv
Date: 2004-05-20 14:32:18
Message-ID: 792.1085063538@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> * Bruce Momjian (pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Stephen Frost 2004-05-20 14:44:04 Re: Add error-checking to timestamp_recv
Previous Message Stephen Frost 2004-05-20 12:42:32 Re: Add error-checking to timestamp_recv