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

From Bruce Momjian
Subject Re: Add error-checking to timestamp_recv
Date
Msg-id 200405201656.i4KGuj226447@candle.pha.pa.us
Whole thread Raw
In response to Re: Add error-checking to timestamp_recv  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Add error-checking to timestamp_recv
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I wasn't aware you could throw binary values into the timestamp fields
> > like that.  I thought you needed to use a C string for the value.
>
> This facility was added in 7.4 as part of the wire-protocol overhaul.
> It's nothing directly to do with PREPARE; you could get the same result
> with no prepared statement using PQexecParams.

Ah, no wonder I had not seen that before.  So, I guess the issue is how
much error checking do we want to have for these binary values.  I was a
little disturbed to hear he could insert data he couldn't later view.
How many datatype have this issue?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

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