Re: Logging [RESOLVED]

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Logging [RESOLVED]
Дата
Msg-id 20191206220837.GA22263@hjp.at
обсуждение исходный текст
Ответ на Re: Logging [RESOLVED]  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On 2019-12-04 16:03:24 -0800, Rich Shepard wrote:
> On Wed, 4 Dec 2019, Stephen Eilert wrote:
> > Usually, this is done by logrotate or a similar mechanism in your system.
> > You’ll likely find that other logs in your system follow a similar
> > pattern, not just Postgresql.
>
> I just checked /etc/logrotate.d/postgres and it was set at daily with rotate
> 7. I changed rotate to 4 but the dates are 3-4 days apart, not sequential.

Your log files are extremely small. At only a few hundred bytes every 3
or 4 days it is very likely that nothing is logged on most days. If your
log file is empty, logrotate won't rotate it if the option "notifempty"
is set (which is probably the case).

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

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

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: migration from 9.4 to 9.6
Следующее
От: Alexander Farber
Дата:
Сообщение: CREATE INDEX ON words_moves(length(letters), score) WHERE action = 'play'