From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Greg Stark <gsstark(at)mit(dot)edu>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: R: R: space taken by a row & compressed data |
Date: | 2004-08-27 17:28:58 |
Message-ID: | 412F6F5A.9080004@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joe Conway wrote:
> Greg Stark wrote:
>
>> How do you check to see how many records, or ideally which records,
>> are being
>> toasted and/or stored externally?
>>
> I don't know of a builtin way to do that from SQL, but the attached
> seems to work for me.
>
FWIW, this version has a bit more robust type checking. The last one
would crash if passed a non-varlena column.
regression=# \d foo
Table "public.foo"
Column | Type | Modifiers
--------+---------+-----------
f1 | integer |
f2 | text |
regression=# select checktoast(f1), checktoast(f2) from foo;
checktoast | checktoast
---------------------+---------------------
inline,uncompressed | inline,uncompressed
inline,uncompressed | inline,compressed
(2 rows)
Joe
Attachment | Content-Type | Size |
---|---|---|
checktoast.2.tar.gz | application/x-gzip | 6.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Duane Lee - EGOVX | 2004-08-27 17:44:51 | Re: performance of IN (subquery) |
Previous Message | Markus Bertheau | 2004-08-27 17:26:38 | Re: performance of IN (subquery) |