Re: Share variable between psql backends in CustomScan

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Amin <amin(dot)fallahi(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Share variable between psql backends in CustomScan
Date: 2023-02-18 04:25:59
Message-ID: CAFj8pRCxJU5a5=EYyMaQO9ceHcxfoQ8VZBdVr9bS_6dAduNAfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

so 18. 2. 2023 v 1:37 odesílatel Amin <amin(dot)fallahi(at)gmail(dot)com> napsal:

> Hi,
>
> I am looking for a way to define a global variable in CustomScan plugin
> that is shared between different psql backends. Is it possible without
> using shared memory? Does postgresql implement any function that
> facilitates this?
>

No - there is nothing like this. You need to use shared memory.

Regards

Pavel

>
> Thank you,
> Amin
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2023-02-18 04:52:54 Re: Move defaults toward ICU in 16?
Previous Message Amit Kapila 2023-02-18 04:01:30 Re: pg_upgrade and logical replication