Azure Database for PostgreSQL

Azure Database for PostgreSQL is a managed relational database service based on the open-source PostgreSQL database engine. It is a fully managed cloud database service that handles background infrastructure maintenance such as patching and backups, without user intervention.

On this page

Introduction #

Azure Database for PostgreSQL provides multiple deployment options to suit your application needs: Single Server, Flexible Server, and Hyperscale (Citus). Each option offers different advantages in terms of control, scalability, and cost.

Key Features #

Deployment Options #

1. Single Server

The Single Server deployment option is ideal for new cloud applications and for existing applications migrating to the cloud. It provides a simplified and fully managed database experience.

2. Flexible Server

The Flexible Server deployment option is best for customers looking for more control over database management, cost optimization, and better performance. It offers greater flexibility in server configuration and maintenance windows.

3. Hyperscale (Citus)

Hyperscale (Citus) is designed for demanding analytical workloads and real-time operational analytics. It allows you to scale PostgreSQL horizontally by distributing data across multiple nodes.

Getting Started #

Follow these steps to quickly get started with Azure Database for PostgreSQL:

  1. Create a server: You can create a server through the Azure portal, Azure CLI, or PowerShell.
  2. Configure firewall rules: Set up firewall rules to allow access to your server from specific IP addresses or Azure services.
  3. Connect to your server: Use your favorite PostgreSQL client or tool (e.g., psql, pgAdmin) to connect to your Azure Database for PostgreSQL instance.
  4. Create databases and tables: Once connected, you can create databases, tables, and load your data.

Tip: For detailed steps and examples, refer to the official Azure documentation.

Performance Tuning #

Optimizing the performance of your Azure Database for PostgreSQL instance is crucial for application responsiveness. Consider the following:

For specific tuning parameters and best practices, consult the performance tuning guide.

Security #

Azure Database for PostgreSQL offers comprehensive security features to protect your data:

Warning: Always use SSL/TLS connections to encrypt data in transit. Ensure your firewall rules are as restrictive as possible.