pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Anderson <forumwriter007@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: WAL-files is not removing authomaticaly
Date: Tue, 16 Mar 2021 11:44:18 -0400
Message-ID: <3253337.1615909458@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHAzDim-FhDGrMK332aQ4wDy0=T3_hSXUv3OWbdS0DHJWs-7jg@mail.gmail.com>
References: <CAHAzDi=7s2UpiFKQyQb+yNqFLaL3jrH=n2z=f52U8fc=QXbc7Q@mail.gmail.com>
	<7eee13c535a2f1de6e8dece0791531f3dc7f2c0e.camel@cybertec.at>
	<CAHAzDikSTvg5y8u-sNbpTNtQ_p3jWjhJBzPDMW1pU5T1x-MKFQ@mail.gmail.com>
	<8824049ee9e1f6476cf65ebb156c71fb2b44fa87.camel@cybertec.at>
	<CAHAzDi=2pGm6mQsH1CYdiLT=Q204bRtzMTGZEDfqiZ4ggyAabA@mail.gmail.com>
	<d4c888efc4851c6a2a5692d2ac7e26e187164e40.camel@cybertec.at>
	<CAHAzDi=GfBtes3Ed9qgOjy81F8c00XXMAF7BjK_t2=-FotADQw@mail.gmail.com>
	<033b46e968f6968cb4e3591c2111aaf20ec4b067.camel@cybertec.at>
	<CAHAzDi=Ypsg--1L4H9sj03HbtSjTy_8u59LMeLD2O2ZozLASYw@mail.gmail.com>
	<2e2b5960cc30345c328206ea374f2faab481a644.camel@cybertec.at>
	<CAHAzDim-FhDGrMK332aQ4wDy0=T3_hSXUv3OWbdS0DHJWs-7jg@mail.gmail.com>

Andrew Anderson <forumwriter007@gmail.com> writes:
>> - replication slot (you said that is not it)

> The replication slot is the same on master:
> postgres=# select * from pg_replication_slots ;
>     slot_name     | plugin | slot_type | datoid | database | temporary |
> active | active_pid | xmin | catalog_xmin | restart_lsn  |
> confirmed_flush_lsn
> ------------------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+--------------+---------------------
>  stanby_slot |        | physical  |        |          | f         | t
>  |      94341 |      |              | 145/F6ECC190 |
> (1 row)
> $ grep slot ${PGDATA}/recovery.done
> primary_slot_name = 'stanby_slot'

> and on slave:
> postgres=# select * from pg_replication_slots ;
>     slot_name     | plugin | slot_type | datoid | database | temporary |
> active | active_pid | xmin | catalog_xmin | restart_lsn  |
> confirmed_flush_lsn
> ------------------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+--------------+---------------------
>  stanby_slot |        | physical  |        |          | f         | f
>  |            |      |              | 13E/981E2DD0 |
> (1 row)
> $ grep slot ${PGDATA}/recovery.conf
> primary_slot_name = 'stanby_slot'

Uh ... that slot's restart_lsn seems to correspond to where the
standby is refusing to truncate WAL beyond.  So I think your
problem is exactly that this slot isn't advancing.  What's
using it?

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <3253337.1615909458@sss.pgh.pa.us>
Permalink:  ../3253337.1615909458@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3253337.1615909458@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 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: tgl@sss.pgh.pa.us, forumwriter007@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: WAL-files is not removing authomaticaly
  In-Reply-To: <3253337.1615909458@sss.pgh.pa.us>
  References: <CAHAzDi=7s2UpiFKQyQb+yNqFLaL3jrH=n2z=f52U8fc=QXbc7Q@mail.gmail.com> <7eee13c535a2f1de6e8dece0791531f3dc7f2c0e.camel@cybertec.at> <CAHAzDikSTvg5y8u-sNbpTNtQ_p3jWjhJBzPDMW1pU5T1x-MKFQ@mail.gmail.com> <8824049ee9e1f6476cf65ebb156c71fb2b44fa87.camel@cybertec.at> <CAHAzDi=2pGm6mQsH1CYdiLT=Q204bRtzMTGZEDfqiZ4ggyAabA@mail.gmail.com> <d4c888efc4851c6a2a5692d2ac7e26e187164e40.camel@cybertec.at> <CAHAzDi=GfBtes3Ed9qgOjy81F8c00XXMAF7BjK_t2=-FotADQw@mail.gmail.com> <033b46e968f6968cb4e3591c2111aaf20ec4b067.camel@cybertec.at> <CAHAzDi=Ypsg--1L4H9sj03HbtSjTy_8u59LMeLD2O2ZozLASYw@mail.gmail.com> <2e2b5960cc30345c328206ea374f2faab481a644.camel@cybertec.at> <CAHAzDim-FhDGrMK332aQ4wDy0=T3_hSXUv3OWbdS0DHJWs-7jg@mail.gmail.com> <3253337.1615909458@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