Re: UUID's as primary keys - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: UUID's as primary keys
Date
Msg-id 20060628105310.GC32530@svana.org
Whole thread Raw
In response to Re: UUID's as primary keys  (Thomas Hallgren <thomas@tada.se>)
Responses Re: UUID's as primary keys
Re: UUID's as primary keys
List pgsql-general
On Wed, Jun 28, 2006 at 12:03:40PM +0200, Thomas Hallgren wrote:
> OK. I thought you always had a type descriptor handy when reading the
> binary representation. I've noticed that the typmod is expected in some
> receive functions (bpcharrecv and numeric_recv for instance). Are you
> saying that there are times when you don't use that?

The input functions get it, the output functions (bpcharout,
bpcharsend, etc) don't. Which makes it kind of hard to print a raw
value if you don't know how long it's going to be. They used to, but
that was removed some time back. It's a security issue IIRC, since any
user could call raw_out(field, 2048) and get whatever was in the 2K of
data after that field.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Question concerning arrays
Next
From: zhicheng wang
Date:
Subject: invalid primary checkpoint record