Share variable between psql backends in CustomScan

Поиск
Список
Период
Сортировка
Искать

Share variable between psql backends in CustomScan

От:
Amin <amin.fallahi@gmail.com>
Дата:
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?

Thank you,
Amin

Re: Share variable between psql backends in CustomScan

От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
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
FAQ