pgsql: Fix race condition when sharing tuple descriptors.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Fix race condition when sharing tuple descriptors.
Дата
Msg-id E1lmpyo-0008LU-MU@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix race condition when sharing tuple descriptors.

Parallel query processes that called BlessTupleDesc() for identical
tuple descriptors at the same moment could crash.  There was code to
handle that rare case, but it dereferenced a bogus DSA pointer.  Repair.

Back-patch to 11, where commit cc5f8136 added support for sharing tuple
descriptors in parallel queries.

Reported-by: Eric Thinnes <e.thinnes@gmx.de>
Discussion: https://postgr.es/m/99aaa2eb-e194-bf07-c29a-1a76b4f2bcf9%40gmx.de

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/utils/cache/typcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Fix race condition when sharing tuple descriptors.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: improve libpq service-file docs, avoid overspecifying pathn