Re: Patch to add hook to copydir()

Поиск
Список
Период
Сортировка
От Swen Kooij
Тема Re: Patch to add hook to copydir()
Дата
Msg-id CACUs8SuDu1pxs63MQ_j_1Ed783782HJJ=3wbL0re9g8nzi9KhQ@mail.gmail.com
обсуждение исходный текст
Ответ на Patch to add hook to copydir()  (Swen Kooij <swenkooij@gmail.com>)
Список pgsql-hackers
I just realized I completely borked the patch file.

My apologies. Attached a (hopefully) correct patch file.

---
Swen Kooij

On Mon, Sep 2, 2019 at 9:54 PM Swen Kooij <swenkooij@gmail.com> wrote:
>
> Hello all,
>
> I've been working on an extension that tightly integrates
> postgres with underlying filesystem . I need to customize
> how postgres copies directories for new databases.
>
> I first looked at the ProcessUtility_hook. This would require
> me to copy or rewrite most of the createdb() function. This is
> less than ideal of course. Someone on the IRC channel
> suggested I could add a hook for copydir().
>
> I implemented the hook similar to how the
> ProcessUtility_hook is implemented. I couldn't find any tests
> for any of the existing hooks. I've been looking at the regression
> tests, but I am not entirely sure how to proceed on that front.
>
> I tested my patch extensively against master and
> the REL_12_STABLE branch. All tests pass and the patch has
> been working great with my extension.
>
> I attached a first draft of the patch against master.
>
> ---
> Swen Kooij

Вложения

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

Предыдущее
От: Swen Kooij
Дата:
Сообщение: Patch to add hook to copydir()
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Patch to add hook to copydir()