Re:Show HN: Pg_jsonschema – A Postgres extension for JSON va...
by westurner on Thursday July 21, 2022 @08:07PM
(#32186878)
You could cost the stored procedures' deployment costs in cryptographically-signed-redundant-data-storage bytes and penalize unnecessary complexity by Costing Opcodes (in the postgres database ~"virtual machine runtime", which supports many non-halting programming languages; such as rust, which is great to see.) and paying for redundant (smart contract output) consensus where it's worth it.
TIL about https://github.com/mulesoft-labs/json-ld-schema: "JSON Schema/SHACL based validation of JSON-LD documents". Perhaps we could see if that's something that should be done in pgx or in the application versions deployed alongside the database versions?
If CHECKs are causing perf issues, then okay maybe put the problematic ones somewhere else.