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

Поиск
Список
Период
Сортировка
От Dilip kumar
Тема Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Дата
Msg-id 4205E661176A124FAF891E0A6BA9135266341DD6@szxeml509-mbs.china.huawei.com
обсуждение исходный текст
Ответ на Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 07 July 2014 17:55 Rebert Hass Wrote,

> 
> On Fri, Jul 4, 2014 at 1:15 AM, Dilip kumar <dilip.kumar@huawei.com>
> wrote:
> > In attached patch, I have moved pgpipe, piperead functions to
> > src/port/pipe.c
> 
> If we want to consider proceeding with this approach, you should
> probably separate this into a refactoring patch that doesn't do
> anything but move code around and a feature patch that applies on top
> of it.
> 
> (As to whether this is the right approach, I'm not sure.)

I have done the refactoring of the code.

Two patches are attached 

1. vacuumdb_parallel_refactor.patch  --> Moved pg_dump, parallel code to port/parallel_utils.c  (almost 800 lines are
movedto the common code).
 
2. vacuumdb_parallel_v9 --> Feature changes for vaccumdb parallel (created on top of first patch).

I think by this changes, we are able to address all the concerns we were having related to duplicate code.


Thanks & Regards,
Dilip Kumar


Вложения

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

Предыдущее
От: Tomonari Katsumata
Дата:
Сообщение: proposal: rounding up time value less than its unit.
Следующее
От: Ronan Dunklau
Дата:
Сообщение: Re: IMPORT FOREIGN SCHEMA statement