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 1qiEmG-005e7V-6Z for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Sep 2023 13:59:04 +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 1qiEmE-00100w-2G for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Sep 2023 13:59: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 1qiEmD-00100m-P9 for pgsql-bugs@lists.postgresql.org; Mon, 18 Sep 2023 13:59:01 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qiEmA-005uTT-Sl for pgsql-bugs@lists.postgresql.org; Mon, 18 Sep 2023 13:59:01 +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 38IDwuLo113532; Mon, 18 Sep 2023 09:58:56 -0400 From: Tom Lane To: vasilgiann@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18115: pg_restore of extensions does not respect dependencies In-reply-to: <18115-e1bb51d5c161484e@postgresql.org> References: <18115-e1bb51d5c161484e@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 18 Sep 2023 10:14:35 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <113530.1695045536.1@sss.pgh.pa.us> Date: Mon, 18 Sep 2023 09:58:56 -0400 Message-ID: <113531.1695045536@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: > I have an issue that takes place during restore of a 14.4 database. During > this process creation of extension aws_s3 fails because it depends on > plpgsql extension which it seems to be created later on. I don't know anything about aws_s3, but the only inter-extension dependencies that are tracked by PG are those that are declared in the extension control files (via "requires" entries). Sounds to me like aws_s3 has failed to declare its dependency on plpgsql. regards, tom lane