Re: PATCH: Spinlock Documentation

Поиск
Список
Период
Сортировка
От Artem Luzyanin
Тема Re: PATCH: Spinlock Documentation
Дата
Msg-id 322278307.873971.1428768225217.JavaMail.yahoo@mail.yahoo.com
обсуждение исходный текст
Ответ на Re: PATCH: Spinlock Documentation  (Artem Luzyanin <lisyonok85@yahoo.ca>)
Ответы Re: PATCH: Spinlock Documentation  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hello,

Thank you again for your feedback. I have improved the patch with your suggestions. Please let me know what you think and if I can do anything else.

Current CommitFest link for this patch is: https://commitfest.postgresql.org/5/208/

Respectfully,

Artem Luzyanin



On Sunday, April 5, 2015 5:59 PM, Artem Luzyanin <lisyonok85@yahoo.ca> wrote:


Hello,

Thank you very much for your feedback! I will work on the changes as soon as I can. 

Respectfully,

Artem Luzyanin



On Sunday, April 5, 2015 5:45 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:


David Fetter <david@fetter.org> writes:

> One issue with this patch is that it is not localized.  If someone
> goes and changes the S_LOCK implementation for one of the platforms
> below, or adds a new platform, etc., without changing this comment
> too, this comment becomes confusingly obsolete.


Indeed.  Moreover, this header comment is supposed to be an overview and
specification of the macros that need to be provided.  I think it's an
actively bad idea to clutter it with platform-by-platform details; that
will create a "can't see the forest for the trees" problem.

If we need more info here, I think a comment block before each section
of the file would make more sense.  But the patch as provided seems
like it would just be redundant if it were refactored in that form.

What would possibly be useful that's not there now is a paragraph or
two describing the overall layout of the file (eg "gcc then non gcc",
or whatever can be said at more or less that level of detail).  But
please don't stick that into the middle of the specification part.

            regards, tom lane





Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: improving speed of make check-world
Следующее
От: Andrew Dunstan
Дата:
Сообщение: FDW oddity