Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2215 from Khatskevich/khatskevich-clickhouse-max-…
Browse files Browse the repository at this point in the history
…table-to-drop

Clickhouse max_table_to_drop
  • Loading branch information
wojcik-dorota authored Nov 17, 2023
2 parents eacbac0 + 1640aa1 commit e5d26d2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions docs/products/clickhouse/howto/manage-databases-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,33 @@ Select a table engine
Part of the table definition includes a targeted table engine. The full list of supported table engines in Aiven for ClickHouse can be found :doc:`in this article <../reference/supported-table-engines>`. Aiven for ClickHouse uses ``replicated`` variants of table engines to ensure high availability. Even if you select ``MergeTree`` engine, we will automatically use the replicated variant on our side.

With this knowledge, try out an example dataset described :doc:`over here </docs/products/clickhouse/howto/load-dataset>`.

Remove a table
--------------

A table can be removed using either CLI or `Aiven Console <https://console.aiven.io/>`_.

.. note::

You can remove a table of any size if you have the ``DROP`` permission since parameters
``max_table_size_to_drop`` and ``max_partition_size_to_drop`` are disabled for Aiven
services. Consider :doc:`granting
</docs/products/clickhouse/howto/manage-users-roles>` only necessary permissions to your database users.

Remove a table with CLI
^^^^^^^^^^^^^^^^^^^^^^^

Run the following SQL command to remove your table:

.. code-block:: bash
DROP TABLE NAME_OF_YOUR_DATABASE.NAME_OF_YOUR_TABLE;
Remove a table in the console
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To remove your table in `Aiven Console <https://console.aiven.io/>`_, take the following steps:

1. Log in to the `Aiven Console <https://console.aiven.io/>`_.
2. Navigate to the table you want to remove: organization > project > service > **Databases and tables**.
3. In the **Databases and tables** view, navigate to the table and select **Actions** menu (**...**) > **Remove** > **Delete table**.
2 changes: 1 addition & 1 deletion docs/products/clickhouse/howto/manage-users-roles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ You can also see the users, their roles, and permissions in the `Aiven web cons
Manage using Terraform
------------------------

You can also manage user roles and access using the `Aiven Provider for Terraform </docs/tools/terraform>`. Try the Aiven Terraform Provider Cookbook recipe, Manage user privileges for Aiven for ClickHouse® services using Terraform<https://aiven.io/developer/manage-user-privileges-clickhouse-terraform>`.
You can also manage user roles and access using the :doc:`Aiven Provider for Terraform </docs/tools/terraform>`. Try Aiven Terraform Provider Cookbook recipe `Manage user privileges for Aiven for ClickHouse® services using Terraform <https://aiven.io/developer/manage-user-privileges-clickhouse-terraform>`_.

0 comments on commit e5d26d2

Please sign in to comment.