Re: [PATCH] expand the units that pg_size_pretty supports on output

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: [PATCH] expand the units that pg_size_pretty supports on output
Дата
Msg-id CAApHDvrYBkQX7Da=1VW7oOA5oek7yF-vk=ciuJvQRfJX88hLsw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] expand the units that pg_size_pretty supports on output  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] expand the units that pg_size_pretty supports on output
Список pgsql-hackers
On Wed, 7 Jul 2021 at 02:54, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Minor nit: use "const char *text" in the struct declaration, so
> that all of the static data can be placed in fixed storage.

Thanks for pointing that out.

> David Rowley <dgrowleyml@gmail.com> writes:
> > (I'm not sure why pgindent removed the space between != and NULL, but
> > it did, so I left it.)
>
> It did that because "text" is a typedef name, so it's a bit confused
> about whether the statement is really a declaration.  Personally I'd
> have used "name" or something like that for that field, anyway.

I should have thought of that. Thanks for highlighting it.  I've
renamed the field.

Updated patch attached.

David

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [PATCH] expand the units that pg_size_pretty supports on output
Следующее
От: Yura Sokolov
Дата:
Сообщение: Re: rand48 replacement