readline + libpq