Re: DSM segment handle generation in background workers

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: DSM segment handle generation in background workers
Дата
Msg-id CAEepm=1oRxe3n3a6bq23-2MQTSWagHTghPbpGJ1YcZEyZ_KWQA@mail.gmail.com
обсуждение исходный текст
Ответ на DSM segment handle generation in background workers  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы Re: DSM segment handle generation in background workers
Re: DSM segment handle generation in background workers
Список pgsql-hackers
On Mon, Oct 8, 2018 at 1:17 AM Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> That's because the bgworker startup path doesn't contain a call to
> srandom(...distinguishing stuff...), unlike BackendRun().  I suppose
> do_start_bgworker() could gain a similar call... or perhaps that call
> should be moved into InitPostmasterChild().  If we put it in there
> right after MyStartTime is assigned a new value, we could use the same
> incantation that PostmasterMain() uses.
>
> I noticed that the comment in PostmasterMain() refers to
> PostmasterRandom(), which is gone.

Maybe something like this?

-- 
Thomas Munro
http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Relax transactional restrictions on ALTER ENUM ... ADD TYPE (redux)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Allowing printf("%m") only where it actually works