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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Fix memory corruption in pg_shdepend.c
Дата
Msg-id YXZh6EwFNOyrA0s3@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] Fix memory corruption in pg_shdepend.c  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: [PATCH] Fix memory corruption in pg_shdepend.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, Oct 21, 2021 at 11:42:31AM +0900, Michael Paquier wrote:
> It is easy enough to get an error on the new database with
> pg_describe_object().  Your part about adding a shared dependency with
> a table on a given role is simple enough, as well.  While looking for
> a place where to put such a test, 020_createdb.pl felt like a natural
> place and we don't have any coverage for the case of TEMPLATE with
> createdb.  So I would like to suggest something like the attached for
> HEAD.

I was thinking on this one over the last couple of days, and doing a
copy of shared deps from a template within createdb still feels
natural, as of this patch:
https://www.postgresql.org/message-id/YXDTl+PfSnqmbbkE@paquier.xyz

Would somebody object to the addition of this test?  Or perhaps
somebody has a better idea?
--
Michael

Вложения

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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Improve the HINT message of the ALTER command for postgres_fdw
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_receivewal starting position