Store key-value pairs within a single PostgreSQL value
hstore
extension provides a data type for storing sets of key-value pairs within a single PostgreSQL value. This can be particularly useful when dealing with semi-structured data or when you need to store attributes that don’t warrant their own columns.
Your Nile database arrives with hstore
extension already enabled.
SET nile.tenant_id
to guarantee the operation is performed on the correct tenant: