The first time after building libplsci I can successfully run cargo pgx run:
installing extension
Copying control file to `/Users/borkdude/.pgx/13.0/pgx-install/share/postgresql/extension/plsci.control`
Copying shared library to `/Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so`
Writing extension schema to `/Users/borkdude/.pgx/13.0/pgx-install/share/postgresql/extension/plsci--1.0.sql`
Finished installing plsci
Starting Postgres v13 on port 28813
Re-using existing database plsci
psql (13.0)
Type "help" for help.
plsci=# select * from plsci('(+ 1 2 3)');
plsci
-------
6
(1 row)
plsci=# ^D\q
However, the second time, I get:
$ cargo pgx run pg13
Stopping Postgres v13
building extension with features `pg13`
"cargo" "build" "--features" "pg13" "--no-default-features"
Compiling plsci v0.0.0 (/Users/borkdude/Dropbox/dev/clojure/plsci)
Finished dev [unoptimized + debuginfo] target(s) in 2.83s
installing extension
Copying control file to `/Users/borkdude/.pgx/13.0/pgx-install/share/postgresql/extension/plsci.control`
Copying shared library to `/Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so`
Writing extension schema to `/Users/borkdude/.pgx/13.0/pgx-install/share/postgresql/extension/plsci--1.0.sql`
Finished installing plsci
Starting Postgres v13 on port 28813
Re-using existing database plsci
psql (13.0)
Type "help" for help.
plsci=# select * from plsci('(+ 1 2 3)');
ERROR: could not load library "/Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so": dlopen(/Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so, 10): Symbol not found: _eval_string
Referenced from: /Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so
Expected in: flat namespace
in /Users/borkdude/.pgx/13.0/pgx-install/lib/postgresql/plsci.so
plsci=#