Re: tune postgres for UPDATE

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Re: tune postgres for UPDATE
Дата
Msg-id 2e78013d0812091009n2a965900wa14132ab7771225e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: tune postgres for UPDATE  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general


On Tue, Dec 9, 2008 at 9:13 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:


I'm pretty sure you'd have to vacuum still in between runs or the
extra fill factor space would only get used the first time.  I.e.:

create table fill factor 50%
load data into table
update whole table -- 50% free space gets used.
(should vacuum here but didn't)
update whole table -- boom, new tuples are added onto the end of the table.


Not really with 8.3. Assuming there are no long running transactions covering both the updates, HOT will free up the space used by the old (now DEAD) tuples and the second update will reuse that, at least for for the most common cases.

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB     http://www.enterprisedb.com

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: using virtualization to run turnkey appliances on Windows
Следующее
От: Madison Kelly
Дата:
Сообщение: Re: SELECT DISTINCT ... ORDER BY problem