pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Data caching
4+ messages / 3 participants
[nested] [flat]

* Data caching
@ 2022-08-18 10:42  Anant ngo <anant.ietf@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Anant ngo @ 2022-08-18 10:42 UTC (permalink / raw)
  To: anant.iet.f@gmail.com; +Cc: pgsql-hackers@postgresql.org

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.

Thanks.
Anant.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Data caching
@ 2022-08-18 13:57  Bruce Momjian <bruce@momjian.us>
  parent: Anant ngo <anant.ietf@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Bruce Momjian @ 2022-08-18 13:57 UTC (permalink / raw)
  To: Anant ngo <anant.ietf@gmail.com>; +Cc: anant.iet.f@gmail.com; pgsql-hackers@postgresql.org

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  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Indecision is a decision.  Inaction is an action.  Mark Batterson






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Fwd: Data caching
@ 2022-08-18 16:39  Anant ngo <anant.ietf@gmail.com>
  parent: Anant ngo <anant.ietf@gmail.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Anant ngo @ 2022-08-18 16:39 UTC (permalink / raw)
  To: Anant ngo <anant.iet.f@gmail.com>; +Cc: pgsql-general

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.

Thanks.
Anant.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Fwd: Data caching
@ 2022-08-18 19:49  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Anant ngo <anant.ietf@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2022-08-18 19:49 UTC (permalink / raw)
  To: Anant ngo <anant.ietf@gmail.com>; Anant ngo <anant.iet.f@gmail.com>; +Cc: pgsql-general

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2022-08-18 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-18 10:42 Data caching Anant ngo <anant.ietf@gmail.com>
2022-08-18 13:57 ` Bruce Momjian <bruce@momjian.us>
2022-08-18 16:39 ` Anant ngo <anant.ietf@gmail.com>
2022-08-18 19:49   ` Adrian Klaver <adrian.klaver@aklaver.com>

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