Re: Patch for - Allow server logs to be remotely read - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Patch for - Allow server logs to be remotely read
Date
Msg-id 200606081344.k58DiCk14124@candle.pha.pa.us
Whole thread Raw
In response to Patch for - Allow server logs to be remotely read  (Dhanaraj M <Dhanaraj.M@Sun.COM>)
Responses 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>)
List 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 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] drop if exists remainder
Next
From: Bruce Momjian
Date:
Subject: Re: update link / fix spelling error