Re: Share variable between psql backends in CustomScan - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Share variable between psql backends in CustomScan
Date
Msg-id CAFj8pRCxJU5a5=EYyMaQO9ceHcxfoQ8VZBdVr9bS_6dAduNAfA@mail.gmail.com
Whole thread Raw
In response to Share variable between psql backends in CustomScan  (Amin <amin.fallahi@gmail.com>)
List pgsql-hackers
Hi


so 18. 2. 2023 v 1:37 odesílatel Amin <amin.fallahi@gmail.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

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pg_upgrade and logical replication
Next
From: Pavel Stehule
Date:
Subject: Re: Move defaults toward ICU in 16?