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.96) (envelope-from ) id 1wFfnQ-005QHl-1X for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 22:11:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFfmQ-00FYE4-2I for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 22:10:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wFfmQ-00FYDv-1P for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 22:10:46 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFfmN-00000002Jju-19aO for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 22:10:45 +0000 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-89f87257904so49087676d6.1 for ; Wed, 22 Apr 2026 15:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776895842; cv=none; d=google.com; s=arc-20240605; b=dfSMLqc0qrtviro0fBBNOM3v7JvbosjojNFHrlZx1ldae/BEfNh8e2MIHrhouaxfox 16AFRVBQR8Kb0+rXAMu8pzPGrjmN5Z79m9IBHP52SfrLC3dYcOa5k/rReJlE+kIVSHOE BOZQm7w8BFtuyUnmsbIL54QzXA1J8WX5UDOhvvhdHQ+5JWmWmYOB6g/kHRCpu8X2rcfK 90FtjGESYOG/15GSxZy1rRUw66Z9qq76E62IW/onENbcUXC2cnWJiCMu8E5EZ/yH/CSD VGsZZU8b3kYGGIxAxYxtTsrG8/PERSdHB4W1/YR9xv9lCplrqY7miVzKU8K3Bi9TPs0n GfxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v5DmQB1N3KrCAykA2GKvnb1SUekO+DG5RaTgAPji6Ik=; fh=GYtCnfEChXTZ6yOR2M0yhNMj61wLpRX8aQIV5RELztY=; b=Ebqwu3QuTB0t4AZpNkvhmu9etw6SH5MMSHoQzMJCjJQlihJSeWFfKf1juT/0G+bmSK S2wUH960vJG6ySXY7ibkTNxrsStoj7+miWHRqsdzEWMVd8ZBeY+MlWlAC60+Fu/xhWUb PR+pw+F8G5UXzFmeM62w3yF7AjjgzBdyPLxL2i4I6jA+HFOcKMYKtMyPvg57G/EFFpBF +gKNcyegs17DKhKigFeT3B4CXAod4Q1kczHqWCwnHS9bb/qsHlCYsGChUiMmPM4Lupu8 zsL5dpchsHrFUtcFC/dFHwi/2s756O51v5rIAL4lzVu+xj+pOTyNTvEri5VMiVybTCyY DExQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1776895842; x=1777500642; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v5DmQB1N3KrCAykA2GKvnb1SUekO+DG5RaTgAPji6Ik=; b=fn8/V72yqECoVUIkKGEd7U0s8u7RAhXFNETOAV683eoU9hnEAnFRfij7vOdcdxDK8N 2lw9+LeFoUEuc6YUYTYVEPqLp4sfURRnWUBr8Qw8w4w1Uu/tpxo4v9tapdifb1QyI2gP BzLd7bW3lgMhSl0rrzVhC4+0Wx0sB3P4u8UIm6jSgN+SITezf34vJzzKxj1Q3WqlECry t7B/ivqzgjXFbiGSAmAalqEZC58617MOYwKIZOST922hTLd+9qgeB+TeRKV2/r05jaT9 NzNgYgAOu2Cioqgkf3SNpbFLfNQRmmQFctlddM4JSCYoqreaxSLW0sMp6K+oB5LuwrAx 7uPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776895842; x=1777500642; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=v5DmQB1N3KrCAykA2GKvnb1SUekO+DG5RaTgAPji6Ik=; b=jXI+a1zTONIJpDhmb9+c1J9oN3iKnhiqV2KmVldp3xEnbq68rsqx3FC5fDe4xmeX+C dnzzSG5lhWxENf7hPMnsjcXtWQPmlVOisyfzlSWM7FlpkbaY7Jk78APmJAqy0aZxylTH v9dt5Q1UANJ+B9pILqIJ/rUzTh2HImNQkZJ/UZ7s4mIddKEJeJvt7vwDU4Xw9G7k5dMR p36Nm5RUThaef5yN43mho2Yga0uMZnqOasXYvQeMbSmVIoivIkA5JG1IwpkQpXxjsYrX PiZY5ZgUhs4EDhe9+Ds2oDxN4AgjyBmF/NEZ6boaL5OCmisf2SpuOuun4jV9ecZwbo4X 2izA== X-Gm-Message-State: AOJu0Yyw++gm5QSuoESfvNsH/vEkbsHiPEeD5f9lXI8qs/08nHqj1ndL ediuz3ul/Om+3qXfgzWs1bYjh+UjobVrzXLcXHit1KJiZt9XRkFy7Qx/tyFFtEuz+FH7qU3C8pD X1KSQS2aEU9DR4kXvXVkjgZoAHc5KBop2pinofgwRGraX5Cv8mLezp/a7 X-Gm-Gg: AeBDievda72YyGGqleNP4vz20D2Dt0Mvg5tG4AVODRwoavTGtx115S9MRNCwR/Y00Kx +AzttrnvQiEkqLNji/v+TFokZr3cCBx1ZHlXfNGd3Vaujhdq9BEy/l+xck9kd1MK8cdmX/1wiS9 NwwFU9ghqvAtkQCSAkcE8RmM6SsYVFmKAwCjJTOTBvBcBuHLIIfSKzs2cR2Yrv6SZ5m1+b2TNGt 4nsc4YyLPTwd9SAjH8Pw5oHahIAjIbl8JUJ6HSBR9UeV2IFVmexCeD4CvENaUAnbWs4S7pTIS1u DZs2P4z+yxoy2dHx4wLK X-Received: by 2002:a05:6214:451a:b0:8aa:a025:78e3 with SMTP id 6a1803df08f44-8b027fd1cc8mr422556956d6.6.1776895842608; Wed, 22 Apr 2026 15:10:42 -0700 (PDT) MIME-Version: 1.0 References: <1309665.1776885833@sss.pgh.pa.us> In-Reply-To: <1309665.1776885833@sss.pgh.pa.us> From: Jacob Champion Date: Wed, 22 Apr 2026 15:10:31 -0700 X-Gm-Features: AQROBzBdwqZD0pk1mENdX6sUteM07t3G2pw0jv5zdxZKJ6oQNsXLYTBU2mmDcVI Message-ID: Subject: Re: PostgreSQL 17: Bug in libpq when libpq is dlopened/closed multiple times To: Tom Lane Cc: PostgreSQL Hackers , Daniel Schreiber 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, Apr 22, 2026 at 12:23=E2=80=AFPM Tom Lane wrote= : > I agree that we have no real ability to guarantee that. > Still, as far as the presented patch goes, it seems like a clear > win so I'd vote for fix-and-backpatch. Sounds good to me. > Should we write the arguments as BIO_TYPE_NONE | BIO_TYPE_SOURCE_SINK > rather than just BIO_TYPE_SOURCE_SINK? Good question... Popularity-wise, the shorter spelling shows up across quite a few projects on GitHub, but the only spelling of `BIO_meth_new(BIO_TYPE_NONE | ...)` that I can find is a single place inside OpenSSL's own test suite -- which also uses the shorter alternative, in two places. So my vote is BIO_TYPE_SOURCE_SINK; we'll be in good company. Thanks, --Jacob