From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of John R Pierce
the process ID is unique for each active session. of course, the OS can recycle a PID when a process/connection terminates [dmb>] Thanks for the idea, but I’m wary of using PID for that purpose. [dmb>] In the Python implementation the GD appears to just be stored as a simple variable at file scope in the DLL. Would I be right in saying that the language handler DLL is loaded exactly once for each session (when the language is first used)? If so, then any unique identifier allocated in PG_init (such as a GUID or timestamp or counter) would seem to serve the purpose. I just wondered if there was something clever I hadn’t found out about yet. Regards David M Bennett FACS Andl - A New Database Language - andl.org |