Skip to main content

Module cluster

Module cluster 

Source
Expand description

Create, start, introspect, stop, and destroy PostgreSQL clusters.

Re-exports§

pub use session::Finish;
pub use session::Session;
pub use session::Takeover;

Modules§

config
session
Use a cluster safely alongside other processes.

Structs§

Cluster
Representation of a PostgreSQL cluster.
ServerError
An error reported by the PostgreSQL server.

Enums§

ClientError
Error communicating with a cluster.
ClusterError
ClusterStatus
State
The outcome of an action on a cluster.

Constants§

DATABASE_POSTGRES
postgres is always created by initdb when building a PostgreSQL cluster.
DATABASE_TEMPLATE0
template0 is always present in a PostgreSQL cluster.
DATABASE_TEMPLATE1
template1 is always present in a PostgreSQL cluster.
PORT
The port that pgdo’s clusters listen on. They listen only on a Unix-domain socket in the data directory, so this does not conflict with any other server; it determines only the socket’s name, .s.PGSQL.5432.

Functions§

determine_superuser_role_names
Determine the names of superuser roles in a cluster (that can log in).
exists
A fairly simplistic but quick check: does the directory exist and does it look like a PostgreSQL cluster data directory, i.e. does it contain a file named PG_VERSION?
version
Yields the version of PostgreSQL required to use a cluster.

Type Aliases§

Options