Re: bytea or blobs? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: bytea or blobs?
Date
Msg-id 200402181608.22966.dev@archonet.com
Whole thread Raw
In response to Re: bytea or blobs?  (Dana Hudes <dhudes@tcp-ip.info>)
List pgsql-sql
On Wednesday 18 February 2004 15:17, Dana Hudes wrote:
> How can one measure the result of the compression -- can I see this in
> some table or with some pgsql command?

Hmm - not so far as I know.

> At what threshold does it take place, I think its 8192?
> The nasty bit is not one picture of 100kb.
> Its 20 pictures of 5kb.

I'd have thought 5KB would trigger it - 8192 is the limit for a row (which 
TOASTing is designed to remove). There are/were some technical notes on TOAST 
when it was being built/introduced - googling might well find them.

What I'd suggest is grab some suitably representative images, base64 encode 
them and see how much it takes to store 100,000 copies of them.
--  Richard Huxton Archonet Ltd


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: CHAR(n) always trims trailing spaces in 7.4
Next
From: "Jeremy Smith"
Date:
Subject: Re: CHAR(n) always trims trailing spaces in 7.4