lasthourcloud/scripts/generate_pg_data.sh

3 lines
211 B
Bash
Raw Normal View History

2023-09-05 13:43:56 +00:00
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);"