Skip to content

Instantly share code, notes, and snippets.

@rela589n
Created October 24, 2023 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rela589n/be3baf2dfd8e2174894004b48111cea1 to your computer and use it in GitHub Desktop.
Save rela589n/be3baf2dfd8e2174894004b48111cea1 to your computer and use it in GitHub Desktop.
Load table from SQL-dump
zcat ./table-dump.sql.gz | docker compose exec -T --env PGPASSWORD=qwerty postgresql_container psql -h postgresql_container -U postgres_user "database_name"
@rela589n
Copy link
Author

Load table from sql file in PostgreSQL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment