Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sitMw-00Aek0-5z for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2024 10:24:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sitMu-005Ua3-70 for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2024 10:24:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sitMt-005UZv-SE for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2024 10:24:08 +0000 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sitMq-001jzY-TJ for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2024 10:24:07 +0000 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5d5bf833de7so4042178eaf.2 for ; Tue, 27 Aug 2024 03:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724754244; x=1725359044; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=e1PNbRgyENyVbUTQFEcq2XpnasPezryR33c5dbT3RXA=; b=Pey65/zmFQthBGpa4QyhhO8yUG48Snei9T0LTC5a8lvNPO6ROb57e9/CJzRhv6TN8j Fy/0Un5DJ93NUpi1hyePUWYGibX7AIIVn3A/BiDdZJwDPbjj0tKj6mlkOGhSdl+58VvS YR1CsgXzUZBLgGt+KV8g/CU/SBFysKTNmK+WcQz/JOLfLzhjlr8yj+MAJz4Lv0j8nqoA qMhLgZYhwIqB31uUlyUo3WXiiw3V+X1pE/TNL0rKcrySu6bSjSsb9WrzT2cHGulntZo9 H6t0TNZHr/MOocevCrmDGUu6lZl4jZ9z29Kk6q7gCHs2c/LyscGzMH9PJWvWcQQsFw4f NiWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724754244; x=1725359044; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e1PNbRgyENyVbUTQFEcq2XpnasPezryR33c5dbT3RXA=; b=mGlItt+BmKzH8WnPu+3klvufG+WEinpRp6QEZ0L9NPd9rsNpndSu5KmOJ2Nibgfid/ OWochdujeOg4rJBsIBf90SgLMOs/u3QHtLUaoS9oImv2p3WfE0XW9BuP+ueGxl9UT4wf dSRDkuo0/1LYBvGkCLVPynX9ViAAETrbHug1nyUCqS63RmSfYsfyITbGuAmgeZVHUQ2c 4xVBvskWsCgvCqZWVgjVtgYOPrs96OWK+JksVG8Onj2ev/tXq6GTJ/Oq2kubrSxbiHgP m/MOpcotGmhF3dSaZIon7f4M7qO6DBBE0f2vlwalo2uKrsBIzAJjcCaL1eATDHk6OQcw z3Qg== X-Gm-Message-State: AOJu0Yz2NV/XB5gHls5cE27hiV0Up8zEoLphdKXe/KU47nu+KqA5lJah Qw9XCAbYWxwZrAXirlqSFhzIrUAZCIVUaT1N/WAcEtCXXxke8x0nA4PogVeDgMtG2IVIOUPH2qd 0eeVDZb5btUCGApJiXGzCZHmtg51rNA== X-Google-Smtp-Source: AGHT+IG03zvud+9ZrgNnsLcQmLQYBvhV4Ay9guYZJfsMynEofjky/7uDLi3xoOma9p6ZIyCBt1Q0mcAs+fdB6+qDA/s= X-Received: by 2002:a05:6820:1c95:b0:5c6:8eb6:91b2 with SMTP id 006d021491bc7-5dea668b989mr3437437eaf.1.1724754244068; Tue, 27 Aug 2024 03:24:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dominique Devienne Date: Tue, 27 Aug 2024 12:23:52 +0200 Message-ID: Subject: Re: Using PQsocketPoll() for PIPELINE mode To: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 14, 2024 at 2:50=E2=80=AFPM Dominique Devienne wrote: > Hi. I've now used successfully the new PQsocketPoll() API > in the context of waiting for notifications, using beta2 and 3. > > But now I'm looking into using it in the context of PIPELINE mode. > Where I suppose both forRead and forWrite are 1, but the return > code only indicates whether the condition is met. The doc says nothing > about OR or AND semantic, when both forRead and forWrite are true. > > Perhaps it's deemed obvious from the use of select() or poll()? > Or is one supposed to call it once with forRead=3DforWrite=3D1 and > a timeout, then call it again twice with just one forFlag set and > a 0 timeout, to know the "details" about which "side" is ready? > > Or hasn't this use case been considered for PQsocketPoll(), > and thus the current return code isn't has precise as it could be? > > Thanks for any precisions, --DD Hi. No answers. Was it wrong timing (vacations) or is something wrong with my questions? Thanks, --DD