Re: Feature request concerning postmaster log file.

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Feature request concerning postmaster log file.
Дата
Msg-id Pine.GSO.4.64.0711090951240.1537@westnet.com
обсуждение исходный текст
Ответ на Re: Feature request concerning postmaster log file.  (David BOURIAUD <david.bouriaud@ac-rouen.fr>)
Список pgsql-hackers
On Fri, 9 Nov 2007, David BOURIAUD wrote:

> using a text utility like grep is not suitable. I think of this when you 
> get a many hundreds of MB logfile at least, or when you need to track 
> commands made by one peculiar user in real-time.

If your problem is that individual log files are too big to search 
usefully, one option is to set log_rotation_size so that doesn't happen. 
As for real-rime, I do this all the time with some variant on

tail -f <log> | grep <user>

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Feature request concerning postmaster log file.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: New tzdata available