Search Postgresql Archives

Re: 500KB PDF saving into large object , what is the table size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2011-05-18, Emi Lu <emilu@xxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> A question about large object column type in postgresql8.3.
>
> A pdf file=500KB.

8.3 has bytea and largeobject.

Largeoibject isn't stored to the table, only a smaller OID is (looks
like an integer). largeobject has a stream interface, but not a value
interface.

bytea is is stored to the table (values os the size being discussed are 
actually stored to the TOAST* table).

> If saving into large object column, will the table size be around 500KB? 
> If larger than 500KB, what could be the proximate size?

LZ* compression will be tried, this may result in a slight size
reduction, in the worst case it mon't take up much much more than the
original size.

*TOAST is a mechanism where oversize database records have the widest
values split off and stored separately, this process is transparent to
the user.

*I think LZ77, may be some other number

-- 
ââ 100% natural


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux