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 1wFfpB-005QJw-1Y for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 22:13:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFfpA-00FaU2-24 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 22:13:36 +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.96) (envelope-from ) id 1wFfpA-00FaTu-17 for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 22:13:36 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wFfp8-00000002Xig-1BPe for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 22:13:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 63MMDSAv1329125; Wed, 22 Apr 2026 18:13:28 -0400 From: Tom Lane To: Jacob Champion cc: PostgreSQL Hackers , Daniel Schreiber Subject: Re: PostgreSQL 17: Bug in libpq when libpq is dlopened/closed multiple times In-reply-to: References: <1309665.1776885833@sss.pgh.pa.us> Comments: In-reply-to Jacob Champion message dated "Wed, 22 Apr 2026 15:10:31 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1329123.1776896008.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 22 Apr 2026 18:13:28 -0400 Message-ID: <1329124.1776896008@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > On Wed, Apr 22, 2026 at 12:23 PM Tom Lane wrote: >> 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. Fair enough. regards, tom lane