supabase / pg_jsonschema

PostgreSQL extension providing JSON Schema validation
Apache License 2.0
1.03k stars 30 forks source link

upgrade to latest pgrx (v0.8.4) #27

Closed eeeebbbbrrrr closed 1 year ago

eeeebbbbrrrr commented 1 year ago

We had a question on our Discord about pg_jsonschema not being on the latest pgrx. Now it is!

Edit: Tests pass locally.

running 8 tests
    Building extension with features pg_test pg15
     Running command "/home/zombodb/.rustup/toolchains/1.67.1-x86_64-unknown-linux-gnu/bin/cargo" "build" "--features" "pg_test pg15" "--no-default-features" "--message-format=json-render-diagnostics"
  Installing extension
     Copying control file to /home/zombodb/.pgrx/15.3/pgrx-install/share/postgresql/extension/pg_jsonschema.control
     Copying shared library to /home/zombodb/.pgrx/15.3/pgrx-install/lib/postgresql/pg_jsonschema.so
    Finished installing pg_jsonschema
The files belonging to this database system will be owned by user "zombodb".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /home/zombodb/_work/pg_jsonschema/target/pgrx-test-data-15 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... America/New_York
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /home/zombodb/.pgrx/15.3/pgrx-install/bin/pg_ctl -D /home/zombodb/_work/pg_jsonschema/target/pgrx-test-data-15 -l logfile start

test tests::pg_test_json_not_matches_schema_rs ... ok
test tests::pg_test_jsonb_not_matches_schema_spi ... ok
test tests::pg_test_jsonb_not_matches_schema_rs ... ok
test tests::pg_test_json_matches_schema_rs ... ok
test tests::pg_test_jsonb_matches_schema_rs ... ok
test tests::pg_test_json_matches_schema_spi ... ok
test tests::pg_test_jsonb_matches_schema_spi ... ok
test tests::pg_test_json_not_matches_schema_spi ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 48.10s
eeeebbbbrrrr commented 1 year ago

good catch on the CI version strings. Thanks.