CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
CREATE TEMPORARY TABLE Stuff(id SERIAL PRIMARY KEY, data FLOAT8 NOT NULL);
INSERT INTO Stuff(id, data)
  SELECT i, RANDOM() * 1000
  FROM generate_series(1, 10) AS i;
SELECT pg_stat_statements_reset();
BEGIN \;
SELECT data FROM Stuff WHERE id = 1 \;
SELECT data FROM Stuff WHERE id = 2 \;
SELECT data FROM Stuff WHERE id = 3 \;
COMMIT;
BEGIN \;
SELECT data FROM Stuff WHERE id = 4 \;
SELECT data FROM Stuff WHERE id = 5 \;
SELECT data FROM Stuff WHERE id = 6 \;
COMMIT;
SELECT query FROM pg_stat_statements;
