Re: error context for vacuum to include block number

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error context for vacuum to include block number
Дата
Msg-id 15823.1582222226@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: error context for vacuum to include block number  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Another point is that this patch seems to be leaking memory each time
> you set relation/index/namespace name, since you never free those and
> they are changed over and over.

One other point is that this code seems to be trying to ensure that
the error context callback itself won't need to touch the catalog cache or
relcache, which is an important safety feature ... but it's failing at
that goal, because RelationGetRelationName() is going to hand back a
pointer to a string in the relcache.  You need another pstrdup for that.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Removing obsolete configure checks
Следующее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: Bug in pg_restore with EventTrigger in parallel mode