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 1oOg25-0008LH-Kj for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2022 13:58:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOg24-0006A7-It for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Aug 2022 13:58:00 +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 1oOg24-00069Y-AN for pgsql-hackers@lists.postgresql.org; Thu, 18 Aug 2022 13:58:00 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOg21-0001qY-SP for pgsql-hackers@postgresql.org; Thu, 18 Aug 2022 13:57:59 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oOg1z-0044h4-Nn; Thu, 18 Aug 2022 09:57:55 -0400 Date: Thu, 18 Aug 2022 09:57:55 -0400 From: Bruce Momjian To: Anant ngo Cc: anant.iet.f@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Data caching Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 18, 2022 at 04:12:45PM +0530, Anant ngo wrote: > Hello > > Is there a postgres extension or project related to application-level/ > foreign-table data caching ? The postgres_fdw extension fetches data from > foreign table for each command. > > I have seen previous messages in archive about caching in form of global temp > tables, query cache etc. There are good discussions about whether support > should be built-in but did not find any implementation. > > I have seen the 44 postgres extensions that come pre-installed with ubuntu > 16.04 but none of them do this. You can do foreign-table data caching via materialized views: https://momjian.us/main/blogs/pgblog/2017.html#September_1_2017 Also, this is more of a question for pgsql-general@postgresql.org. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson