Re: The logfile stop upgrade after a vim write

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: The logfile stop upgrade after a vim write
Дата
Msg-id 1020808879.1647740.1683196668023@office.mailbox.org
обсуждение исходный текст
Ответ на The logfile stop upgrade after a vim write  (lz ma <ma100@hotmail.com>)
Список pgsql-general
> On 04/05/2023 11:54 CEST lz ma <ma100@hotmail.com> wrote:
>
> 1. pg_ctl -D data -l MyLog
> 2. vim MyLog : add some words, save and exit
> 3. after vim operation, MyLog will never upgrade except restart server
> I know it caused by file descripter only open once at the start by postgres,
> and vim operation rename the file to MyLog~, so postgres can't upgrade

set backupcopy=yes in .vimrc

But why would you edit active log files?

--
Erik



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

Предыдущее
От: lz ma
Дата:
Сообщение: The logfile stop upgrade after a vim write
Следующее
От: DAVID ROTH
Дата:
Сообщение: Trigger questions