pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rossi, Maria <maria.rossi@us.pgds.com>
To: Shreeyansh Dba <shreeyansh2014@gmail.com>
To: gilberto.castillo@etecsa.cu <gilberto.castillo@etecsa.cu>
Cc: Postgres Maillist <pgsql-admin@postgresql.org>
Subject: Re: Errorlog empty
Date: Thu, 12 Mar 2015 15:29:15 +0000
Message-ID: <33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c> (raw)
In-Reply-To: <CAGDYbUNgbC80GFeHvYUEnm7UjGtVm6t7CY=mrdbRC7U9XUKH9w@mail.gmail.com>
References: <33A4D5087BF0D44DA69C5EEF666BC1D7425134BF@usprmbp01c>
	<41590.192.168.207.54.1426109878.squirrel@webmail.etecsa.cu>
	<CAGDYbUNgbC80GFeHvYUEnm7UjGtVm6t7CY=mrdbRC7U9XUKH9w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

The logging_collector is on, but I don’t know if it was restarted after it was turned on.  I did run a ‘pg_ctl reload’, but still it did not log any msgs.
Does it need an actual restart?  I cannot simply do that because this is production, has to be scheduled.

Thanks.

Maria

From: Shreeyansh Dba [mailto:shreeyansh2014@gmail.com]
Sent: Thursday, March 12, 2015 1:03 AM
To: gilberto.castillo@etecsa.cu
Cc: Rossi, Maria; Postgres Maillist
Subject: Re: [ADMIN] Errorlog empty


On Thu, Mar 12, 2015 at 3:07 AM, Gilberto Castillo <gilberto.castillo@etecsa.cu<mailto:gilberto.castillo@etecsa.cu>> wrote:


> Hi,
> The errorlog is empty.   I turned on 'log_connections', then logged-on to
> the instance.  But still the errorlog is empty.  I would have expected
> connections would  appear at the log.
> Any ideas why?
> I am new to Postgres,  so please excuse my questions.
>
> Maria
My configuration:


log_destination = 'stderr'
logging_collector = on  --necesita restart
log_min_duration_statement = 0
log_line_prefix = '%t [%p]: [%l-1] [%r]: user=%u '
log_checkpoints = on
log_connections = on
log_disconnections = on
log_lock_waits = on
log_temp_files = 0

Saludos,
Gilberto Castillo
La Habana, Cuba

---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu<http://imx3.etecsa.cu;
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org<mailto:pgsql-admin@postgresql.org>)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Hi,
In postgresql.conf file you will find some ERROR REPORTING AND LOGGING parameters.
These parameters are responsible for error log generation:

log_destination = 'stderr'
logging_collector = on
log_directory = 'pg_log'

Under When to log:

log_min_error_statement = error
log_min_duration_statement = 0

Under What to log:
log_line_prefix = '%t [%p]: [%l-1] [%r]: user=%u '
log_checkpoints = on
log_connections = on
log_disconnections = on
log_lock_waits = on
log_temp_files = 0

I think changing these parameters will start the error logs in the pg_log folder of your data directory.


Thanks & Regards,
Ajinkya Bangale
Database Administrator
ajinkya.bangale@shreeyansh.com<mailto:ajinkya.bangale@shreeyansh.com>
Office: +919552687400/8400
www.shreeyansh.com<http://www.shreeyansh.com/;



view thread (15+ messages)  latest in thread

Message-ID: <33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c>
Permalink:  ../33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c/
Also on:    postgresql.org/message-id/33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: maria.rossi@us.pgds.com, shreeyansh2014@gmail.com, gilberto.castillo@etecsa.cu
  Subject: Re: Errorlog empty
  In-Reply-To: <33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c>
  References: <33A4D5087BF0D44DA69C5EEF666BC1D7425134BF@usprmbp01c> <41590.192.168.207.54.1426109878.squirrel@webmail.etecsa.cu> <CAGDYbUNgbC80GFeHvYUEnm7UjGtVm6t7CY=mrdbRC7U9XUKH9w@mail.gmail.com> <33A4D5087BF0D44DA69C5EEF666BC1D7425351AA@usprmbp01c>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox