Quantcast
Channel: Is there a way to enforce uniqueness of arbitrary key-value pairs in a JSONB object column - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Evan Carroll for Is there a way to enforce uniqueness of arbitrary...

Failed attempt with Exclusion ConstraintsI don't believe this is possible to do this with exclusion DDL because I don't believe PostgreSQL supports exclusion constraints on text[]CREATE TABLE...

View Article



Is there a way to enforce uniqueness of arbitrary key-value pairs in a JSONB...

I use Postgres JSONB columns to store translations for dynamic content of a multi-language site — locales are keys, translated strings are values ({"en": "Hello", "ru": "Привет"}). There're some rare...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images