Re: [HACKERS] On Complex Source Code Reading Strategy

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [HACKERS] On Complex Source Code Reading Strategy
Дата
Msg-id CAMsr+YGHZDkOn5FpF6nQ7gwCAPLCXSUYZRJpFs7TKCndD3n2-w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] On Complex Source Code Reading Strategy  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] On Complex Source Code Reading Strategy  (Zeray Kalayu <tiggreen87@gmail.com>)
Список pgsql-hackers
On 28 July 2017 at 07:45, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Peter Geoghegan <pg@bowt.ie> writes:
> 2. Start somewhere. I have no idea where that should be, but it has to
> be some particular place that seems interesting to you.

Don't forget to start with the available documentation, ie
https://www.postgresql.org/docs/devel/static/internals.html
You should certainly read
https://www.postgresql.org/docs/devel/static/overview.html
and depending on what your interests are, there are probably other
chapters of Part VII that are worth your time.

Also keep an eye out for README files in the part of the source
tree you're browsing in.

In fact, even though you won't initially understand much from some of them, reading most of

find src/ -name README\* 

can be quite useful. It's nearly time for me to do that again myself; each time I absorb more.

There are very useful comments at the start of some of the source files too. Unfortunately in some cases the really important explanation will be on some function that you won't know to look for, not the comment at the top of the file, so there's an element of discovery there.

I'd start with the docs as Tom suggested, then 


(some of which need to be added to the "developer information" wiki page I think)

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [HACKERS] Incorrect comment of XLByteToSeg() andXLByteToPrevSeg()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] PL_stashcache, or, what's our minimum Perl version?