dump postgres data with column names (#193)

This commit is contained in:
Bethuel Mmbaga
2024-05-24 12:29:26 +03:00
committed by GitHub
parent 0c9bc84fc1
commit 20ce178924

View File

@@ -142,7 +142,7 @@ For migrating the Postgres data, we rely on the `pg_dump`, `sed`, and `sqlite3`
1. Export Postgres data
```bash
pg_dump --data-only --inserts "postgresql://<PG_USER>:<PG_PASSWORD>@<PG_HOST>:<PG_PORT>/<PG_DB_NAME>" > data.sql
pg_dump --data-only --column-inserts "postgresql://<PG_USER>:<PG_PASSWORD>@<PG_HOST>:<PG_PORT>/<PG_DB_NAME>" > data.sql
```
2. Convert exported Postgres data sql to Sqlite format