Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n59Ht-0001zz-Tu for pgsql-general@arkaria.postgresql.org; Wed, 05 Jan 2022 16:37:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n59Hr-0006lP-Iv for pgsql-general@arkaria.postgresql.org; Wed, 05 Jan 2022 16:37:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n59Hr-0006lG-8t for pgsql-general@lists.postgresql.org; Wed, 05 Jan 2022 16:37:19 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n59Ho-00024o-Rh for pgsql-general@lists.postgresql.org; Wed, 05 Jan 2022 16:37:18 +0000 Received: by mail-ed1-x533.google.com with SMTP id w16so164467525edc.11 for ; Wed, 05 Jan 2022 08:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=GMw4fZlAICVlorb1VNnHpONOeQFZTuFvnw+spPnntzA=; b=hdPGj+JFQg/PgL6MN/18DQRCc7NJOL3VLj1nSy/5zBSr+82fbA852s3211sqaBSPsp 101eglgoAt+LyS/jQRQdVYmWJeVDvX6ZzPRdBB138I966TDScVuxOb60CbjfNiA1HbL3 5PgDRzNKzTCBoCLlmVO+D7IWFfK0musUPX+LFnZXl4OHl74m8o3r6z9NeTeAZdL4tz5r oGAsSfnw4HVviKDAnLMNCh5vLEMGsOsKE2sXB1MkSpD1Hw7u8va6+kKDQPsDsiyU61tg bCnIp2F4a9SMsdrzkaodMgFdK38Iyc9ZZwS9jUZme+OL3sxZ3GGwv3y446jsuG08sv4c EBxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GMw4fZlAICVlorb1VNnHpONOeQFZTuFvnw+spPnntzA=; b=OXn5NidiH4dxAVCnlHxNh9bD8XFSviSgkdUIzccitsmZqi1TklILPZii2Lpjv9tQ2E oolKqZtcpVv7Xd/TWYTHHXLiJXVM8c0AtYEPdTb4ZmXMBNG9EUkv270nss5oxP5W5qMP A7fI3G2eFEa0A9bP4va/wfSzCpcGLl6qdn6m1jQRn/F/eA9b8a2TwqrZ14/OJYTWC5xc Ujj89wfqrGde+fbybosjp8HFPEx9y7lD31LXDUydzca5uETmEUV3TrvuiCd3Vcmd8Gt5 v3XGE3CjIx0QlbjxW1j9YrN1GE5Hfr4edgHfwrznAuY8WAzMoswT3+XzJauJAbMw7DpJ uFvQ== X-Gm-Message-State: AOAM5324YOzLdDmMoTTlGlvxLDQWpbycegM05sLyanqCCbTUsc/Lw//D r4ERxRwMkvm/5FD1S9cKB1tW41u+v+aAXY7R5UY7B1pURGKiJALxiwvTKWaaNpfGg690Nc7F0CO f1BRq3miAA4tzDzHnO0C26qr8tO40RqwvUGVR6Xti05ph/BdeD14/nlLx53HLDcxYoQau0Vf3T2 gZYeAOFEJdZiiEVWm3ntZgRw1RDwWuOU3jc/wzB8vdhpp/oSeDHX3r X-Google-Smtp-Source: ABdhPJxGaiQYJJKE9GsESKrDHiB0AUzDbFDdJZDRBb6zviellf5RnhbfKu3ViK39zXrhEOahdblwrA== X-Received: by 2002:a05:6402:27ca:: with SMTP id c10mr7379611ede.67.1641400635434; Wed, 05 Jan 2022 08:37:15 -0800 (PST) Received: from [10.137.0.18] (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id g21sm5138819edt.12.2022.01.05.08.37.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 08:37:15 -0800 (PST) Message-ID: <39f8bf99-0cba-912f-8edf-40776954f631@enterprisedb.com> Date: Wed, 5 Jan 2022 17:37:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: Create and access a dictionary type Content-Language: en-US To: Shaozhong SHI Cc: pgsql-general References: From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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