Postgres Check If Value Is Object