pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-bugs mailing list <pgsql-bugs@postgresql.org>
Subject: Re: WAL segments removed from primary despite the fact that logical replication slot needs it.
Date: Wed, 19 Oct 2022 13:09:46 +0200
Message-ID: <Y0/a+l7iv1DgwKRk@depesz.com> (raw)
In-Reply-To: <CAA4eK1KWOffqcJg-D-oij9AdLwZTHh_oA0cHDsm618Ouwsu8mg@mail.gmail.com>
References: <Yz2hivgyjS1RfMKs@depesz.com>
	<CAA4eK1JTE0tLgR5qzVECrKJV5VVTnDa0k5LQ4TOkBAA=MySj3g@mail.gmail.com>
	<Y00cp4sNQtFNoo25@depesz.com>
	<CAA4eK1KUMFfVrOpP7VgAPUN7rabvfr5GhcQh++T8BX-t7=e5YA@mail.gmail.com>
	<Y0/PXTsb5XNH0fXG@depesz.com>
	<CAA4eK1KWOffqcJg-D-oij9AdLwZTHh_oA0cHDsm618Ouwsu8mg@mail.gmail.com>

On Wed, Oct 19, 2022 at 04:14:28PM +0530, Amit Kapila wrote:
> One idea is to change log level to DEBUG2 so that we can print which
> files are removed by the server via
> RemoveOldXlogFiles()
> {
> ...
> elog(DEBUG2, "attempting to remove WAL segments older than log file %s",
> lastoff);
> ...
> }
> 
> If we can do this then at the very least we can know whether the
> required files are removed by the server or by some external
> application.

That should be doable. Will take some time to setup test env, and run
it. Will get back to you on this.

Best regards,

depesz






view thread (57+ messages)  latest in thread

Message-ID: <Y0/a+l7iv1DgwKRk@depesz.com>
Permalink:  ../Y0%2Fa+l7iv1DgwKRk@depesz.com/
Also on:    postgresql.org/message-id/Y0/a+l7iv1DgwKRk@depesz.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-bugs@postgresql.org
  Cc: depesz@depesz.com, amit.kapila16@gmail.com
  Subject: Re: WAL segments removed from primary despite the fact that logical replication slot needs it.
  In-Reply-To: <Y0/a+l7iv1DgwKRk@depesz.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