# PostgreSQL Database Management

PostgreSQL / Database Management

## Create PostgreSQL database

 - [GET /Postgresql/create_database](https://api.docs.cpanel.net/specifications/cpanel.openapi/postgresql-database-management/postgresql::create_database.md): This function creates a PostgreSQL® database.

Important:

When you disable the PostgreSQL role, the system disables this function.

## Delete PostgreSQL database

 - [GET /Postgresql/delete_database](https://api.docs.cpanel.net/specifications/cpanel.openapi/postgresql-database-management/postgresql::delete_database.md): This function deletes a PostgreSQL® database.

Important:

  When you disable the Postgres role, the system disables this function.

## Return PostgreSQL name length restrictions

 - [GET /Postgresql/get_restrictions](https://api.docs.cpanel.net/specifications/cpanel.openapi/postgresql-database-management/postgresql::get_restrictions.md): This function retrieves the PostgreSQL® user and database name length restrictions.

Important:

When you disable the PostgreSQL role, the system disables this function.

## Return PostgreSQL databases

 - [GET /Postgresql/list_databases](https://api.docs.cpanel.net/specifications/cpanel.openapi/postgresql-database-management/postgresql-list_databases.md): This function lists an account's PostgreSQL® databases.

Important:

  When you disable the Postgres role, the system disables this function.

## Update PostgreSQL database name

 - [GET /Postgresql/rename_database](https://api.docs.cpanel.net/specifications/cpanel.openapi/postgresql-database-management/rename_database.md): This function renames a PostgreSQL® database.

Important:

When you disable the PostgreSQL role, the system disables this function.

