select pg_advisory_lock(x) from generate_Series(1,10000)x offset 1000000;
select pg_advisory_unlock_all();
