By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE TABLE my_table(stats JSONB);
INSERT INTO my_table values ('{"countValue":0}');
UPDATE my_table
SET stats = jsonb_set(stats, '{countValue}', '1');
1 rows affected
1 rows affected
SELECT * FROM my_table
stats |
---|
{"countValue": 1} |