@@ -0,0 +1,1511 @@
+package org.jkiss.dbeaver.ext.test.tools;%0A%0Aimport java.sql.*;%0Aimport java.util.Properties;%0A%0Apublic class HugeTableGenerator %7B%0A%0A    public static void main(String%5B%5D args) throws SQLException %7B%0A%0A        final String url = %22jdbc:postgresql://localhost/postgres%22;%0A        final Properties props = new Properties();%0A        props.setProperty(%22user%22, %22%22);%0A        props.setProperty(%22password%22, %22%22);%0A%0A        try (Connection conn = DriverManager.getConnection(url, props)) %7B%0A            conn.setAutoCommit(true);%0A%0A            try (PreparedStatement stmt = conn.prepareStatement(%0A                        %22CREATE TABLE BigTable (table_key int8, some_string varchar(64), create_time timestamp, primary key(table_key))%22))%0A            %7B%0A                stmt.execute();%0A            %7D%0A            // 10kk records%0A            conn.setAutoCommit(false);%0A            try (PreparedStatement stmt = conn.prepareStatement(%0A                    %22INSERT INTO BigTable(table_key, some_string, create_time) values(?,?,?)%22)) %7B%0A                for (int i = 0; i %3C 10000000; i++) %7B%0A                    stmt.setInt(1, i);%0A                    stmt.setString(2, %22Row %22 + i);%0A                    stmt.setTimestamp(3, new Timestamp(System.currentTimeMillis()));%0A                    stmt.execute();%0A                    if (i %25 100000 == 0) %7B%0A                        conn.commit();%0A                        System.out.println(i + %22 records%22);%0A                    %7D%0A                %7D%0A                conn.commit();%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

Test data generator