Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgo47-00069P-Bg for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Mar 2023 14:43:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pgo46-00024c-7k for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Mar 2023 14:43:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgo45-00024S-VR for pgsql-bugs@lists.postgresql.org; Mon, 27 Mar 2023 14:43:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pgo44-0000jV-M9 for pgsql-bugs@lists.postgresql.org; Mon, 27 Mar 2023 14:43:17 +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 32REhDhQ3169078; Mon, 27 Mar 2023 10:43:13 -0400 From: Tom Lane To: maxim.boguk@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17870: Analyze on remote postgresql_fdw table never finish In-reply-to: <17870-2949e79d1b0a32e5@postgresql.org> References: <17870-2949e79d1b0a32e5@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 27 Mar 2023 07:35:39 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3169076.1679928193.1@sss.pgh.pa.us> Date: Mon, 27 Mar 2023 10:43:13 -0400 Message-ID: <3169077.1679928193@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: > Is it expected that the analyze of foreign table will fetch whole table to > local size (quite a task for 2TB table)? Yes. There's an improvement in the works for v16 (8ad51b5f4). regards, tom lane