pgsql: Fix access to just-closed relcache entry.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix access to just-closed relcache entry.
Дата
Msg-id E1fSW4i-00078Q-Mr@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix access to just-closed relcache entry.

It might be impossible for this to cause a problem in non-debug builds,
since there'd be no opportunity for the relcache entry to get recycled
before the fetch.  It blows up nicely with -DRELCACHE_FORCE_RELEASE plus
valgrind, though.

Evidently introduced by careless refactoring in commit f0e44751d.
Back-patch accordingly.

Discussion: https://postgr.es/m/27543.1528758304@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bdc643e5e46f84d55d989980e4ff5f8e2da103c6

Modified Files
--------------
src/backend/commands/tablecmds.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Logical replication
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Suggest logical replication more prominently for upgrading