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 1uSG6I-005MiB-Oa for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 14:18:46 +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 1uSG6G-00Bmxn-Mm for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 14:18:45 +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.94.2) (envelope-from ) id 1uSG6G-00BmwM-Bs for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 14:18:45 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uSG6E-002xRm-2L for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 14:18:44 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id CCFAC1380563; Thu, 19 Jun 2025 10:18:40 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Thu, 19 Jun 2025 10:18:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1750342720; x=1750429120; bh=XbI+X5ic++6p6uMR4u/SAay5ybs5MC2QhINiq9zm8UQ=; b= BZnDp+9dcHMAe47zoPi55SQS0ey6yIO/9469W0HIQMeBonP+cxiZ5/Irjfe9jn0k TZGS/nKlFTg97NbpgvzDfFH5/7oBw8MaeNKPB52w2+//p3B8yGvCMu1twFzuUfok x4OEkNYtkd6/WTFeVJyVHE3QL5fKHLhPtuIq/XytQYc34aPgkyZ9UcHGRbQyuCB+ uIGllQ2p0ryISvZ/Lr+OJAhnNOCXzWMwPxByPENgqPPUOgTvt9Qrq0NMXoKB/tC9 hbzeR1khz05XIS8qcaf7Gr7Y66PicbsiyEXIghAIScOxMjUi7qGfLMtpO3zBlf/f TyBEqm9NLnqp7xvmZLmgXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1750342720; x=1750429120; bh=X bI+X5ic++6p6uMR4u/SAay5ybs5MC2QhINiq9zm8UQ=; b=ifEmefas/pX/ImJn4 uQwuh73A8lmkxVe5roghPnznrMAjzsSpCeTbkdW1oPGj3J+NOzHUnNO5/Vd3qazc 0Voztd1Vzv2dB0VxrgcksrcRZuzJcjulSOXqJsrNUGTv+bsWPDuiCLbZL/j/bmay 9ZmyoUc0hGOYLJZh75VM31Ua5/06ejMErwJBHCRT5T27y18zUshIYNB8Y/C9/J4O qJtDnLkhX00iB/4i2uCQD86dgjHe9eZhzcPLXru7cxphGlPyNunqP+3TIAiND6VO zXHaL5NO52cX504y4vhF3gGXy46T9L4NJ8YFxb7vjas4ZA6pvknlt8WfU7jXYynQ 3zaAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdehjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghnucfm lhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenuc ggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdelkeeh tdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgt phhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguuggvvhhivghnnh gvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhi shhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Jun 2025 10:18:40 -0400 (EDT) Message-ID: <002c519f-fb22-4ec0-b3e3-719f1d54035e@aklaver.com> Date: Thu, 19 Jun 2025 07:18:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Extension disappearing act To: Dominique Devienne , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/19/25 06:09, Dominique Devienne wrote: > Hi. Little mystery we don't understand. v17. > > Create new DB, owned by dedicated new ROLE. > Create extension (pgcrypto) in our case. Installed in public, owned by > DB owner role. > Create schemas and populate them inside the DB. > This also creates roles associated to those schemas. > One of the schema is owned by the DB owner (in case that matters). > Creates functions using pgcrypto, in some of those schemas. > Drop all schemas (and associated roles), thus pgcrypto-using functins are gone. Does 'all' include the public schema? > Of course, the DB owner role was not dropped. Can't in fact. > Somehow, the pgcrypto extension has disappeared, as side-effects of the drops. Was it in fact installed in the public schema? > TIA, --DD > > -- Adrian Klaver adrian.klaver@aklaver.com