pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
how does jsonb_set work?
2+ messages / 2 participants
[nested] [flat]

* how does jsonb_set work?
@ 2018-04-15 13:45 PG Doc comments form <noreply@postgresql.org>
  2018-04-25 22:55 ` Re: how does jsonb_set work? Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2018-04-15 13:45 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: roy@oneaudience.com

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"

thanks


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: how does jsonb_set work?
  2018-04-15 13:45 how does jsonb_set work? PG Doc comments form <noreply@postgresql.org>
@ 2018-04-25 22:55 ` Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2018-04-25 22:55 UTC (permalink / raw)
  To: roy@oneaudience.com; pgsql-docs@lists.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 +




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-04-25 22:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15 13:45 how does jsonb_set work? PG Doc comments form <noreply@postgresql.org>
2018-04-25 22:55 ` Bruce Momjian <bruce@momjian.us>

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