def _connect(self):
if self._connParams:<EOL><INDENT>self._conn = psycopg2.connect(**self._connParams)<EOL><DEDENT>else:<EOL><INDENT>self._conn = psycopg2.connect('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>ver_str = self._conn.get_parameter_status('<STR_LIT>')<EOL><DEDENT>except AttributeError:<EOL><INDENT>ver_str = self.getParam('<STR_LIT>')<EOL><DEDENT>self._version = util.SoftwareVersion(ver_str)<EOL>
Establish connection to PostgreSQL Database.