also check IsTransactionState, it helps support of pg_reload_config