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

Function ConfigDirectory

internal/postgres/config.go:118–120  ·  view source on GitHub ↗

ConfigDirectory returns the absolute path to $PGDATA for cluster. - https://www.postgresql.org/docs/current/runtime-config-file-locations.html

(cluster *v1beta1.PostgresCluster)

Source from the content-addressed store, hash-verified

116// ConfigDirectory returns the absolute path to $PGDATA for cluster.
117// - https://www.postgresql.org/docs/current/runtime-config-file-locations.html
118func ConfigDirectory(cluster *v1beta1.PostgresCluster) string {
119 return DataDirectory(cluster)
120}
121
122// DataDirectory returns the absolute path to the "data_directory" of cluster.
123// - https://www.postgresql.org/docs/current/runtime-config-file-locations.html

Callers 3

instanceEnvironmentFunction · 0.92
TestConfigDirectoryFunction · 0.85
EnvironmentFunction · 0.85

Calls 1

DataDirectoryFunction · 0.85

Tested by 1

TestConfigDirectoryFunction · 0.68