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
data.dump is binary tar, it only works with pg_restore, not psql. It would be unnecessary to teach users to convert binary to plaintext, so suggest removing the psql method completely and only show pg_restore.
For educational purposes, I prefer the dump to be in plaintext sql because it introduces beginners to the psql tool which is used more often than pg_restore, and lets them self-help by reading the setup SQL code without all the conversions between binary and plaintext
The text was updated successfully, but these errors were encountered:
The above is giving error
--username $POSTGRES_USER
--dbname $POSTGRES_DB
/docker-entrypoint-initdb.d/data.dump
pg_restore: error: one of -d/--dbname and -f/--file must be specified
--username: command not found
--dbname: command not found
-bash: /docker-entrypoint-initdb.d/data.dump: No such file or directory
In materials/1-dimensional-data-modeling/README.md
2 problems.
For educational purposes, I prefer the dump to be in plaintext sql because it introduces beginners to the psql tool which is used more often than pg_restore, and lets them self-help by reading the setup SQL code without all the conversions between binary and plaintext
The text was updated successfully, but these errors were encountered: