Re: Getting the length of varlength data using PG_DETOAST_DATUM_SLICE

From: Mark Dilger <pgsql(at)markdilger(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: Getting the length of varlength data using PG_DETOAST_DATUM_SLICE
Date: 2006-02-11 07:24:47
Message-ID: 43ED913F.9070906@markdilger.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-02-11 11:53:34 Re: PostgreSQL 8.0.6 crash
Previous Message Jeremy Drake 2006-02-11 07:16:12 Re: Getting the length of varlength data using