docs: add a note about accessing the dev env's postgres database (#31874)

This commit is contained in:
Maxime Beauchemin
2025-01-15 10:30:26 -08:00
committed by GitHub
parent f235787703
commit aacfe4d667
2 changed files with 25 additions and 4 deletions

View File

@@ -89,6 +89,17 @@ For more env vars that affect your configuration, see this
[superset_config.py](https://github.com/apache/superset/blob/master/docker/pythonpath_dev/superset_config.py)
used in the `docker compose` context to assign env vars to the superset configuration.
### Accessing the postgres database
Sometimes it's useful to access the database in the docker container directly.
You can enter a `psql` shell (the official Postgres client) by running the following command:
```bash
docker compose exec db psql -U superset
```
Also note that the database is exposed on port 5432, so you can connect to it using your favorite
Postgres client or even SQL Lab itselft directly in Superset by creating a new database connection
to `localhost:5432`.
### Nuking the postgres database