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