pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: stale WAL files?
Date: Fri, 29 Mar 2019 07:25:56 -0600
Message-ID: <356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.com> (raw)
In-Reply-To: <20190329125811.GF1954@paquier.xyz>
References: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com>
	<3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.com>
	<599C6022-1DA1-477D-895C-7E217D350B85@gmail.com>
	<20190328133005.GB2558@paquier.xyz>
	<973f0fdf-e20f-a8a1-86c8-7f145eb31b70@gmail.com>
	<20190329125811.GF1954@paquier.xyz>



> On Mar 29, 2019, at 6:58 AM, Michael Paquier <michael@paquier.xyz> wrote:
> 
>> On Thu, Mar 28, 2019 at 09:53:16AM -0600, Rob Sargent wrote:
>> This is pg10 so it's pg_wal.  ls -ltr
>> 
>> 
>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>> 0000000100000CEA000000B1
>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>> 0000000100000CEA000000B2
>> 
>>  ... 217 more on through to ...
>> 
>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>> 0000000100000CEA000000E8
>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>> 0000000100000CEA000000E9
>> -rw-------. 1 postgres postgres 16777216 Mar 28 09:46
>> 0000000100000CEA0000000E
> 
> In Postgres 10 and older versions, the server keeps WAL segment for
> the last completed segment, and the previous completed segment.  So
> even if a checkpoint is issued, the current WAL insert point is never
> really going to be on the first segment in pg_wal.  Isn't that the
> origin of what you think is a problem?  So, say, if you issue a
> checkpoint again, don't you see 0000000100000CEA000000B1 going away?
> 
> In Postgres 11, WAL segments worth only one checkpoint are kept
> around.
> --
> Michael

I’m on the road all through the weekend with limited connectivity. But recall that I’m getting new, transient WAL files 




view thread (22+ messages)  latest in thread

Message-ID: <356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.com>
Permalink:  ../356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.com/
Also on:    postgresql.org/message-id/356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.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 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: robjsargent@gmail.com, michael@paquier.xyz, adrian.klaver@aklaver.com
  Subject: Re: stale WAL files?
  In-Reply-To: <356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.com>
  References: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com> <3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.com> <599C6022-1DA1-477D-895C-7E217D350B85@gmail.com> <20190328133005.GB2558@paquier.xyz> <973f0fdf-e20f-a8a1-86c8-7f145eb31b70@gmail.com> <20190329125811.GF1954@paquier.xyz> <356763FD-78FD-4BB2-9B98-5E27B6B44CB9@gmail.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