Changed cache fucntion info storage from string key->LUA_REGISTRYINDEX value to postgres hash table,
this should speed look up time for cases like "select function() from ...many rows" and reduce time for creating/reindexing functional indexes
Unfortunately it is not possible to make pointer to a lua function...
Some function behaviour (load/reload) might be changed, and I couldn't find any docs how function caching should work inside sql servers.
Changed cache fucntion info storage from string key->LUA_REGISTRYINDEX value to postgres hash table, this should speed look up time for cases like "select function() from ...many rows" and reduce time for creating/reindexing functional indexes
Unfortunately it is not possible to make pointer to a lua function...
Some function behaviour (load/reload) might be changed, and I couldn't find any docs how function caching should work inside sql servers.
Please let me know if this patch breaks anything.