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 1uSIF9-005oWx-Ej for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 16:36:03 +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 1uSIF7-00CqBX-EJ for pgsql-general@arkaria.postgresql.org; Thu, 19 Jun 2025 16:36:02 +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 1uSIF7-00CqBP-34 for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 16:36:01 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uSIF5-002ygs-1n for pgsql-general@lists.postgresql.org; Thu, 19 Jun 2025 16:36:01 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-607cf70b00aso1698377a12.2 for ; Thu, 19 Jun 2025 09:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1750350957; x=1750955757; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=78b8IAVBaHpKddR5ZJuWClqlhLVBOVXhmW6GIgJtemY=; b=foD0DD1vCePxw0Ou1T1NpYj/nEazXniP5me7ruXQul9z1S7KmJbztTDs5VB0pWIRls 2DQ7GefKlKCqV7TMB57b3mN+c/wsACVjvYnD4wHswGsqkfRs3TLxMY44hYHTOU3LQw/c K1gr0dNi1y9lnTqGnumi6iQCcxJBeRn1ExA4k65dYjmyAr90XU0DigAkvUDdVlogjwdD IRAfPfcdcAVLlvZ6raQNMijY3NJVRdCq7lt5hSos1+4wtFn/ihQuBhIGSlgUMwQmHLBU nTh8h/bSHT58fQNgHeogVFDCw0jb7BUfyRDyiUC6aCzTqHFRk/zpmeubj8eZbvYvy/vd ugig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750350957; x=1750955757; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=78b8IAVBaHpKddR5ZJuWClqlhLVBOVXhmW6GIgJtemY=; b=GKASTKFLaTTbbMMu8Pjn9gGoUqUoeu6RigAciB4vWYjn6fYQkRcLf3aYbMbCtf+GuF KcV/iDmjH266Fuqyn5GDojkS+cIXUV3IqK/+1ui4B0oNwSryUKmkUeEOjiiE8a0qSKUc F3tI7EqTgAm20xp5w/pPseyzivrxS9JvVgk8WZ3agkd9B5HFuFXRHCmQYWWxmOnM5T9c xzCYMNUEIDNJJvJc2cKlLFipHEM74EGU1hqMVZhMNmwxeWPeZdBk/8foyX0Is5mqdV4R wnh3yzpVtOawtFOiKKR26E8Y4bn9WKoc0wCJTetgpywh1AVWabOKcflRtyh+lkYZIHY+ CvBA== X-Forwarded-Encrypted: i=1; AJvYcCWhdrQYj0aVdWQxkmt/uoQrRtKyPDkg7lv7Wdax5c5cyYl9W3E2uBjieWUwO5Y65puQJisXCUs+hdx1c2kP@lists.postgresql.org X-Gm-Message-State: AOJu0YxSEzNkWKDKLH4QVS4TeV4eLkwymSp1YzbpPngFdm1RmJhAXl7n 6VBkC061oiVcApfkz7hTXSOkQpIHdEsuPF6ESF4Bvajjf7SAQ9ljbEDZc0hU0HFi9FE= X-Gm-Gg: ASbGncu5h0fpAAAWO3LHMEf5oxwxwgsYQKDU6yra/4S8li8k1MNjXCI4MiClL5/IdfR RrJePQyQ4ceH7hJc8IqFDSDOPT+abXSqDrO0gJaASp/vB6eKT9FF8JZH29pIME5HCFoKEwtI28V 5WKgRJmH/wdznSmlTRut4Xj4487HB+clbmf1BX0DzZWPy0dHNWmieW6O0hMLeHDVE99Ci6tMbCZ /D5CCLvtd6Qca+6zQk6TS84zY+uZN44+U+CpaXn3lgRXywo2JH+c+StbLku8HC/+FTcloUJlWl1 pRUAbgFDcSSolZ1mJykJB9+os+pVMBsW/LdMUxhZx4eJ5RDU8ZQ39q2Pack/vyQySwGidGLefdk PIswPz26z5npVzDsU X-Google-Smtp-Source: AGHT+IH5+PpqnVS6yXBqDVYgDZ9CJcPtJ6/1fOXHYynOAa38AYBeWa87TmOtF3OYQlnZ1BnPy3DDcw== X-Received: by 2002:a17:906:9f8c:b0:ad5:45d6:5fd5 with SMTP id a640c23a62f3a-adfad53b7a6mr2087812066b.30.1750350956841; Thu, 19 Jun 2025 09:35:56 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:255:52d3:3ac8:61ab:b634:342]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae0542035ddsm13749266b.147.2025.06.19.09.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 09:35:56 -0700 (PDT) Message-ID: <3318006a000e05360c487189bf8abe5c40732ce3.camel@cybertec.at> Subject: Re: Extension disappearing act From: Laurenz Albe To: Dominique Devienne , pgsql-general@lists.postgresql.org Date: Thu, 19 Jun 2025 18:35:55 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-06-19 at 15:09 +0200, Dominique Devienne wrote: > Hi. Little mystery we don't understand. v17. >=20 > 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 d= rops. > We did a LIBPQ trace of the command to does all the drops, > and there's no explicit drop of the extension. >=20 > All of the above is done using a LOGIN role that has CREATEROLE and CREAT= EDB. >=20 > 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. So are we. Why do you keep us guessing instead of posting a reproducer? Yours, Laurenz Albe