schema: make database operations testable
schema: make database operations testable

This introduces a new environment variable:
PPROF_USE_VOLATILE_DB

When defined, this will execute all operations inside a wrapper
transaction that will be rolled back after pprof is done running.
This enables doctests against a running postgres database without
altering the content inside the database.


Former-commit-id: c7f5e7bf0507050d202699f332b71a79ebb615ef
Former-commit-id: 05c839c9c0f636eca4d04d68ed2f89af387f21d5 [formerly 4944d15f82516839ec3a0a8d9d915b2e7054e723] [formerly fc780b6685398e36cd4abf75a5fab3f243f7fff3 [formerly 923f0684cb29eb2d47cf6ad6eb5b410ab7d57afd]]
Former-commit-id: 950b5c7d5e4b34d5ae4bd7ced7725188ba81bd8a [formerly a81c76f56d61d7ef7ab8df138a5f6cca13d1bb70]
Former-commit-id: 9bc05b2a5e53e83c588d34f6714b10d4211e06fa
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild