File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
apps/docs/content/postgresql/how-to Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -108,23 +108,27 @@ 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 ` .
You can’t perform that action at this time.
0 commit comments