Setting the statement timeout at the beginning didn't work because `PostPruner.new.prune!` clobbers the timeout (it calls `without_timeout`, which doesn't restore the timeout properly if the timeout was zero).
Setting the statement timeout at the beginning didn't work because `PostPruner.new.prune!` clobbers the timeout (it calls `without_timeout`, which doesn't restore the timeout properly if the timeout was zero).