rotate sql.log

Started by Martín Marquésalmost 25 years ago2 messagesgeneral
Jump to latest
#1Martín Marqués
martin@bugs.unl.edu.ar

I have a log rotator (script in ksh) and want to rotate postgres log file.
How does Postgres log? Through syslog? Or independently?

Saludos... :-)

--
Cualquier administra un NT.
Ese es el problema, que cualquier administre.
-----------------------------------------------------------------
Martin Marques | mmarques@unl.edu.ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

#2Laurent Duperval
lduperval@microcelli5.com
In reply to: Martín Marqués (#1)
Re: rotate sql.log

On 17 May, Mart�n Marqu�s wrote:

I have a log rotator (script in ksh) and want to rotate postgres log file.
How does Postgres log? Through syslog? Or independently?

Saludos... :-)

Depends on how you built it and how it's configured at run time. If it was
built with syslog facilities *and* you started it with the syslog option,
it'll log to syslog. If in your invocation of pg_ctl you said to log into a
file, it'll logg into that file. Otherwise, it logs to stdout (stderr?).

L

--
Laurent Duperval <mailto:lduperval@microcelli5.com>

Bref. L'affreuse d�ception pour mes auditeurs. Les malheureux. Sevr�s du
suc de ma pens�e. Soyons brave.
-Achille Talon