3 ms·
The "User-defined background workers for automating database tasks" feature sounds very interesting: http://www.postgresql.org/docs/9.3/static/bgworker.html htt
by orf 14y ago
The "User-defined background workers for automating database tasks" feature sounds very interesting:
http://www.postgresql.org/docs/9.3/static/bgworker.html http://www.postgresql.org/docs/9.3/static/bgworker.html
I wonder if it would be possible to plug a python/node interpreter into that.
- masklinn 14y ago> I wonder if it would be possible to plug a python/node interpreter into that. 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).
- jeffdavis 14y ago"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.