pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Anant ngo <anant.ietf@gmail.com>
To: Anant ngo <anant.iet.f@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Fwd: Data caching
Date: Thu, 18 Aug 2022 12:49:47 -0700
Message-ID: <aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com> (raw)
In-Reply-To: <CA+8+p7KRtbrgZ18OPBoeVcm9jv+_rRBajSKXNRRNG4_V0-x7MQ@mail.gmail.com>
References: <CA+8+p7KjYRqUo3ngFucEspZN9nFydc5k=wJrbNskx8td=p6k9Q@mail.gmail.com>
	<CA+8+p7KRtbrgZ18OPBoeVcm9jv+_rRBajSKXNRRNG4_V0-x7MQ@mail.gmail.com>

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





view thread (4+ messages)

Message-ID: <aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com>
Permalink:  ../aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com/
Also on:    postgresql.org/message-id/aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, anant.ietf@gmail.com, anant.iet.f@gmail.com
  Subject: Re: Fwd: Data caching
  In-Reply-To: <aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com>
  References: <CA+8+p7KjYRqUo3ngFucEspZN9nFydc5k=wJrbNskx8td=p6k9Q@mail.gmail.com> <CA+8+p7KRtbrgZ18OPBoeVcm9jv+_rRBajSKXNRRNG4_V0-x7MQ@mail.gmail.com> <aa9460c4-0b02-6aef-20b5-89ba7a90df94@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox