Generate realistic random test rows for PostgreSQL with SQL export, API integration, or direct table population.
For test data only. Never run against production data unless you fully understand write impact.
php -S 127.0.0.1:8080
curl -X POST http://127.0.0.1:8080/api/v1/generate/sql -H "Content-Type: application/json" -d '{"table_definition":"CREATE TABLE users(id BIGINT,email TEXT)","rows":10}' --output generated.sql
psql -h 127.0.0.1 -U postgres -d mydb -f generated.sql
Generate a ready-to-run pgbench script and command from a PostgreSQL CREATE TABLE definition.
generated_pgbench.sql)gen_random_uuid() (requires pgcrypto extension).
Run CREATE EXTENSION IF NOT EXISTS pgcrypto; once in your database.
PostgreSQL test data generation often requires one-off scripts and repetitive manual effort. This tool provides a predictable path for local development, QA, and demos.
pgbench script and command for concurrent load-oriented data generation.
See full setup instructions for PHP + PostgreSQL local hosting.
Open Local Hosting Steps