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 1u7cBz-002Xmj-1L for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 15:39:19 +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 1u7cBx-007Klg-8Z for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Apr 2025 15:39:18 +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.94.2) (envelope-from ) id 1u7cBw-007KlV-VI for pgsql-hackers@lists.postgresql.org; Wed, 23 Apr 2025 15:39:17 +0000 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7cBv-001YWZ-12 for pgsql-hackers@postgresql.org; Wed, 23 Apr 2025 15:39:16 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4ZjNZ76RL2z9tFN; Wed, 23 Apr 2025 17:39:11 +0200 (CEST) Date: Wed, 23 Apr 2025 17:39:08 +0200 From: Christoph Berg To: Jacob Champion Cc: Jelte Fennema-Nio , Peter Eisentraut , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , Devrim =?iso-8859-1?B?R/xuZPx6?= Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER Message-ID: Mail-Followup-To: Christoph Berg , Jacob Champion , Jelte Fennema-Nio , Peter Eisentraut , Andres Freund , Tom Lane , Bruce Momjian , PostgreSQL Hackers , Daniel Gustafsson , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , Devrim =?iso-8859-1?B?R/xuZPx6?= References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4ZjNZ76RL2z9tFN List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Jacob Champion > - Per ABI comment upthread, we are back to major-minor versioning for > the shared library (e.g. libpq-oauth-18-0.so). 0001 adds the macros > and makefile variables to make this easy, and 0002 is the bulk of the > change now. This will cause problems when programs are running while packages are updated on disk. That program then tries to dlopen 18-0.so when there is already 18-1.so installed. Relevant when the first oauth connection is made way after startup. This is trading one problem for another, but within-a-major ABI changes should be much rarer than normal minor updates with applications restarting only later. Alternatively, there could be a dedicated SONAME for the plugin that only changes when necessary, but perhaps the simple "18.so" solution is good enough. Christoph