Extension disappearing act - Mailing list pgsql-general

From Dominique Devienne
Subject Extension disappearing act
Date
Msg-id CAFCRh-_TQagsob_YH0nXktwhuBftNaiZ_VZ4REhZdSEkWXVKXg@mail.gmail.com
Whole thread Raw
Responses Re: Extension disappearing act
Re: Extension disappearing act
Re: Extension disappearing act
List pgsql-general
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



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Retrieving current date
Next
From: Ron Johnson
Date:
Subject: Re: Retrieving current date