dump_system_columns.sh 397 B

12345678
  1. #!/usr/bin/env bash
  2. set -eux
  3. docker run --network=host --detach --name=postgres -e POSTGRES_PASSWORD=1234 -e POSTGRES_USER=root -e POSTGRES_DB=local --rm postgres:16
  4. sleep 5
  5. docker exec -i postgres psql postgres://root:1234@localhost:5432/local < columns.sql > columns.txt
  6. docker exec -i postgres psql postgres://root:1234@localhost:5432/local < pg_class.sql > pg_class.txt
  7. docker rm -f postgres