From: Stelios Sfakianakis <sgsfak@gmail.com>
To: Ian Lawrence Barwick <barwick@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Keeping state in a foreign data wrapper
Date: Tue, 4 Aug 2020 13:21:36 +0300
Message-ID: <113D4B17-B9EA-425A-896C-0095C73FDF8C@gmail.com> (raw)
In-Reply-To: <CAB8KJ=g4oAdvsTO8eFPAmqj=Uh2kL+W4k1fSfvNYgJyG=TXbxg@mail.gmail.com>
References: <C6E9F37F-0D02-4BA4-8BB8-C808A31508A1@gmail.com>
<CAB8KJ=gisTj=QKMJHWZrBjpxaDmt_sjv4F0efw6NiiP_MMqM6A@mail.gmail.com>
<483E8B68-D9DB-4533-BA82-206F41E53626@gmail.com>
<CAB8KJ=g4oAdvsTO8eFPAmqj=Uh2kL+W4k1fSfvNYgJyG=TXbxg@mail.gmail.com>
Thank you again, I have another question in order to make sure I have a clear understanding:
> On 4 Aug 2020, at 11:24, Ian Lawrence Barwick <barwick@gmail.com> wrote:
>
> The hash table is specific to each running backend so will only be
> accessed by that process.
>
> Pre-loading a shared library just gives the library an opportunity to
> set up shared memory etc. You can always try adding one of the FDW
> libraries to "shared_preload_libraries" and see what happens
> (theoretically nothing).
>
My impression was that since each client (e.g. libpq) connection results in the creation of a Postgres process in the backend (https://www.postgresql.org/developer/backend/) then this (mysql) "connection pool" hash table is not global per se and shared among the different client / users sessions. But that defeats the purpose, no?
Thank you
Best
Stelios
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: sgsfak@gmail.com, barwick@gmail.com
Subject: Re: Keeping state in a foreign data wrapper
In-Reply-To: <113D4B17-B9EA-425A-896C-0095C73FDF8C@gmail.com>
References: <C6E9F37F-0D02-4BA4-8BB8-C808A31508A1@gmail.com> <CAB8KJ=gisTj=QKMJHWZrBjpxaDmt_sjv4F0efw6NiiP_MMqM6A@mail.gmail.com> <483E8B68-D9DB-4533-BA82-206F41E53626@gmail.com> <CAB8KJ=g4oAdvsTO8eFPAmqj=Uh2kL+W4k1fSfvNYgJyG=TXbxg@mail.gmail.com> <113D4B17-B9EA-425A-896C-0095C73FDF8C@gmail.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