passive mode support - merge functionality and tests from plpgsql lint