Show HN: PLJS – JavaScript for Postgres

  • Interesting. This is now the second DB next to Oracle[1] that can do JS (that I know of). pgSQL and PL/SQL of course still stay relevant but in the Oracle spehere the argument is that you can reuse existing code from NPM. Like this blog post [2] describes how to run an GraphQL endpoint from within the DB.

    [1] https://docs.oracle.com/en/database/oracle/oracle-database/2... [2] https://blogs.oracle.com/developers/post/creating-a-graphql-...

  • What would be the typical use-case? Light data transformation?

    Is there a significant advantage over Rust-based embedded Postgres language like https://github.com/tcdi/plrust which is compiled and a bit more type-safe?

  • What are the advantages to pljs over plv8? I thought the context creation would have been the big one, but it doesn't appear so in the current benchmarks.

    How did the project weigh the intermittent updates of bellard quickjs and the community fork quickjs-ng?

  • Amazing.. Would be nice to have something like that for Redis to replace Lua

  • No npm support is a huge limitation.