Commit 707900f
committed
fix: Disable postgresql_server_tuning for buildah connections
Cause: Detecting available RAM and basing the shared memory settings of
the server on that is futile and wrong during a container image build.
The available RAM during that build is independent of the actual
runtime, be that a bootc deployment or a system container.
Consequence: postgresql.service failed to start when the available RAM
during container build was higher than at deployment time. In the
opposite case, the shared memory tuning was too small and thus also
wrong.
Fix: Disable `postgresql_server_tuning` by default for container builds,
i.e. when being connected to a buildah instance.1 parent ba0bae8 commit 707900f
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments