lasthourcloud/scripts/generate_pg_data.sh
Andras Bacsai a4b44bacc1 updates
2023-09-05 15:43:56 +02:00

3 lines
211 B
Bash

psql -U postgres -c "create table if not exists test (id SERIAL UNIQUE NOT NULL,article TEXT);"
psql -U postgres -c "insert into test (article) select md5(random()::text) from generate_series(1, 1000000) s(i);"