[Yandex Cloud documentation](../../index.md) > [Yandex Managed Service for PostgreSQL](../index.md) > [Step-by-step guides](index.md) > Databases > SQL queries in Yandex WebSQL

# SQL queries in Yandex WebSQL

You can use [Yandex WebSQL](../../websql/index.md) to send SQL queries to Managed Service for PostgreSQL cluster databases.

WebSQL is a Yandex Cloud service that enables you to connect to managed database clusters, work with databases, tables, and schemas, and run queries. This service runs in the browser, requires no extra login, and simplifies work by providing hints for SQL commands.

To connect from WebSQL, activate the **WebSQL access** option in the cluster settings. You can enable it when [creating](cluster-create.md) or [updating](update.md#change-additional-settings) a cluster.

The Managed Service for PostgreSQL cluster automatically creates a [Connection Manager](../../metadata-hub/concepts/connection-manager.md) connection for each database user, enabling database access from WebSQL. You can also [create a new connection](../../websql/operations/create-connection.md#connect-cluster) if needed.

To connect to the database from WebSQL:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder containing your cluster.
  1. Navigate to **Managed Service for&nbsp;PostgreSQL**.
  1. Click the cluster name and navigate to the **WebSQL** tab.
  1. Select the required connection.

      The connection will open in WebSQL. To open the query editor, select the required database. 
      
      Check [this PostgreSQL](https://www.postgresql.org/docs/current/sql.html) reference for supported queries.

      {% note info %}
      
      You cannot use SQL statements to perform operations requiring superuser privileges.
      
      {% endnote %}
    
{% endlist %}

For more information on WebSQL, see [this guide](../../websql/operations/index.md).