storing plpython global pointer
От | Szymon Guz |
---|---|
Тема | storing plpython global pointer |
Дата | |
Msg-id | CAFjNrYuBE1BqvvHdYCvbfts+D99xvWOaM0i0FEnf2DRWTBgNuA@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: storing plpython global pointer
|
Список | pgsql-hackers |
<div dir="ltr">Hi,<div style="style">I need to store a global pointer for plpython usage. This is a PyObject* which can beinitialized per session I think, as we have to deal with Python 2 and Python 3. This pointer points to a Python constructorof Python's Decimal type, taken from python stdlib.</div><div style="style"><br /></div><div style="style">I'vegot working code, however loading python module each time there is Numeric argument in plpython functionis not very efficient, so I'd like to do it once and keep this somewhere. This has no side effects as this is a pointerto a pure function.</div><div style="style"><br /></div><div style="style">Where should I keep such a pointer?</div><divstyle="style"><br /></div><div style="style">thanks,</div><div style="style">Szymon</div></div>
В списке pgsql-hackers по дате отправления: