Connect and query overview for Azure database for PostgreSQL- Single Server
APPLIES TO:
Azure Database for PostgreSQL - Single Server
重要
Azure Database for PostgreSQL - Single Server is on the retirement path. We strongly recommend that you upgrade to Azure Database for PostgreSQL - Flexible Server. For more information about migrating to Azure Database for PostgreSQL - Flexible Server, see What's happening to Azure Database for PostgreSQL Single Server?.
The following document includes links to examples showing how to connect and query with Azure Database for PostgreSQL Single Server. This guide also includes TLS recommendations and extension that you can use to connect to the server in supported languages below.
Quickstart | Description |
---|---|
Pgadmin | You can use pgadmin to connect to the server and it simplifies the creation, maintenance and use of database objects. |
psql in Azure Cloud Shell | This article shows how to run psql in Azure Cloud Shell to connect to your server and then run statements to query, insert, update, and delete data in the database.You can run psql if installed on your development environment |
PostgreSQL with VS Code | Azure Databases extension for VS Code (Preview) allows you to browse and query your PostgreSQL server both locally and in the cloud using scrapbooks with rich Intellisense. |
PHP | This quickstart demonstrates how to use PHP to create a program to connect to a database and use work with database objects to query data. |
Java | This quickstart demonstrates how to use Java to connect to a database and then use work with database objects to query data. |
Node.js | This quickstart demonstrates how to use Node.js to create a program to connect to a database and use work with database objects to query data. |
.NET(C#) | This quickstart demonstrates how to use.NET (C#) to create a C# program to connect to a database and use work with database objects to query data. |
Go | This quickstart demonstrates how to use Go to connect to a database. Transact-SQL statements to query and modify data are also demonstrated. |
Python | This quickstart demonstrates how to use Python to connect to a database and use work with database objects to query data. |
Ruby | This quickstart demonstrates how to use Ruby to create a program to connect to a database and use work with database objects to query data. |
Transport Layer Security (TLS) is used by all drivers that Microsoft supplies or supports for connecting to databases in Azure Database for PostgreSQL. No special configuration is necessary but do enforce TLS 1.2 for newly created servers. We recommend if you are using TLS 1.0 and 1.1, then you update the TLS version for your servers. See How to configure TLS
PostgreSQL provides the ability to extend the functionality of your database using extensions. Extensions bundle multiple related SQL objects together in a single package that can be loaded or removed from your database with a single command. After being loaded in the database, extensions function like built-in features.
Fore more details, see How to use PostgreSQL extensions on Single server.