Re: Create and access a dictionary type

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Create and access a dictionary type
Date: 2022-01-05 16:37:14
Message-ID: 39f8bf99-0cba-912f-8edf-40776954f631@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/5/22 14:36, Shaozhong SHI wrote:
> I just checked operators.  I could not find any operator to set a new
> value given a key.
>

I'd say jsonb_set is what you're looking for.

Postgres does not have a thing that'd match the Oracle feature exactly,
you'll have to adjust your application to use what's available.

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2022-01-05 16:57:34 Re: Create and access a dictionary type
Previous Message Tomas Vondra 2022-01-05 16:35:15 Re: Create and access a dictionary type