active_postgres 0.9.8 → 0.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3d6f986ee2ac96f5cdd8b69541a5acae87733f506b10efb94c1046082b990a9
4
- data.tar.gz: f64bb049c6601cf853de16c6cfeff8293ebb06d622db9633330298f02ef82135
3
+ metadata.gz: ac596a213f90fccc5ce5ed96000e76e77e819eed5d8ad1d9ddd3c15e61b6fae7
4
+ data.tar.gz: 71feb3c09a218906a70527745992f4d8e7e40643b9e99f5a0b05c917dbe6edaf
5
5
  SHA512:
6
- metadata.gz: b07c93095ab642d39d6d658e93ef82c7ca993a30cf06b3f320d02e20dc5f45a546ffcdb2196f5bae0d1ab2051fb3a453a0a445e3e3f49b89ec1e3be9ee19f042
7
- data.tar.gz: aeae944d32c7ee5f661470eaee9f66c01ef47c1bb4f578bbae0fd8d3e50f81044d24ddf49f85304a5aa6437de207aa22600cd3cc6cf7167713c5f87204e3cee9
6
+ metadata.gz: 0d4b55fc90bb71b33d0bcca854f358347a0a820a8a33c7131aa6dca1d73b4e77629766c9be07dca001699ec30081743e1e6b039d4205af9ae3ed9063204868ed
7
+ data.tar.gz: 731bc482ea43c6c1922a87a018cc47bd76f0fc5e3a9eb0c36cc79cb0f1e495aa04148e185e06d7792bc2110c59d93beecfd4ac3c6ea8605b436106878c9dd516
data/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project follows [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 0.9.10 - 2026-11-15
11
+
12
+ ### Fixed
13
+
14
+ - Remove deprecated `stop-auto` from generated pgBackRest configuration. Keep `start-fast` and the existing backup schedules and retention.
15
+ - Update the development lockfile to patched Rails, Rack, XML parser and HTML sanitizer releases.
16
+
17
+ ## 0.9.9 - 2026-10-02
18
+
19
+ ### Fixed
20
+
21
+ - Install and enable cron for pgBackRest backup and PostgreSQL log-archive schedules, and fail setup if the scheduler is not active.
22
+
10
23
  ## 0.9.8 - 2026-10-02
11
24
 
12
25
  ### Fixed
data/README.md CHANGED
@@ -13,6 +13,11 @@ capacity planning, monitoring, backups, recovery drills, and failover decisions.
13
13
  - **Rails Integration**: Automatic database.yml config, migration guard, read replica routing
14
14
  - **Modular Components**: Core, Performance Tuning (opt-in), repmgr, PgBouncer, pgBackRest, Monitoring, SSL, Extensions
15
15
 
16
+ Version 0.9.10 removes deprecated `stop-auto` from generated pgBackRest
17
+ configuration. Existing installations can remove that line from their
18
+ pgBackRest configuration without restarting PostgreSQL. Backup schedules,
19
+ retention and `start-fast` remain unchanged.
20
+
16
21
  ## Quick Start
17
22
 
18
23
  ### 1. Install
@@ -215,6 +220,10 @@ components:
215
220
  # schedule_incremental: "0 * * * *"
216
221
  ```
217
222
 
223
+ pgBackRest setup installs cron, enables it at boot, and checks that it is active.
224
+ Backup schedules run only on the primary; configured log-archive schedules run
225
+ on each database host.
226
+
218
227
  Run a PITR restore:
219
228
 
220
229
  ```bash
@@ -151,6 +151,16 @@ module ActivePostgres
151
151
  else
152
152
  remove_backup_schedule(host)
153
153
  end
154
+
155
+ ensure_scheduler(host)
156
+ end
157
+
158
+ def ensure_scheduler(host)
159
+ install_apt_packages(host, 'cron')
160
+ ssh_executor.execute_on_host(host) do
161
+ execute :sudo, 'systemctl', 'enable', '--now', 'cron'
162
+ execute :sudo, 'systemctl', 'is-active', '--quiet', 'cron'
163
+ end
154
164
  end
155
165
 
156
166
  def setup_backup_schedules(host, pgbackrest_config)
@@ -1,3 +1,3 @@
1
1
  module ActivePostgres
2
- VERSION = '0.9.8'.freeze
2
+ VERSION = '0.9.10'.freeze
3
3
  end
@@ -69,9 +69,8 @@ process-max=<%= pgbackrest_config[:process_max] || 2 %>
69
69
  archive-async=y
70
70
  spool-path=/var/spool/pgbackrest
71
71
 
72
- # Start/Stop (for consistent backups)
72
+ # Start the backup checkpoint promptly.
73
73
  start-fast=y
74
- stop-auto=y
75
74
 
76
75
  [main]
77
76
  pg1-path=/var/lib/postgresql/<%= config.version %>/main
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - BoringCache