Skip to content

postgres superuser note #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/docs/content/postgresql/how-to/manage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,18 @@ You can list all available PostgreSQL plugins by running the following query *(s
SELECT * FROM pg_available_extensions ORDER BY name;
```

To install plugins, you must **connect as a superuser** (`postgres`) and run the appropriate CREATE EXTENSION command. For example:
To install plugins, you must **connect as a superuser** (see note below) and run the appropriate CREATE EXTENSION command. For example:

```sql
CREATE EXTENSION pg_stat_statements;
CREATE EXTENSION vector;
CREATE EXTENSION postgis;
```

:::info Superuser Credentials
The PostgreSQL superuser credentials can be found in the `superUser` and `superUserPassword` environment variables of your PostgreSQL service.
:::

:::warning
Currently, it is not possible to add new plugins that are not already listed in `pg_available_extensions`.
:::
Expand Down Expand Up @@ -170,4 +174,4 @@ unaccent.rules
```
</DropdownItem>
</Dropdown>
For more information on text search dictionaries, refer to the [PostgreSQL documentation](https://www.postgresql.org/docs/16/textsearch-dictionaries.html).
For more information on text search dictionaries, refer to the [PostgreSQL documentation](https://www.postgresql.org/docs/16/textsearch-dictionaries.html).