Created
August 28, 2019 14:15
-
-
Save Hywan/10c85eeee796fc8d8161c28bb0124a1c to your computer and use it in GitHub Desktop.
How to install postgres-ext-wasm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # 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