SET statement_timeout to '10s'; SELECT 1 FROM pg_class CROSS JOIN pg_class CROSS JOIN pg_class ...;
Note that this will emphasize the CPU and RAM, but not necessarily the drive. If you want to emphasize the disk, you probably just have to create a very large table. To do this, you can save the query results above or from any other solution to a new table ( CREATE TABLE AS ).
source share