Expand description
Create, start, introspect, stop, and destroy PostgreSQL clusters.
Re-exports§
Modules§
Structs§
- Cluster
- Representation of a PostgreSQL cluster.
- Server
Error - An error reported by the PostgreSQL server.
Enums§
- Client
Error - Error communicating with a cluster.
- Cluster
Error - Cluster
Status - State
- The outcome of an action on a cluster.
Constants§
- DATABASE_
POSTGRES postgresis always created byinitdbwhen building a PostgreSQL cluster.- DATABASE_
TEMPLAT E0 template0is always present in a PostgreSQL cluster.- DATABASE_
TEMPLAT E1 template1is 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.