Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0Gn6-0006m7-Dt for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Sep 2018 01:51:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0Gn4-0004XY-Hi for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Sep 2018 01:51:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0Gn4-0004XR-Bh for pgsql-bugs@lists.postgresql.org; Thu, 13 Sep 2018 01:51:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0Gn0-0003Gs-NF for pgsql-bugs@lists.postgresql.org; Thu, 13 Sep 2018 01:51:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8D1pJQR005226; Wed, 12 Sep 2018 21:51:19 -0400 From: Tom Lane To: Thomas Munro cc: Andres Freund , Kieran McCusker , PostgreSQL mailing lists Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors In-reply-to: References: <153512195228.1489.8545997741965926448@wrigleys.postgresql.org> <12945.1535123753@sss.pgh.pa.us> <20462.1535424017@sss.pgh.pa.us> <20180902170542.ojz6btqto7b4zix6@alap3.anarazel.de> Comments: In-reply-to Thomas Munro message dated "Thu, 13 Sep 2018 13:42:00 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5224.1536803479.1@sss.pgh.pa.us> Date: Wed, 12 Sep 2018 21:51:19 -0400 Message-ID: <5225.1536803479@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > ... Do we really want to crack down on > extension libraries that wouldn't work in shared_preload_libraries? That is, perhaps, a fair question; but I see little benefit to users in such a library design. Most people who are using a library heavily would likely wish to have it preloaded. > What about hypothetical libraries that are smart enough to avoid > making such calls when they detect that they're running from > shared_preload_libraries -- you'd generate false warnings when loaded > the regular way. I find that argument too thin to take seriously. If the library can manage that, it might as well just postpone the calls all the time, rather than have two different operating modes that would require separate testing. What would be the advantage of the extra complication? regards, tom lane