pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Rene Romero Benavides <rene.romero.b@gmail.com>
Cc: 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: Wed, 10 Apr 2019 12:12:13 -0600
Message-ID: <04f4bc5d-be30-c1da-4d5c-db0f71b20324@gmail.com> (raw)
In-Reply-To: <CANaGW08JENvLoxKJ1LPUtkZ_p1A8-XzdKy=Oq0FSe1Ve+AaV0Q@mail.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>
	<989E476E-D798-4F80-ADDE-3DA4EB9CAA3C@gmail.com>
	<6F2111AD-1CD9-4077-AA8B-F6E1F7AD809D@gmail.com>
	<CANaGW0--3RxzM9TKDJUCz3Dyiez9xY4BcotpE4z8a97fVeoxsQ@mail.gmail.com>
	<CANaGW08X652v9cJg=khQLfpzRwo-bZCcJ0eXfAJ-XYKZG3vOFg@mail.gmail.com>
	<B87B5D7F-4B4D-4AA1-9E82-451A134AD777@gmail.com>
	<CANaGW08JENvLoxKJ1LPUtkZ_p1A8-XzdKy=Oq0FSe1Ve+AaV0Q@mail.gmail.com>



> As per your configuration :
> max_wal_size = 50GB
> this seems to be the cause for the WAL files piling up.
>
> this has been declared twice, the last one is taking effect.
> -- 
> El genio es 1% inspiración y 99% transpiración.
> Thomas Alva Edison
> http://pglearn.blogspot.mx/
>
I've manage to generate another 359 WAL files in a 10 minute span 
yesterday (now only 357 remain and I suspect they will wither away as 
before).  Are these being held simply because of the high max_wal_size 
value?

This is a development environment, wherein I'm loading 4M+ records, 
first into 41 staging tables 100K rows per.  In a loop over each staging 
table, the data is then placed into application tables via selects. 
First select * into "matching table" then select id into intersection 
record (id, fixed groupId).  Each such iteration is in it's own 
transaction.  I have dropped and recreate this same database numerous 
times working my way up from 100K to 4M records, dialing in application 
parameters according to number of primary records. I have not, however, 
dropped the last incarnation.

view thread (22+ messages)  latest in thread

Message-ID: <04f4bc5d-be30-c1da-4d5c-db0f71b20324@gmail.com>
Permalink:  ../04f4bc5d-be30-c1da-4d5c-db0f71b20324@gmail.com/
Also on:    postgresql.org/message-id/04f4bc5d-be30-c1da-4d5c-db0f71b20324@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, rene.romero.b@gmail.com, michael@paquier.xyz, adrian.klaver@aklaver.com
  Subject: Re: stale WAL files?
  In-Reply-To: <04f4bc5d-be30-c1da-4d5c-db0f71b20324@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> <989E476E-D798-4F80-ADDE-3DA4EB9CAA3C@gmail.com> <6F2111AD-1CD9-4077-AA8B-F6E1F7AD809D@gmail.com> <CANaGW0--3RxzM9TKDJUCz3Dyiez9xY4BcotpE4z8a97fVeoxsQ@mail.gmail.com> <CANaGW08X652v9cJg=khQLfpzRwo-bZCcJ0eXfAJ-XYKZG3vOFg@mail.gmail.com> <B87B5D7F-4B4D-4AA1-9E82-451A134AD777@gmail.com> <CANaGW08JENvLoxKJ1LPUtkZ_p1A8-XzdKy=Oq0FSe1Ve+AaV0Q@mail.gmail.com> <04f4bc5d-be30-c1da-4d5c-db0f71b20324@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