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 1oOlWm-0007ad-4B for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 19:50:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oOlWj-0007XD-Mx for pgsql-general@arkaria.postgresql.org; Thu, 18 Aug 2022 19:50:01 +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 1oOlWi-0007Ua-3z for pgsql-general@lists.postgresql.org; Thu, 18 Aug 2022 19:50:01 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOlWc-0004y2-Ea for pgsql-general@postgresql.org; Thu, 18 Aug 2022 19:49:59 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 584AF32009B4; Thu, 18 Aug 2022 15:49:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 18 Aug 2022 15:49:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1660852188; x= 1660938588; bh=Bi29daL+sNqiSTZO53v8gntm3ySRKSna8BH9OWLKOso=; b=S ihEOQoxlLDGV7QpZvyqzB4FF3XVfz8lbf3d5sLIVMivBCpBcJ+fYEiRZwsb8Zh5o yn1ZX8pbzc9LE5apRJx9aDGiW6DuYBivFLuf6QO6ShBKGg5RuXVuV5kgBDxhOIbb 6CXqU7Gp9/JORxOxRxJpKxE+Ri7S2X2cA7Tf3wvVXMT53T9LqvXNPizI8lk7Y0e6 Evq62W31A5keWWxXxvVH4PUFZnRhjxdXZE88lZnYiqPXIGy4ibM4ybydp6jeFUZ3 xVvu/DNc72AmkIOJ9EZu1tEfScHg+Ron5ddeht7UStBUSB92IvUP+KJzuRkemvWg 2DyB7kqY6dHghNTRqF02Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660852188; x= 1660938588; bh=Bi29daL+sNqiSTZO53v8gntm3ySRKSna8BH9OWLKOso=; b=Z UiPB+gzyQzgYM3wL71TVqDzl7bClCwmGhnA+jkNLg/zu94MH25cLU5ZdBmT37+4d GsFgEwo8VeDraoUOy4f0qw1UjTNnYjTXdA/mTB7wjHd6c7oUhQSj73QXmEqJyUYt kTphRrwNFV2U2nqjn6VmeL7AYB9kK9USKSsSkjZe005JmwPGE1tBoMLmA8CxvgWH ThE5t/hdmGZB1WaQp/uOGJJcrPdlSE/6MAUsSFHAolWSUR4yPs9Hv0TMIiBFOEBr 9mpGyUzRyRNjl9IGcUCRvoEOSWrnF9X/8hciEPrURkpgruEeQivaNzM3K6AR3SBj flSu4UPRHdWnJqXZwZkPg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehledgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htkeertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhephfegve ekfeelffdvgfdvfefftdeujeehheeuieffhfefiefhvdfhgfetgfdvuefgnecuffhomhgr ihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghr rdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Aug 2022 15:49:47 -0400 (EDT) Message-ID: Date: Thu, 18 Aug 2022 12:49:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: Fwd: Data caching Content-Language: en-US To: Anant ngo , Anant ngo Cc: pgsql-general@postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/18/22 09:39, 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. Cursors? https://www.postgresql.org/docs/current/sql-declare.html "A cursor created with WITH HOLD is closed when an explicit CLOSE command is issued on it, or the session ends. In the current implementation, the rows represented by a held cursor are copied into a temporary file or memory area so that they remain available for subsequent transactions." > > I have seen the 44 postgres extensions that come pre-installed with > ubuntu 16.04 but none of them do this. > > Thanks. > Anant. -- Adrian Klaver adrian.klaver@aklaver.com