Arrays and Performance

Поиск
Список
Период
Сортировка
От s_philip@ira.uka.de
Тема Arrays and Performance
Дата
Msg-id 20060106094353.ey5qsnzzwg8w4440@studmail.ira.uni-karlsruhe.de
обсуждение исходный текст
Ответы Re: Arrays and Performance  (Joe Conway <mail@joeconway.com>)
Re: Arrays and Performance  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
A few performance issues using PostgreSQL's arrays led us to the
question how postgres actually stores variable length arrays. First,
let me explain our situation.

We have a rather large table containing a simple integer primary key
and a couple more columns of fixed size. However, there is a dates
column of type "timestamp without time zone[]" that is apparently
causing some severe performance problems.

During a daily update process new timestamps are collected and
existing data rows are being updated (new rows are also being added).
These changes affect a large percentage of the existing rows.

What we have been observing in the last few weeks is, that the
overall database size is increasing rapidly due to this table and
vacuum processes seem to deadlock with other processes querying data
from this table.

Therefore, the the database keeps growing and becomes more and more
unusable. The only thing that helps is dumping and restoring it which
is nothing you are eager to do on a large live system and a daily basis.

This problem led us to the question, how these arrays are stored
internally. Are they stored "in-place" with the other columns or
merely as a pointer to another file?

Would it be more efficient to not use an array for this purpose but
split the table in two parts?

Any help is appreciated!


Marc Philipp

----------------------------------------------------------------
This message was sent using ATIS-Webmail: http://www.atis.uka.de

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

Предыдущее
От: Angshu Kar
Дата:
Сообщение: Re: Data loading from a flat file...
Следующее
От: Bjørn T Johansen
Дата:
Сообщение: Re: Hardware recommendation for PostgreSQL on Windows?