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 1uSF15-005A4t-Jq for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 13:09: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 1uSF12-00BKUm-Hb for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 13:09:17 +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 1uSF12-00BKUe-6n for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 13:09:16 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uSF11-002tV6-0d for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 13:09:15 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-2db9e29d3bcso250166fac.1 for ; Thu, 19 Jun 2025 06:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750338554; x=1750943354; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=dXLlixNpoKdyk5MaKQ8BlTJp3cBe+kpVxjzweAnZAgs=; b=RY/7qPOszG6s4hOa6dGyq5aCLuy8q5AdGCfJ3WBZZYAX8Fxxu9mj4HzZKdABiDKM7i pCa6B5lbQrjR5QrRTMuwMEdNxdnWe2B2lcxdQStWJrfGFM23ULNNVvET5nzV6rwHPEcH j+I8wFd1BuYe/aLB9VvdU9F5DjGrpeyxAe0k+RS9ghL1SYHin6Cr9R3cxl+hvo+m7TQS KfKNrjutL2TaFrwmavP5JqEdwTKHSiHh36h93DvIIoWJhQkPEQabzDjwgJXPByGpVpj0 L0H0Og5V6u7wXNs5IgJB3RiOnI21OOt6Tpf5HgvU82/bG7puu+LXioqgy9xjobOgtJSs KqXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750338554; x=1750943354; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dXLlixNpoKdyk5MaKQ8BlTJp3cBe+kpVxjzweAnZAgs=; b=bW4ZNB7CLlKuBOdfAmk67mZPL5G5TZuZCgVWVt/U/5MiBAFd/pjh2vbsuiEEEtNA/W bdOvY/kL38GLsU2uMQA//Q1n0WlbZ0TkIda51g7X7UaXC94BGt2m7HjPA7ZprO+B4esR t1Og1Asy77qBxc+55/LVV28LTeOMpAgq+CM8SmP2MCcaJveq3l1PwvlM6OMeHetz1AX/ /VwnoLB/2X8JvXNWC13dNT98tTSw/mPlG5YDOaIqTym93QkFf0i0cB9CiOZUxeiMG70Y zLWcc582ZOsXSXGRySi0cKGktR9JN6270/mL/vXGPzoCg64EY4wp/kYi9e720R2eMJtq PZKw== X-Gm-Message-State: AOJu0YyyqiWo2snB+6Sun23e8R2EwNl5vKeKRx9lVS2K5e8/obo/B8Xc 3FJdPGACwH584uqvXFYLwfpW6wyMqHS83bpGoOhUmCVzyAjQFIqX/c2Zfm12ruoJbek/CICX5Fq MT70/0VBVumKKl2RCKSXDAjh5US/NVcIZxw== X-Gm-Gg: ASbGncu75q/wSj1X+BhYzmb6+litLuvJTT7Vtb5T70K7d7CMzDOSmWpOVxxv2Zxh+cq hqtl2t9Wf6uzcOIrgPm2xmH9xmWWYJA0T4JYMYed9ImbTqHJsOERzCPQMaxmAtQ94+SL9tJDunq 1o5Kib2DioyHTHl9IMlRuA+sHmXwUZN6Vyg0t1nPBssE8HLQ== X-Google-Smtp-Source: AGHT+IFoKvISHBpyv6+ueERuA4YwtzpWL8xgmUPGKGNBYo+v3Mp7MgT7KgzTyC4W3S0Aj/81FVJmX5z/bkkWTK/zp9E= X-Received: by 2002:a05:6870:709c:b0:2d6:103e:e43d with SMTP id 586e51a60fabf-2eaf0b0bc51mr10746957fac.20.1750338554329; Thu, 19 Jun 2025 06:09:14 -0700 (PDT) MIME-Version: 1.0 From: Dominique Devienne Date: Thu, 19 Jun 2025 15:09:03 +0200 X-Gm-Features: AX0GCFte6VTwU94YLZOfl4hVcoHVxV28YE4IrlQFLp9V-LfyCdh7G2o_rhlmc-c Message-ID: Subject: Extension disappearing act To: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. 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. We did a LIBPQ trace of the command to does all the drops, and there's no explicit drop of the extension. All of the above is done using a LOGIN role that has CREATEROLE and CREATEDB. Extensions are not supposed to implicitly disappear, are they? Any idea, what we're missing, that might explain pgcrypto's disappearance? We're stumped for now. TIA, --DD