Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbTJO-0003v3-0M for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Apr 2022 20:28:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nbTJM-0006jG-Qr for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Apr 2022 20:28:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbTJM-0006j6-6g for pgsql-hackers@lists.postgresql.org; Mon, 04 Apr 2022 20:28:28 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nbTJH-0001dQ-Hj for pgsql-hackers@postgresql.org; Mon, 04 Apr 2022 20:28:27 +0000 Received: by mail-pj1-x102e.google.com with SMTP id gt4so3958864pjb.4 for ; Mon, 04 Apr 2022 13:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5W8ISm/oQ+jXmUs9FPm6ePZT1pA2Sf70v5WNcBCnCoQ=; b=e9VAwPuBH8uOhdV2QoMYHrch5R3rEL8pkqeqkepW/tp5AzCTBvTd9F7/M86/9asQC/ u01VlTrYCcwY0wqc0tF4p9Mh/6MnU8gCfMZ72xpT4t4XBW7iioIun5wXqTVmb+ce0aOy qfW0BlP2VTr9wGUiKoOz5gRY3V5QyP4QKrBU0ITm6Bb888yEY+OyGGD0oWaGC7HkmU6k 1qlhxXNwGjdd50ncf/eLhN6qg7s9axKQ+DTz4TkrDQ6hC3VXq9/AYdzwwtk8CiFuQC7v YQbyLU/RmUL5I1UZiYNrNglyiH4q4q0vTsirWYXnISFaxn3DOIHLCtzrWumpaPgyL0+S yt6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5W8ISm/oQ+jXmUs9FPm6ePZT1pA2Sf70v5WNcBCnCoQ=; b=oNMYTMRL6xTOmyCKxUZUbxHJv09vWbmVjSYXhCqjPa3KRzA5+1zosLjR7Q0qXSjIf2 lHTOSL8Ki1oNLxMbzXvTkOQvfs6V5vOCGtw7Ldzwa5ZAORcY73b5efC1SlB2o5U2U+le P8WDa9G3xQzjmnRKeFcweOGmcXHRWzN/Zf6/eZOAq33VfGz3FzTTMssjJa6VQ3cNuXCn ntfvBnRUADrjU+Dadkem6Zo0SIZj5LngvjCP1fXnHkGekb3U3HhEx5mT0L/RW5zDNID4 6pb/I17bLJiS4eUyw3dnnsxJJgKDTUFgEbOMwtIcLPhLkN8bsIDvXtUEn/LPyfls8A/h oCOw== X-Gm-Message-State: AOAM532/FtdCuJ2KK5TKCJy5ytK0LJPuKC+kltr/hGR3hgFcI5a2h8+k 418gyMtl+GRCHTWzrB5EnOgyBqlT+giMlqilnRQAKPjjmxTTd+Uyt7Lk8gpWXs2kRzY0tnP/GpQ vSr1wy2uyPpCd5f/DnH3AiwaS0WMTXPhCi7hL3wV+pN9d4kpKfNUzo7Kr+fH/zmM9xUDaXxR4p4 SdQ50/TARgwRlDfxkFxpDRes4RNa9axGmN2iwT X-Google-Smtp-Source: ABdhPJzilkQnP6cwM29Xef1h+WHDi1A6pRtk8vW7Yz6wL498wVg1ceFTRQmTgJTYrnXNS+le+S2eTg== X-Received: by 2002:a17:90b:3802:b0:1c6:905c:af2e with SMTP id mq2-20020a17090b380200b001c6905caf2emr32688pjb.236.1649104101153; Mon, 04 Apr 2022 13:28:21 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id o22-20020a056a0015d600b004fb03c903c3sm13642338pfu.71.2022.04.04.13.28.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Apr 2022 13:28:20 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: New Object Access Type hooks From: Mark Dilger In-Reply-To: <1975199.1649099110@sss.pgh.pa.us> Date: Mon, 4 Apr 2022 13:28:17 -0700 Cc: Thomas Munro , PostgreSQL-development , Joshua Brindle , Robert Haas , Andrew Dunstan , Jeff Davis , Joe Conway Content-Transfer-Encoding: quoted-printable Message-Id: References: <47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com> <17BD82D7-49AC-40C9-8204-E7ADD30321A0@enterprisedb.com> <1918971.1649091790@sss.pgh.pa.us> <1922986.1649094077@sss.pgh.pa.us> <1923706.1649094673@sss.pgh.pa.us> <1925660.1649095626@sss.pgh.pa.us> <2BD8BDA8-A963-4D64-8B69-8F7EDF9AEA2D@enterprisedb.com> <1974785.1649098875@sss.pgh.pa.us> <1975199.1649099110@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Apr 4, 2022, at 12:05 PM, Tom Lane wrote: >=20 > I wrote: >> The "terminating connection" warning absolutely should get through, >=20 > ... oh, no, that's not guaranteed at all, since it's sent from = quickdie(). > So scratch that. Maybe we'd better add "could not send data to = server" > to the regex? If it fails in pqsecure_raw_write(), you get either "server closed the = connection unexpectedly" or "could not send data to server". Do we need = to support pgtls_write() or pg_GSS_write(), which have different error = messages? Can anybody run the tests with TLS or GSS enabled? I assume = the test framework prevents this, but I didn't check too closely.... Is it possible that pgFlush will call pqSendSome which calls pqReadData = before trying to write anything, and get back a "could not receive data = from server" from pqsecure_raw_read()? It's a bit hard to prove to myself which paths might be followed through = this code. Thoughts? =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company