Declarative Range Partitioning by Month in PostgreSQL 17
How I convert a large append-only table to declarative range partitioning by month in PostgreSQL 17, then hand partition creation and retention to pg_partman.
How I convert a large append-only table to declarative range partitioning by month in PostgreSQL 17, then hand partition creation and retention to pg_partman.
A killed Borg run leaves a stale lock and a cache that thinks it has seen the future. Clear both safely, fix the clock-skew cause, and keep every archive.
A documented Bash boilerplate: strict mode, colourised logging, a cleanup trap, getopts parsing and a usage() and main(). A copy-paste starting point that is already safe.
A full certbot setup on nginx: issue the cert, verify the systemd renewal timer, add a deploy hook that reloads cleanly, harden TLS 1.2/1.3, and confirm the grade.
A defensible cleanup job built on GNU find: absolute-path anchoring, a mandatory dry run, -mtime filters, print0 with xargs -0, exclusions, logging, and a guard that stops it running against /.
Automate Windows Server patching without WSUS using PSWindowsUpdate: scheduled scans, excluded drivers and previews, per-host reports, and a reboot confined to a maintenance window.
Apply security updates on a schedule with reboots gated to a maintenance window and reporting that tells you what happened: unattended-upgrades on Linux, PSWindowsUpdate on Windows.
Unattended TLS renewal done properly: a certbot systemd timer, a deploy hook that reloads nginx only on real renewal, a dry-run to prove it, and expiry monitoring.
A systemd timer is two files and a lot of capability people never use. Set up a oneshot service and its timer with catch-up, randomised delay, a dedicated user and sandboxing.
On 25 October 2026 the EU turns its clocks back and one hour of local time happens twice. Every scheduler pinned to wall-clock time is a landmine that day. Here is the one audit to run before it fires.