Clarification required

Started by Dhanaraj Mover 19 years ago5 messages
#1Dhanaraj M
Dhanaraj.M@Sun.COM

I could not understand the following TODO item.
Can anyone explain this.

Monitoring:
=========

Allow server logs to be remotely read and removed using SQL commands

Does it mean that the server log file should be read by the client? What
kind of removal (using SQL)?
Also I like to know where the server log file is stored.

Thanks
Dhanaraj

#2Dave Page
dpage@vale-housing.co.uk
In reply to: Dhanaraj M (#1)
Re: Clarification required

-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Dhanaraj M
Sent: 12 May 2006 12:31
To: pgsql-hackers@postgresql.org
Subject: [HACKERS] Clarification required

I could not understand the following TODO item.
Can anyone explain this.

Monitoring:
=========

Allow server logs to be remotely read and removed using SQL commands

Does it mean that the server log file should be read by the
client? What kind of removal (using SQL)?

This is possible using the functions in the adminpack contrib module
that's currently in the patch queue:
http://candle.pha.pa.us/mhonarc/patches/msg00006.html

Also I like to know where the server log file is stored.

Check your postgresql.conf file.

Regards, Dave.

#3Jim C. Nasby
jnasby@pervasive.com
In reply to: Dhanaraj M (#1)
Re: Clarification required

On Fri, May 12, 2006 at 05:00:51PM +0530, Dhanaraj M wrote:

I could not understand the following TODO item.
Can anyone explain this.

Monitoring:
=========

Allow server logs to be remotely read and removed using SQL commands

Does it mean that the server log file should be read by the client? What
kind of removal (using SQL)?

The log would be read by the server (backend process) and passed to the
client, presumably via some function ie: SELECT pg_readlog();

Also I like to know where the server log file is stored.

It's configurable.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

#4Dhanaraj M
Dhanaraj.M@Sun.COM
In reply to: Dave Page (#2)
Re: Clarification required

The server log file means the files that are in pg_xlog. or some
more/some other files?

The log files in pg_xlog dir are not human readable. How is it useful on
the client side?

Dave Page wrote:

Show quoted text

could not understand the following TODO item.
Can anyone explain this.

Monitoring:
=========

Allow server logs to be remotely read and removed using SQL commands

Does it mean that the server log file should be read by the
client? What kind of removal (using SQL)?

This is possible using the functions in the adminpack contrib module
that's currently in the patch queue:
http://candle.pha.pa.us/mhonarc/patches/msg00006.html

Also I like to know where the server log file is stored.

Check your postgresql.conf file.

Regards, Dave.

#5Dave Page
dpage@vale-housing.co.uk
In reply to: Dhanaraj M (#4)
Re: Clarification required

-----Original Message-----
From: Dhanaraj.M@Sun.COM [mailto:Dhanaraj.M@Sun.COM]
Sent: 18 May 2006 10:30
To: Dave Page
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Clarification required

The server log file means the files that are in pg_xlog. or
some more/some other files?

The log files in pg_xlog dir are not human readable. How is
it useful on the client side?

Not the transaction logs, the postmaster logs. Check the log_directory
parameter if redirect_stderr is turned on, or the startup parameters for
the server which can also specify the log location.

Regards, Dave.