Re: what is the best way to access cold data on another server? - Mailing list pgsql-general

From Laurenz Albe
Subject Re: what is the best way to access cold data on another server?
Date
Msg-id 4871eb5b1c5127c3c0113cc0da889b93c29afc9b.camel@cybertec.at
Whole thread Raw
In response to what is the best way to access cold data on another server?  (Amine Tengilimoglu <aminetengilimoglu@gmail.com>)
List pgsql-general
On Wed, 2020-05-13 at 10:12 +0300, Amine Tengilimoglu wrote:
> In addition to the actively used data, there are other data that are very little accessed.
> I want to separate the less used data to save space and reduce maintenance operations.
> I want to use a separate postgres instance for this. Now the question is; How do I link
> these two instances? postgres_fdw or dblink? or what other solution? Which one would be better?

Foreign Data Wrapper is a good option, and yes, it is secure.

Another option would be to store these data as CSV files and use file_fdw
to define them as "external tables".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: Tom Ellis
Date:
Subject: Why is it that “aggregate functions are not allowed in FROM clause of their own query level”?
Next
From: Support
Date:
Subject: Re: Reuse an existing slot with a new initdb