Skip to main content

Key Concepts

The key concepts of the PostgreSQL service are as follows:

Key ConceptDescription
Instance groupAn object that manages the lifecycle of instances and backups.
InstanceA VM managed by an instance group, with roles determined as Primary or Standby based on availability.
Instance typeVirtualized hardware resources, including vCPU and memory, for database usage.
- Supports various types optimized for different workloads.
Instance lifecycleEnables monitoring and managing the operational and task status of instance groups and instances through their lifecycle.
BackupManaged online without database downtime, including creation and deletion of backups.
VolumeProvides databases using block storage devices without requiring users to create or configure block storage directly.
Network and securityOffers networking and security features in VPCs, allowing for logically isolated service environments based on network requirements.
IAM and securityGrants appropriate access permissions via IAM and ensures secure management of PostgreSQL resources.

Instance group

Instance groups are objects that manage the lifecycle of instances and backups.
PostgreSQL instance groups have various statuses, including operational and terminated, enabling users to monitor and manage instance groups.

Instance group lifecycle and status values

When creating a PostgreSQL instance group, it begins in the Pending state, transitions through Provisioning and Primary Available states, and finally reaches the Available state. Instance groups in the Available state can be accessed via endpoint and port configurations within the selected network. Default ports are 5432 for Primary and 5433 for Standby, with user-defined ports available between 1024–65535 during creation.

Instance group lifecycle

Image
PostgreSQL instance group lifecycle

StatusDescription
PendingPreparing to configure the instance group.
- Initial state upon instance group creation.
ProvisioningCreating and configuring necessary resources for the instance group.
Primary AvailableHigh-availability mode with one or more standby instances partially configured.
Primary remains available, but Standby is unavailable.
SwitchingA standby instance is being promoted to primary due to issues with the current primary.
- Triggered by manual/automatic failover.
AvailableAll instances in the instance group are in Running state and fully operational.
Accessible via network endpoint.
TerminatingDeleting all instances and associated resources, including backups.
TerminatedAll resources in the instance group have been deleted.
ErrorTemporary issue causing partial inaccessibility of the instance group.
FatalIrrecoverable error during configuration, preventing the instance group from reaching a stable state.

Instance

Instances are VMs managed by instance groups.
PostgreSQL instances include virtualized databases with CPU and memory resources. They exist as objects within PostgreSQL instance groups and can function as Primary or Standby, based on their availability.

Instance roles

RoleDescription
PrimaryThe main instance for read and write operations.
- Accessible via the endpoint.
StandbyHigh-availability instance for failover and read-only operations.
- Created when high availability is selected.

Instance types

PostgreSQL services offer a variety of instance types optimized for different workloads.
Instance specifications are determined by the type selected during instance group creation. Usage-based charges apply.

m2a (General Purpose) and r2a (Memory-Optimized) Types

Instance TypevCPU (cores)Memory (GiB)
m2a.large28
m2a.xlarge416
m2a.2xlarge832
m2a.4xlarge1664
m2a.8xlarge32128
r2a.large216
r2a.xlarge432
r2a.2xlarge864
r2a.4xlarge16128
r2a.8xlarge32256

Instance lifecycle and status values

Instances begin in the Pending state and transition through Provisioning and Starting to reach the Running state.

PostgreSQL instance lifecycle

Image
PostgreSQL instance lifecycle

StatusDescription
PendingInitial state while preparing to configure the instance.
StartingResources are being created to configure the instance.
RestartingInstance is restarting due to a user request.
WarningInstance communication is possible, but some features are limited.
RunningInstance is operational, with PostgreSQL service running normally.
Volume-ExtendingInstance's volume is being extended.
TerminatingInstance is being terminated, with all resources deleted.
TerminatedInstance and its resources have been fully terminated.
ErrorInstance has encountered an error, making it temporarily unavailable.
FatalIrrecoverable error occurred during instance creation.

Instance availability and roles

The number of instances and their roles are determined based on the instance availability configuration.

Instance Availability ConfigurationNumber of Created InstancesDescription
Single (Single, Primary Instance)1         Creates only one primary instance
High Availability (HA, Primary, Standby Instances)Up to 6Creates primary and standby instances
- 1 primary and 1 to 5 standby instances

Instance availability status

Represents the status of data replication between PostgreSQL instances. This applies only to instance groups with high availability selected.

Image
PostgreSQL Instance Availability Status

Availability StatusDescription
ConfiguringStatus where the data replication setup for PostgreSQL instances is in progress
ConfiguredStatus where data replication for PostgreSQL instances is functioning normally
UnavailableStatus where data replication for PostgreSQL instances has stopped

Backup

Backups are managed at the instance group level.

Backup lifecycle and status values

Backups start in the Pending state, transition through Processing, and complete in the Available state.

Backup Status

Image
PostgreSQL backup lifecycle

StatusDescription
PendingInitial state before resources for the backup are created.
ProcessingBackup is being created.
AvailableBackup has been successfully completed and is ready for restoration.
RestoringBackup is being used for restoration and cannot be deleted.
DeletingBackup is being deleted.
DeletedBackup has been fully deleted.
ErrorBackup failed, and valid backup information is unavailable.
FatalIrrecoverable error occurred during backup creation, leaving the object nonexistent.

Failover

PostgreSQL supports High Availability (HA) with auto-failover and manual failover options.
Failover promotes one of the standby instances to primary when a failure occurs.

caution

Failover may cause brief service disruptions.

Failover lifecycle

StatusDescription
SWITCHINGFailover is in progress. PostgreSQL service is temporarily unavailable.
PRIMARY-AVAILABLEStandby instances are being configured.

Volume

PostgreSQL uses block storage volumes to provide databases. Users do not need to create or manage block storage directly.

Network and security

All PostgreSQL instances are hosted in VPC environments.
VPCs provide network and security features, enabling logically isolated service environments tailored to network requirements. For more details, refer to VPC documentation.