Create local variable for whether we're in PostgreSQL mode, remove implementation details from doco, add compiler/IDE hint for falling-through switch statement