'Session local' variables

Поиск
Список
Период
Сортировка
От Nick Johnson
Тема 'Session local' variables
Дата
Msg-id a01fc5d10707012116t350fd88bp6cc0926669addc4@mail.gmail.com
обсуждение исходный текст
Ответы Re: 'Session local' variables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I want to write a contrib module that exports a couple of functions
that PLs (that don't natively support this) can use to set/get
session-local variables. I have a couple of questions:

- Can I simply use a global variable for my hash? Am I correct in
thinking that stored procedures and functions will be executed in the
postgres process assigned to the connection that invokes them, and
therefore each will have its own copy of the global variable?

- How can I get a session-scoped MemoryContext to allocate nodes out of?

Thanks,

Nick Johnson

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: shmctl EIDRM preventing startup
Следующее
От: "Jason L. Buberel"
Дата:
Сообщение: recovery_target_time ignored or recovery always recovers to end of WAL