Skip to content

Instantly share code, notes, and snippets.

@Hywan
Created August 28, 2019 14:15
Show Gist options
  • Save Hywan/10c85eeee796fc8d8161c28bb0124a1c to your computer and use it in GitHub Desktop.
Save Hywan/10c85eeee796fc8d8161c28bb0124a1c to your computer and use it in GitHub Desktop.
How to install postgres-ext-wasm
$ # Build the shared library.
$ just build
$ # Install the extension in the Postgres tree.
$ just install
$ # Activate the extension.
$ echo 'CREATE EXTENSION wasm;' | \
psql -h $host -d $database
$ # Initialize the extension.
$ echo "SELECT wasm_init('$(pwd)/target/release/libpg_ext_wasm.dylib');" | \
psql -h $host -d $database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment