Processes and caches in postgresql

Поиск
Список
Период
Сортировка
От Anastasia Lubennikova
Тема Processes and caches in postgresql
Дата
Msg-id 57209D88.6020209@postgrespro.ru
обсуждение исходный текст
Ответы Re: Processes and caches in postgresql  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi, hackers.
There's a couple of questions about processes.

I found EXEC_BACKEND flag, while reading the code.
As I understood, it exists because we have to emulate fork() on WIN32.
And also it allows to debug the same behavior on Linux.
Is it right? Are there any other use cases?

Another question is about "--fork" argument (see code below).
I didn't find it in documentation, so I'm a bit confused.
I wonder if it exists only for internal purposes?

#ifdef EXEC_BACKEND    if (argc > 1 && strncmp(argv[1], "--fork", 6) == 0)        SubPostmasterMain(argc, argv);    /*
doesnot return */
 
#endif

And the last, but not least. Do we have any 
presentations/articles/READMEs/whatever
about caches (src/backend/utils/cache/*) in postgresql?
I found nothing, besides comments in the code.

-- 
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company




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

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: 9.6 and fsync=off
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [COMMITTERS] Re: pgsql: Convert contrib/seg's bool-returning SQL functions to V1 call co