Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]

From: Euler Taveira <euler(at)timbira(dot)com(dot)br>
To: Jan Lentfer <Jan(dot)Lentfer(at)web(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org, Dilip kumar <dilip(dot)kumar(at)huawei(dot)com>
Subject: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Date: 2013-11-08 14:06:23
Message-ID: 527CEFDF.4020208@timbira.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08-11-2013 05:07, Jan Lentfer wrote:
> For the case where you have tables of varying size this would lead to
> a reduced overall processing time as it prevents large (read: long
> processing time) tables to be processed in the last step. While
> processing large tables at first and filling up "processing
> slots/jobs" when they get free with smaller tables one after the
> other would safe overall execution time.
>
That is certainly a good strategy (not the optimal [1] -- that is hard
to achieve). Also, the strategy must:

(i) consider the relation age before size (for vacuum);
(ii) consider that you can't pick indexes for the same relation (for
reindex).

[1]
http://www.postgresql.org/message-id/CA+TgmobwxqsagXKtyQ1S8+gMpqxF_MLXv=4350tFZVqAwKEqgQ@mail.gmail.com

--
Euler Taveira Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-11-08 14:12:17 Re: ERROR during end-of-xact/FATAL
Previous Message Robert Haas 2013-11-08 14:04:54 Re: backup.sgml-cmd-v003.patch