Re: Patch for - Allow server logs to be remotely read

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Patch for - Allow server logs to be remotely read
Дата
Msg-id 200606081344.k58DiCk14124@candle.pha.pa.us
обсуждение исходный текст
Ответ на Patch for - Allow server logs to be remotely read  (Dhanaraj M <Dhanaraj.M@Sun.COM>)
Ответы Re: Patch for - Allow server logs to be remotely read  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Patch for - Allow server logs to be remotely read  (Dhanaraj M <Dhanaraj.M@Sun.COM>)
Список pgsql-patches
Uh, I just added /contrib/adminpack a few weeks ago to CVS, which does
this, and more.  Sorry I forgot to mark the TODO item as completed.

---------------------------------------------------------------------------

Dhanaraj M wrote:
> The patch is attached for the following TODO item:
>
> *Allow server logs to be remotely read.
>
>
> Steps:
>
> 1. When the server starts (**pg_ctl start)**, the path of the postmaster file is stored
> 2. The user can access the logfile using the following 2 functions:
>    * pg_file_readlog(int linenumber) -  Retrieves the string for the given line number
>    * **pg_file_countlog() -  Retrieves the number of lines existing in the logfile*
>
>
>
> I have implemented this based on the suggestions given in the hackers mailing list.
> If you know a better way, please share it with me. Waiting for your reply.
>
>
> Thanks
> Dhanaraj
>


>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

--
  Bruce Momjian   http://candle.pha.pa.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [HACKERS] drop if exists remainder
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: update link / fix spelling error