| От | Tom Lane |
|---|---|
| Тема | Re: Remove trailing newlines from pg_upgrade's messages |
| Дата | |
| Msg-id | 2567656.1655751428@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Remove trailing newlines from pg_upgrade's messages (Greg Stark <stark@mit.edu>) |
| Список | pgsql-hackers |
Greg Stark <stark@mit.edu> writes:
> On Wed, 15 Jun 2022 at 11:54, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Yeah, that is sort of the inverse problem. I think those are there
>> to ensure that the text appears on a fresh line even if the current
>> line has transient status on it. We could get rid of those perhaps
>> if we teach pg_log_v to remember whether it ended the last output
>> with a newline or not, and then put out a leading newline only if
>> necessary, rather than hard-wiring one into the message texts.
> Is the problem that pg_upgrade doesn't know what the utilities it's
> calling are outputting to the same terminal?
Hmmm ... that's a point I'd not considered, but I think it's not an
issue here. The subprograms generally have their output redirected
to their own log files.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера