pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Nikhil Ingale <niks.bgm@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Deleting the pg logs older than 30 days or certain time
Date: Thu, 29 Jun 2023 07:22:01 -0400
Message-ID: <1424081.1688037721@sss.pgh.pa.us> (raw)
In-Reply-To: <CAECtzeVJ4DLZ=+pdGC4eqCktzycshRFzN2Zynm4nh45oC7cdHQ@mail.gmail.com>
References: <CALXkTpyeFNKOzWo3GSj=pAD4FitVnOcbk9s8dn_Zv_Dyu2KU3A@mail.gmail.com>
	<CAECtzeVJ4DLZ=+pdGC4eqCktzycshRFzN2Zynm4nh45oC7cdHQ@mail.gmail.com>

Guillaume Lelarge <guillaume@lelarge.info> writes:
> Le jeu. 29 juin 2023 à 09:13, Nikhil Ingale <niks.bgm@gmail.com> a écrit :
>> Can postgresql internal log rotation configuration mechanism delete the
>> log files older than a specific period of time?

> No.

It will work if you choose a filename pattern such that old files are
overwritten on some cycle.  logrotate is a more flexible answer
of course.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <1424081.1688037721@sss.pgh.pa.us>
Permalink:  ../1424081.1688037721@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1424081.1688037721@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guillaume@lelarge.info, niks.bgm@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Deleting the pg logs older than 30 days or certain time
  In-Reply-To: <1424081.1688037721@sss.pgh.pa.us>

* 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