aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/commit_ts/sql/commit_timestamp.sql
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-07-13 06:43:20 +0900
committerMichael Paquier <michael@paquier.xyz>2018-07-13 06:43:20 +0900
commit5fc1008e8a8b9e96ac75b4db5dd9ad2b99a9c8b2 (patch)
tree55af2567e2d78718cd064eddd8b924bf34e8e6f9 /src/test/modules/commit_ts/sql/commit_timestamp.sql
parent5e6e2c8773dd8e3037d9195452dc5e423367e1b0 (diff)
downloadpostgresql-5fc1008e8a8b9e96ac75b4db5dd9ad2b99a9c8b2.tar.gz
postgresql-5fc1008e8a8b9e96ac75b4db5dd9ad2b99a9c8b2.zip
Clean up temporary WAL segments after an instance crash
Temporary WAL segments are created in pg_wal and named as xlogtemp.pid before being renamed to the real deal when creating a new segment. If an instance crashes after the temporary segment is created and before the rename is done, then the server would finish with unremovable data. After an instance crash, scan pg_wal and remove any such segments. With repetitive unlucky crashes this would contribute to disk bloat and presents risks of ENOSPC especially with max_wal_size close to the maximum allowed. Author: Michael Paquier Reviewed-by: Yugo Nagata, Heikki Linnakangas Discussion: https://postgr.es/m/20180514054955.GF1528@paquier.xyz
Diffstat (limited to 'src/test/modules/commit_ts/sql/commit_timestamp.sql')
0 files changed, 0 insertions, 0 deletions