You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ Before you begin, ensure you have the following:
32
32
* IAM Permissions:
33
33
* Cloud SQL Client (`roles/cloudsql.client`)
34
34
* Cloud SQL Admin (`roles/cloudsql.admin`)
35
+
> [!NOTE]
36
+
> If you do not configure a specific `CLOUD_SQL_POSTGRES_USER` or `CLOUD_SQL_POSTGRES_PASSWORD`, this extension defaults to using the active local IAM user credentials. You must also add the IAM user to your Cloud SQL instance, see [Creating a database user](https://cloud.google.com/sql/docs/postgres/add-manage-iam-users#creating-a-database-user).
35
37
36
38
## Getting Started
37
39
@@ -93,25 +95,39 @@ Interact with Cloud SQL for PostgreSQL using natural language:
93
95
## Supported Tools
94
96
95
97
***Admin:**
98
+
*`clone_instance`: Creates a clone for an existing Cloud SQL for PostgreSQL instance.
99
+
*`create_backup`: Creates a backup on a Cloud SQL instance.
96
100
* `create_instance`: Use this tool to create an Postgres instance.
97
101
* `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users.
98
102
*`create_database`: Creates a new database in a Cloud SQL instance.
99
103
* `get_instance`: Use this tool to get details about an Postgres instance.
100
104
* `list_instances`: Use this tool to list instances in a given project and location.
101
105
*`list_databases`: Lists all databases for a Cloud SQL instance.
106
+
*`restore_backup`: Restores a backup of a Cloud SQL instance.
102
107
*`wait_for_operation`: Use this tool to poll the operations API until the operation is done.
103
108
104
109
***Data:**
105
110
*`list_tables`: Use this tool to lists tables in the database.
111
+
*`database_overview`: Use this tool to fetches the current state of the PostgreSQL server.
106
112
*`execute_sql`: Use this tool to executes a SQL query.
107
113
*`list_active_queries`: Use this tool to list currently running queries.
108
114
*`list_available_extensions`: Use this tool to list available extensions for installation.
109
115
*`list_installed_extensions`: Use this tool to list installed extensions.
110
116
*`get_query_plan`: Use this tool to get query plan.
111
117
*`list_autovacuum_configurations`: Use this tool to list autovacuum configurations and its value.
112
-
*`list_memory_configuration`s: Use this tool to list memory configurations and its value.
113
-
*`list_top_bloated_tables`: Use this tool to list top bloated tables.
118
+
*`list_database_stats`: Use this tool to lists the key performance and activity statistics for each database in the postgreSQL instance.
119
+
*`list_indexes`: Use this tool to list available user indexes in a PostgreSQL database.
120
+
*`list_memory_configurations`: Use this tool to list memory configurations and its value.
121
+
*`list_pg_settings`: Use this tool to list configuration parameters for the PostgreSQL server.
122
+
*`list_publication_tables`: Use this tool to list publication tables in a PostgreSQL database.
114
123
*`list_replication_slots`: Use this tool to list replication slots.
124
+
*`list_roles`: Use this tool to lists all the user-created roles in PostgreSQL database.
125
+
*`list_schemas`: Use this tool to lists schemas in the database.
126
+
*`list_sequences`: Use this tool to list sequences in a PostgreSQL database.
127
+
*`list_tablespaces`: Use this tool to lists tablespaces in the database.
128
+
*`list_top_bloated_tables`: Use this tool to list top bloated tables.
129
+
*`list_triggers`: Use this tool to lists triggers in the database.
130
+
*`list_views`: Use this tool to lists views in the database from pg_views with a default limit of 50 rows.
115
131
*`list_invalid_indexes`: Use this tool to list invalid indexes.
0 commit comments