| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Dhanaraj(dot)M(at)Sun(dot)COM |
| Cc: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: Patch for - Allow server logs to be remotely read |
| Date: | 2006-06-08 13:44:12 |
| Message-ID: | 200606081344.k58DiCk14124@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2006-06-08 13:45:36 | Re: update link / fix spelling error |
| Previous Message | Andrew Dunstan | 2006-06-08 13:43:19 | Re: [HACKERS] drop if exists remainder |