From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to maintain the csv log files in pg_log directory only for past 30 days
Date: Sat, 29 Sep 2018 07:12:32 -0700
Message-ID: <568940a5-9a25-d119-b69a-3905cdd61b0b@aklaver.com> (raw)
In-Reply-To: <CAEHH7R65bFz_em9hB4QffOWrYYm+u_TC7=nDjpNtgsgTWMqfKw@mail.gmail.com>
References: <CAEHH7R4Sj+wr-imxcaSfMdr4eDJontxq68SxE8XC-dT9JABfWg@mail.gmail.com>
<20180928052539.GJ1500@paquier.xyz>
<93d6c6ec-141e-70a4-7b15-7c4b1ba4f146@aklaver.com>
<20180928225439.GA1823@paquier.xyz>
<CAEHH7R65bFz_em9hB4QffOWrYYm+u_TC7=nDjpNtgsgTWMqfKw@mail.gmail.com>
On 9/28/18 7:05 PM, Raghavendra Rao J S V wrote:
> Hi All,
>
> Hope you all are recommending below settings to maintain only max 30
> days logs in *pg_log* directory. Please correct me if I am wrong.
Well it would actually be 31 days as:
http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html
%d
Replaced by the day of the month as a decimal number [01,31]. [
tm_mday]
Not sure if that matters or not.
>
> log_filename = 'postgresql-%d.log'
> log_truncate_on_rotation = 'on',
>
> Regards,
> Raghavendra Rao
>
> On Sat, 29 Sep 2018 at 04:24, Michael Paquier <michael@paquier.xyz
> <mailto:michael@paquier.xyz>> wrote:
>
> On Fri, Sep 28, 2018 at 06:19:16AM -0700, Adrian Klaver wrote:
> > If log_truncate_on_rotation = 'on', correct?
>
> Yup, thanks for precising.
> --
> Michael
>
>
>
> --
> Regards,
> Raghavendra Rao J S V
> Mobile- 8861161425
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, raghavendrajsv@gmail.com, michael@paquier.xyz
Subject: Re: How to maintain the csv log files in pg_log directory only for past 30 days
In-Reply-To: <568940a5-9a25-d119-b69a-3905cdd61b0b@aklaver.com>
References: <CAEHH7R4Sj+wr-imxcaSfMdr4eDJontxq68SxE8XC-dT9JABfWg@mail.gmail.com> <20180928052539.GJ1500@paquier.xyz> <93d6c6ec-141e-70a4-7b15-7c4b1ba4f146@aklaver.com> <20180928225439.GA1823@paquier.xyz> <CAEHH7R65bFz_em9hB4QffOWrYYm+u_TC7=nDjpNtgsgTWMqfKw@mail.gmail.com> <568940a5-9a25-d119-b69a-3905cdd61b0b@aklaver.com>
* 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