Re: measuring WAL creation - Mailing list pgsql-admin

From Tom Lane
Subject Re: measuring WAL creation
Date
Msg-id 4023041.1722630559@sss.pgh.pa.us
Whole thread Raw
In response to measuring WAL creation  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: measuring WAL creation
List pgsql-admin
Scott Ribe <scott_ribe@elevated-dev.com> writes:
> I'd like to measure both the amount of WAL created by a long series of data modifications and the compressed size of
thegenerated WAL files. 
> I suppose I need to set wal_keep_size high, and pay attention to segment numbers to make sure it was high enough.
ThenI can look at segments created while the commands were running. 

> But question: can I simply delete all WAL after a clean shutdown?

As a general rule, never do that manually --- the risk/reward ratio is
unattractive.  A checkpoint will release all safely-releasable WAL.
You can checkpoint via a shutdown if you insist, but a plain
CHECKPOINT command should be enough.

            regards, tom lane



pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: measuring WAL creation
Next
From: Scott Ribe
Date:
Subject: Re: measuring WAL creation