Re: timestams in the the pg_standby output

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Re: timestams in the the pg_standby output
Дата
Msg-id 855e4dcf1001042322w3cbca5fbnfead54b0ac0f480f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: timestams in the the pg_standby output  (Greg Smith <greg@2ndquadrant.com>)
Ответы Re: timestams in the the pg_standby output  (Greg Smith <greg@2ndquadrant.com>)
Список pgsql-general
>     printf "%s %s\n", strftime("%Y-%m-%d %H:%M:%S", localtime(time)), $item
>
> (untested, and I am not a regular Perl programmer, its but File::Tail is the
> best library I know of to do this sort of thing)
>


Ah if I am going to do that I suppose something like this would work.

#!/bin/sh
while read data; do
    echo "`date +%H:%M:%S` : $data" >> logfile.log
done

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: timestams in the the pg_standby output
Следующее
От: Yan Cheng Cheok
Дата:
Сообщение: Re: PostgreSQL Write Performance