WALDirectory returns the absolute path to the directory where an instance stores its WAL files. - https://www.postgresql.org/docs/current/wal.html
( cluster *v1beta1.PostgresCluster, instance *v1beta1.PostgresInstanceSetSpec, )
| 200 | // stores its WAL files. |
| 201 | // - https://www.postgresql.org/docs/current/wal.html |
| 202 | func WALDirectory( |
| 203 | cluster *v1beta1.PostgresCluster, instance *v1beta1.PostgresInstanceSetSpec, |
| 204 | ) string { |
| 205 | return fmt.Sprintf("%s/pg%d_wal", WALStorage(instance), cluster.Spec.PostgresVersion) |
| 206 | } |
| 207 | |
| 208 | // WALStorage returns the absolute path to the disk where an instance stores its |
| 209 | // WAL files. Use [WALDirectory] for the exact directory that Postgres uses. |