Resetting PGPROC atomics in ProcessInit()

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Resetting PGPROC atomics in ProcessInit()
Дата
Msg-id
20181027104138.qmbbelopvy7cw2qv@alap3.anarazel.de
Список
Дерево обсуждения
Resetting PGPROC atomics in ProcessInit() Andres Freund <andres@anarazel.de>
Re: Resetting PGPROC atomics in ProcessInit() Robert Haas <robertmhaas@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Andres Freund <andres@anarazel.de>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Re: Resetting PGPROC atomics in ProcessInit() Amit Kapila <amit.kapila16@gmail.com>
Hi,

I just noticed, while working on a patch adding things to PGPROC, that
the group clearning patches for the proc array and clog reset atomics in
InitProcess().

I'm not a big fan of that, because it means that it's not safe to look
at the atomics of backends that aren't currently in use.  Is there any
reason to not instead initialize them in InitProcGlobal() and just
assert in InitProcess() that they're 0?  If they're not, we'd be in deep
trouble anyway, no?

Greetings,

Andres Freund

В списке pgsql-hackers по дате отправления
От: Heikki Linnakangas
Дата:
Сообщение: Re: Postgres restore issue
От: Peter Eisentraut
Дата:
FAQ