Re: Emit namespace in post-copy output

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Emit namespace in post-copy output
Дата
Msg-id D04B103E-0A4A-4F17-AF96-A44B454F28F0@yesql.se
обсуждение исходный текст
Ответ на Re: Fwd: Emit namespace in post-copy output  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Emit namespace in post-copy output
Re: Emit namespace in post-copy output
Список pgsql-hackers
I took a look at this I agree with the reviewer that it's a good change.  The
output from multiple jobs in vacuumdb is clearly easier to parse with this
since the initial LOG and later DETAIL can be interleaved with other relations
of the same name in other namespaces.

+    get_namespace_name(RelationGetNamespace(OldHeap)),

Since get_namespace_name() returns a palloced string, this will lead to a 2x
leak of the namespace length as opposed to the 1x of today.  While hardly a big
deal, it seems prudent to cap this by storing the returned string locally now
that we need it twice.

I've updated the patch with this, see the attached v2.  Barring objections I
will go ahead with this.

--
Daniel Gustafsson        https://vmware.com/


Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: when the startup process doesn't (logging startup delays)
Следующее
От: John W Higgins
Дата:
Сообщение: Re: Have I found an interval arithmetic bug?