Re: Some questions on PostgreSQL 9.6 JSONB

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Wei Shan <weishan(dot)ang(at)gmail(dot)com>
Cc: Keith <keith(at)keithf4(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Some questions on PostgreSQL 9.6 JSONB
Date: 2017-08-30 17:49:28
Message-ID: CAKFQuwb1-hkSiSokxe9bR-keoo5_f-iMdjORXyRHZ=yJo+=kiA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wednesday, August 30, 2017, Wei Shan <weishan(dot)ang(at)gmail(dot)com> wrote:

> Stupid question really,
>
> If I have to specify the entire JSON value, this means that the update
> query replaces the entire row instead of updating a single field. Is this
> correct?
>

The whole row is always replaced. Any values not specified in the update
set list are simply copied over to the new record as-is.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Mariel Cherkassky 2017-08-31 08:07:28 Re: printing results of query to file in different times
Previous Message Wei Shan 2017-08-30 17:26:32 Re: Some questions on PostgreSQL 9.6 JSONB