INSERT INTO wide(wide) SELECT string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i);

begin;
INSERT INTO wide(wide) SELECT string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i);
INSERT INTO wide(wide) SELECT string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i);
commit;

SELECT nextval('wide_id_seq'::regclass) \gset
INSERT INTO wide(id, wide) SELECT :nextval, string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i) ON CONFLICT DO NOTHING;
BEGIN;
INSERT INTO wide(id, wide) SELECT :nextval, string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i) ON CONFLICT DO NOTHING;
INSERT INTO wide(id, wide) SELECT :nextval, string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i) ON CONFLICT DO NOTHING;
COMMIT;

SELECT nextval('wide_id_seq'::regclass) \gset
BEGIN;
INSERT INTO wide(id, wide) SELECT :nextval, string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i) ON CONFLICT DO NOTHING;
INSERT INTO wide(id, wide) SELECT :nextval, string_agg(g.i::text || random()::text, '') FROM generate_series(1, 500) g(i) ON CONFLICT DO NOTHING;
COMMIT;
