Re: [PATCH] Fix memory corruption in pg_shdepend.c

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Fix memory corruption in pg_shdepend.c
Дата
Msg-id YW/1mK7+Q3HAZFqL@paquier.xyz
обсуждение исходный текст
Ответ на [PATCH] Fix memory corruption in pg_shdepend.c  (Aleksander Alekseev <aleksander@timescale.com>)
Ответы Re: [PATCH] Fix memory corruption in pg_shdepend.c  (Daniel Gustafsson <daniel@yesql.se>)
Re: [PATCH] Fix memory corruption in pg_shdepend.c  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On Wed, Oct 20, 2021 at 01:01:31PM +0300, Aleksander Alekseev wrote:
> I checked the rest of the PostgreSQL code and apparently, it should
> have been tts_values[Anum_pg_shdepend_FOO - 1].
>
> The patch is attached. The problem was first reported offlist by Sven
> Klemm. Investigated and fixed by me.

Yes, that's indeed a one-off bug when copying shared dependencies of a
template database to the new one.  This is new as of e3931d0, so I'll
take care of that and double-check the area while on.
--
Michael

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: pgsql: Document XLOG_INCLUDE_XID a little better
Следующее
От: Andrey Borodin
Дата:
Сообщение: Re: lastOverflowedXid does not handle transaction ID wraparound