MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / DataStorage

Function DataStorage

internal/postgres/config.go:130–132  ·  view source on GitHub ↗

DataStorage returns the absolute path to the disk where cluster stores its data. Use [DataDirectory] for the exact directory that Postgres uses.

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

128// DataStorage returns the absolute path to the disk where cluster stores its data.
129// Use [DataDirectory] for the exact directory that Postgres uses.
130func DataStorage(cluster *v1beta1.PostgresCluster) string {
131 return dataMountPath
132}
133
134// LogRotation returns parameters that rotate log files while keeping a minimum amount.
135// Postgres truncates and reuses log files after that minimum amount.

Callers 2

TestDataStorageFunction · 0.85
DataDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDataStorageFunction · 0.68