I'm hoping to test a function that I will eventually use in a DOMAIN
to
verify that any given JSONB
object adheres to a certain loose set of
constraints (other JSONB
types will be built on constraints specified in
this DOMAIN
).
As the DOMAIN
will already fail anything that doesn't pass the function, I
did not write the function to raise exceptions, but rather to raise warnings,