jsonb array-style subscription

Поиск
Список
Период
Сортировка
От Dmitry Dolgov
Тема jsonb array-style subscription
Дата
Msg-id CA+q6zcX3mdxGCgdThzuySwH-ApyHHM-G4oB1R0fn0j2hZqqkLQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: jsonb array-style subscription  (Michael Paquier <michael.paquier@gmail.com>)
Re: jsonb array-style subscription  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Hi,

Here is a reworked version of patch for jsonb subscription.
There weren't many changes in functionality:

=# create TEMP TABLE test_jsonb_subscript (
       id int,
       test_json jsonb
);

=# insert into test_jsonb_subscript values
(1, '{}'),
(2, '{}');

=# update test_jsonb_subscript set test_json['a'] = 42;
=# select * from test_jsonb_subscript;
 id |        test_json         
----+--------------------------
  1 | {"a": 42}
  2 | {"a": 42}
(2 rows)

=# select test_json['a'] from test_jsonb_subscript;
 test_json  
------------
 {"a": 42}
 {"a": 42}
(2 rows)

I've cleaned up the code, created a separate JsonbRef node (and there are a lot of small changes because of that), abandoned an idea of "deep nesting" of assignments (because it doesn't relate to jsonb subscription, is more about the
"jsonb_set" function, and anyway it's not a good idea). It looks fine for me, and I need a little guidance - is it ok to propose this feature for commitfest 2016-03 for a review?
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Trivial fixes for some IDENTIFICATION comment lines
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby