Re: Getting the length of varlength data using PG_DETOAST_DATUM_SLICE - Mailing list pgsql-hackers

From Mark Dilger
Subject Re: Getting the length of varlength data using PG_DETOAST_DATUM_SLICE
Date
Msg-id 43ED913F.9070906@markdilger.com
Whole thread Raw
In response to Re: Getting the length of varlength data using PG_DETOAST_DATUM_SLICE  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> Have you looked at the 8.1.X buildin function pg_column_size()?

Thanks Bruce for the lead.  I didn't know what to grep for; this helps.

The header comment for that function says
"Return the size of a datum, possibly compressed"

I take it the uncompressed length is not available -- that this is as close as 
I'm going to get.  I haven't traced through the function yet; maybe it does what 
I need.  I'll look at this some more now that I have a starting point.

Thanks again!

mark


pgsql-hackers by date:

Previous
From: Jeremy Drake
Date:
Subject: Re: Getting the length of varlength data using
Next
From: "Jim C. Nasby"
Date:
Subject: Re: PostgreSQL 8.0.6 crash