package
2.4.1+incompatible
Repository: https://github.com/percona/percona-postgresql-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AdditionalConfigVolumeMount returns the name and mount path of the additional config files.
ConfigDirectory returns the absolute path to $PGDATA for cluster.
CreateDatabasesInPostgreSQL calls exec to create databases that do not exist in PostgreSQL.
DataDirectory returns the absolute path to the "data_directory" of cluster.
DataVolumeMount returns the name and mount path of the PostgreSQL data volume.
DownwardAPIVolumeMount returns the name and mount path of the DownwardAPI volume.
Environment returns the environment variables required to invoke PostgreSQL utilities.
This helper function checks to see if a huge_pages value greater than zero has been set in any of the PostgresCluster's instances' resource specs.
InstancePod initializes outInstancePod with the database container and the volumes needed by PostgreSQL.
NewHBA returns an HBA record that matches all databases, networks, and users.
NewHBAs returns HostBasedAuthentication records required by this package.
NewParameters returns ParameterSets required by this package.
NewParameterSet returns an empty ParameterSet.
PodSecurityContext returns a v1.PodSecurityContext for cluster that can write to PersistentVolumes.
This function looks for a valid huge_pages resource request.
TablespaceVolumeMount returns the name and mount path of the PostgreSQL tablespace data volume.
WALDirectory returns the absolute path to the directory where an instance stores its WAL files.
WALVolumeMount returns the name and mount path of the PostgreSQL WAL volume.
WriteUsersInPostgreSQL calls exec to create users that do not exist in PostgreSQL.

# Constants

IANAPortNumber is the port assigned to PostgreSQL at the IANA.
IANAServiceName is the name of the PostgreSQL protocol at the IANA.
ReplicationUser is the PostgreSQL role that will be created by Patroni for streaming replication and for `pg_rewind`.
SocketDirectory is where to bind and connect to UNIX sockets.

# Structs

HBAs is a pairing of HostBasedAuthentication records.
HostBasedAuthentication represents a single record for pg_hba.conf.
Parameters is a pairing of ParameterSets.
ParameterSet is a collection of PostgreSQL parameters.

# Type aliases

Executor provides methods for calling "psql".