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: apps/docs/content/postgresql/how-to/manage.mdx
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,31 +108,33 @@ You can use various database management tools from your local workstation to con
108
108
109
109
## How to install and manage PostgreSQL plugins
110
110
111
+
### Viewing available plugins
111
112
You can list all available PostgreSQL plugins by running the following query *(superuser privileges not required)*:
112
113
113
114
```sql
114
115
SELECT*FROM pg_available_extensions ORDER BY name;
115
116
```
116
117
117
-
To install plugins, you must **connect as a superuser** (see note below) and run the appropriate CREATE EXTENSION command. For example:
118
+
### Installing plugins (requires superuser)
118
119
119
-
```sql
120
-
CREATE EXTENSION pg_stat_statements;
121
-
CREATE EXTENSION vector;
122
-
CREATE EXTENSION postgis;
123
-
```
120
+
1.**Connect with superuser credentials**:
121
+
- Use the `superUser` (user `postgres`) and `superUserPassword` environment variables from your PostgreSQL service
124
122
125
-
:::info Superuser Credentials
126
-
The PostgreSQL superuser credentials can be found in the `superUser` and `superUserPassword` environment variables of your PostgreSQL service.
127
-
:::
123
+
2.**Switch to your service database**:
124
+
When logging in as the superuser, you're initially in the `postgres` database, not your service database.
125
+
126
+
3.**Install required extensions**:
127
+
```sql
128
+
CREATE EXTENSION pg_stat_statements;
129
+
CREATE EXTENSION vector;
130
+
CREATE EXTENSION postgis;
131
+
```
128
132
129
133
:::warning
130
134
Currently, it is not possible to add new plugins that are not already listed in `pg_available_extensions`.
131
135
:::
132
136
133
-
When working with text search functionality, you'll need to reference the correct `stop`, `dict`, and `affix` files when creating dictionaries in your database. These files are essential for proper text search configuration.
134
-
135
-
Zerops PostgreSQL includes the following dictionary files:
137
+
When working with text search functionality, you'll need to reference the correct dictionary files. Zerops PostgreSQL includes the following:
0 commit comments