From: | Dhanaraj M <Dhanaraj(dot)M(at)Sun(dot)COM> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | Patch for - Allow server logs to be remotely read |
Date: | 2006-06-08 13:24:08 |
Message-ID: | 448824F8.50706@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
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
Attachment | Content-Type | Size |
---|---|---|
logfile_read.patch | text/x-patch | 5.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2006-06-08 13:43:19 | Re: [HACKERS] drop if exists remainder |
Previous Message | Qingqing Zhou | 2006-06-08 03:14:15 | Re: remove lock protection on HeapTupleSatisfiesVacuum |