First version of tmp_connection_psql