| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> | 
|---|---|
| To: | Thomas Hallgren <thomas(at)tada(dot)se> | 
| Cc: | Psql_General <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: UUID's as primary keys | 
| Date: | 2006-06-28 10:53:10 | 
| Message-ID: | 20060628105310.GC32530@svana.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general pgsql-hackers | 
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(at)svana(dot)org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | zhicheng wang | 2006-06-28 11:06:23 | invalid primary checkpoint record | 
| Previous Message | Karsten Hilbert | 2006-06-28 10:28:34 | Re: Question concerning arrays | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Hallgren | 2006-06-28 11:56:47 | Re: UUID's as primary keys | 
| Previous Message | Teodor Sigaev | 2006-06-28 10:16:00 | Re: GIN index creation extremely slow ? |