From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Amine Tengilimoglu <aminetengilimoglu@gmail.com>
To: " <pgsql-general@postgresql.org>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: what is the best way to access cold data on another server?
Date: Wed, 13 May 2020 13:35:06 +0200
Message-ID: <4871eb5b1c5127c3c0113cc0da889b93c29afc9b.camel@cybertec.at> (raw)
In-Reply-To: <CADTdw-yP_n1zDWPzNhBMe4z2siSoeU9rX4M7DLZCbtJfs1ThDQ@mail.gmail.com>
References: <CADTdw-yP_n1zDWPzNhBMe4z2siSoeU9rX4M7DLZCbtJfs1ThDQ@mail.gmail.com>
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
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-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, aminetengilimoglu@gmail.com, pgsql-general@postgresql.org
Subject: Re: what is the best way to access cold data on another server?
In-Reply-To: <4871eb5b1c5127c3c0113cc0da889b93c29afc9b.camel@cybertec.at>
References: <CADTdw-yP_n1zDWPzNhBMe4z2siSoeU9rX4M7DLZCbtJfs1ThDQ@mail.gmail.com> <4871eb5b1c5127c3c0113cc0da889b93c29afc9b.camel@cybertec.at>
* 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