Re: WAL log performance/efficiency question

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: WAL log performance/efficiency question
Дата
Msg-id 464C6544.9070104@enterprisedb.com
обсуждение исходный текст
Ответ на WAL log performance/efficiency question  (Keaton Adams <kadams@mxlogic.com>)
Ответы Re: WAL log performance/efficiency question  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: WAL log performance/efficiency question  (Keaton Adams <kadams@mxlogic.com>)
Список pgsql-performance
Keaton Adams wrote:
> Using an 8K data page:
>
> 8K data page (8192 bytes)
> Less page header and row overhead leaves ~8000 bytes
> At 100 bytes per row = ~80 rows/page
> Rows loaded: 250,000 / 80 = 3125 data pages * 8192 = 25,600,000 bytes /
> 1048576 = ~ 24.4 MB of data page space.

That's not accurate. There's 32 bytes of overhead per row, and that
gives you just 61 tuples per page. Anyhow, I'd suggest measuring the
real table size with pg_relpages function (from contrib/pgstattuple) or
from pg_class.relpages column (after ANALYZE).

> We are running on PostgreSQL 8.1.4 and are planning to move to 8.3 when
> it becomes available.  Are there space utilization/performance
> improvements in WAL logging in the upcoming release?

One big change in 8.3 is that COPY on a table that's been created or
truncated in the same transaction doesn't need to write WAL at all, if
WAL archiving isn't enabled.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Keaton Adams
Дата:
Сообщение: WAL log performance/efficiency question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WAL log performance/efficiency question