pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: MichaelDBA <MichaelDBA@sqlexec.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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 09:16:44 -0400
Message-ID: <017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com> (raw)
In-Reply-To: <1424081.1688037721@sss.pgh.pa.us>
References: <CALXkTpyeFNKOzWo3GSj=pAD4FitVnOcbk9s8dn_Zv_Dyu2KU3A@mail.gmail.com>
	<CAECtzeVJ4DLZ=+pdGC4eqCktzycshRFzN2Zynm4nh45oC7cdHQ@mail.gmail.com>
	<1424081.1688037721@sss.pgh.pa.us>

example: log_filename = 'postgresql-%a.log'


Tom Lane wrote on 6/29/2023 7:22 AM:
> 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
>
>


Regards,

Michael Vitale

Michaeldba@sqlexec.com <mailto:michaelvitale@sqlexec.com>

703-600-9343

Attachments:

  [image/jpeg] pgadvanced3.jpg (20.6K, ../017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com/3-pgadvanced3.jpg)
  download | view image

view thread (5+ messages)  latest in thread

Message-ID: <017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com>
Permalink:  ../017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com/
Also on:    postgresql.org/message-id/017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.com

 · 

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: MichaelDBA@sqlexec.com, 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: <017a8f0f-2a35-297e-764e-5f77a1af4ff3@sqlexec.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