pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: roy@oneaudience.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: how does jsonb_set work?
Date: Wed, 25 Apr 2018 18:55:44 -0400
Message-ID: <20180425225544.GA24468@momjian.us> (raw)
In-Reply-To: <152379992223.31235.17882617912768220310@wrigleys.postgresql.org>
References: <152379992223.31235.17882617912768220310@wrigleys.postgresql.org>

On Sun, Apr 15, 2018 at 01:45:22PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/10/static/functions-json.html
> Description:
> 
> the documentation is missing some information
> 
> how does the jsonb_set function work?
> does it create a whole new json and updates it in the column? or it actually
> only updates the specific key in "path"

jsonb_set() is a function that returns a JSONB value with the fields
changed.  It is up to you to assign it to a column.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




view thread (2+ messages)

Message-ID: <20180425225544.GA24468@momjian.us>
Permalink:  ../20180425225544.GA24468@momjian.us/
Also on:    postgresql.org/message-id/20180425225544.GA24468@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, roy@oneaudience.com, pgsql-docs@lists.postgresql.org
  Subject: Re: how does jsonb_set work?
  In-Reply-To: <20180425225544.GA24468@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox