Re: CheckMyDatabase some error messages in two lines.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: CheckMyDatabase some error messages in two lines.
Дата
Msg-id ZmeKxgZ760tlzvBP@paquier.xyz
обсуждение исходный текст
Ответ на Re: CheckMyDatabase some error messages in two lines.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jun 09, 2024 at 10:12:53PM -0400, Tom Lane wrote:
> No doubt.  People have done it both ways in the past, but I think
> currently there's a weak consensus in favor of using one line for
> such messages even when it runs past 80 columns, mainly because
> that makes it easier to grep the source code for a message text.

I recall the same consensus here.  Greppability matters across the
board.

> But: I don't see too much value in changing this particular instance,
> because the line break is in a place where it would not likely cause
> you to miss finding the line.  You might grep for the first part of
> the string or the second part, but probably not for ", which is not".
> If the line break were in the middle of a phrase, there'd be more
> argument for collapsing it out.

Not sure these ones are worth it, either, so I'd let them be.
--
Michael

Вложения

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

Предыдущее
От: John H
Дата:
Сообщение: Allow logical failover slots to wait on synchronous replication
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Improve the granularity of PQsocketPoll's timeout parameter?