mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
17 lines
307 B
PL/PgSQL
17 lines
307 B
PL/PgSQL
create or replace procedure do_commits() as $$
|
|
declare
|
|
xid xid8;
|
|
i integer;
|
|
begin
|
|
for i in 1..1000000 loop
|
|
xid = txid_current();
|
|
commit;
|
|
if (pg_xact_status(xid) <> 'committed') then
|
|
raise exception 'CLOG corruption';
|
|
end if;
|
|
end loop;
|
|
end;
|
|
$$ language plpgsql;
|
|
|
|
call do_commits();
|