by orf · 13y ago · 0 comments
I wonder if it would be possible to plug a python/node interpreter into that.
Sure, why not?
This is a great feature because it is a significant extensibility improvement. And that's what postgres is really about: the idea that any user/developer with an idea has many powerful APIs that can help them achieve that without waiting for anyone else to agree that the idea is good.
Looks like it just takes a C function pointer, if you can call whatever from C you're done (you can embed Python, no idea for Node).
Looks like this is mostly for postgres extension modules though (e.g. foreign data wrappers), it's not for applications (postgres clients).