Re: Database size with large objects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Database size with large objects
Дата
Msg-id 18363.1194271064@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Database size with large objects  (Michael Goldner <mgoldner@agmednet.com>)
Список pgsql-admin
Michael Goldner <mgoldner@agmednet.com> writes:
> On 11/5/07 12:19 AM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>> It might be interesting to look at stats such as
>> select sum(length(data)) from pg_largeobject;
>> to confirm that your 100GB estimate for the data payload is accurate.

> That select returns the following:

> image=# select sum(length(data)) from pg_largeobject;
>      sum
> --------------
>  215040008847
> (1 row)

Hmm, so given that you had 34803136 pages in pg_largeobject, that works
out to just about 75% fill factor.  That is to say, you're only getting
3 2K rows per page and not 4.  If the rows were full-size then 4 would
obviously not fit (there is some overhead...) but the normal expectation
in pg_largeobject is that tuple compression will shave enough space to
make up for the overhead and let you get 4 rows per page.  Are your
large objects mostly pre-compressed data?

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error Migrating From 7.4 to 8.2.5
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Error Migrating From 7.4 to 8.2.5