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 1sreRC-003ZOt-Qq for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 14:16:47 +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 1sreR9-007AD4-Ia for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Sep 2024 14:16:44 +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 1sreR9-007ACt-A8 for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 14:16:44 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sreR3-000BS2-88 for pgsql-bugs@lists.postgresql.org; Fri, 20 Sep 2024 14:16:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 48KEGW8l2422973; Fri, 20 Sep 2024 10:16:32 -0400 From: Tom Lane To: evgeni@golov.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18625: user-created extensions change ownership to "postgres" after upgrade In-reply-to: <18625-77d1e2609972c616@postgresql.org> References: <18625-77d1e2609972c616@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 20 Sep 2024 12:42:37 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2422971.1726841792.1@sss.pgh.pa.us> Date: Fri, 20 Sep 2024 10:16:32 -0400 Message-ID: <2422972.1726841792@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > when upgrading 15 to 16 (but also observed the same on 12 to 13), an > extension that was previously created by a "normal" user is now owned by > "postgres": Yeah, this is a known shortcoming --- pg_dump doesn't make any effort to preserve ownership of extensions. Nobody's really been motivated to do something about that. regards, tom lane