pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sven R. Kunze <srkunze@mail.de>
To: obartunov@gmail.com
To: support-tiger <support@tigernassau.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: update field in jsonb
Date: Sat, 25 Nov 2017 21:00:56 +0100
Message-ID: <ec323314-a7e8-e69a-814e-589ddf234717@mail.de> (raw)
In-Reply-To: <CAF4Au4zDmx5Dx1jdTb8nBFZMLCsCMd7RqMt_m-F7kyXL-ywBAg@mail.gmail.com>
References: <9a1c3dd0-39f0-7da2-61b6-58621a89a288@tigernassau.com>
	<CAF4Au4x4F8UdchvJAdG9KAHHdgCXQyS46iZe4ir-p9-CcRQoZA@mail.gmail.com>
	<e5b4cafd-8b03-87d0-b8f8-ba7b84f663d4@tigernassau.com>
	<CAF4Au4zDmx5Dx1jdTb8nBFZMLCsCMd7RqMt_m-F7kyXL-ywBAg@mail.gmail.com>

On 24.11.2017 12:19, Oleg Bartunov wrote:
> btw, in PG 11 we expect subscription index
>       update test set data[age]= '30';

Out of curiosity:

Why not?

update test set data->age= 30;

It reminds me more of how to query json in PG

select data->age from test;


Cheer,
Sven




view thread (6+ messages)

Message-ID: <ec323314-a7e8-e69a-814e-589ddf234717@mail.de>
Permalink:  ../ec323314-a7e8-e69a-814e-589ddf234717@mail.de/
Also on:    postgresql.org/message-id/ec323314-a7e8-e69a-814e-589ddf234717@mail.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: srkunze@mail.de, obartunov@gmail.com, support@tigernassau.com
  Subject: Re: update field in jsonb
  In-Reply-To: <ec323314-a7e8-e69a-814e-589ddf234717@mail.de>
  References: <9a1c3dd0-39f0-7da2-61b6-58621a89a288@tigernassau.com> <CAF4Au4x4F8UdchvJAdG9KAHHdgCXQyS46iZe4ir-p9-CcRQoZA@mail.gmail.com> <e5b4cafd-8b03-87d0-b8f8-ba7b84f663d4@tigernassau.com> <CAF4Au4zDmx5Dx1jdTb8nBFZMLCsCMd7RqMt_m-F7kyXL-ywBAg@mail.gmail.com> <ec323314-a7e8-e69a-814e-589ddf234717@mail.de>

* 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