Re: best way to apply and work on the patches of the pg community

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: best way to apply and work on the patches of the pg community
Дата
Msg-id CAKFQuwayR4V2YCtCx=aqoca_gV2ysoAoa0Vj87StPU7QQO8ktw@mail.gmail.com
обсуждение исходный текст
Ответ на best way to apply and work on the patches of the pg community  (mahendrakar s <mahendrakarforpg@gmail.com>)
Список pgsql-novice
On Fri, Jul 15, 2022 at 8:33 AM mahendrakar s <mahendrakarforpg@gmail.com> wrote:
Hi Pg team,

I would like to work on a patch published on hackers community( patch is from June, 2021). I cloned postgres code and tried to  apply the patch and got errors.

patch -p1 < ../0001-auth-generalize-SASL-mechanisms.patch
patching file src/backend/libpq/auth-scram.c
Hunk #1 FAILED at 101.
Hunk #2 FAILED at 170.
Hunk #3 FAILED at 199.
Hunk #4 FAILED at 215.
Hunk #5 FAILED at 325.

Can you please let me know what is the recommended way to apply the patches for me to begin the work?


I'm still in a bit of trial-and-error mode myself but I try to use `git apply` first, possibly after making sure that the files are newline only line endings.

David J.

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

Предыдущее
От: mahendrakar s
Дата:
Сообщение: best way to apply and work on the patches of the pg community
Следующее
От: Tom Lane
Дата:
Сообщение: Re: best way to apply and work on the patches of the pg community