create table part (i int) partition by hash (i);
create table part_0 partition of part FOR VALUES WITH (MODULUS 2, REMAINDER 0);
create table part_1 partition of part FOR VALUES WITH (MODULUS 2, REMAINDER 1);
insert into part select generate_series(1,10);
select * from only part_0;
select * from only part_1;архивные логи ДО-момента backup'а уже не нужны
но она ничего не возвращает (данные не показываются)
UPDATE type
SET characteristics = jsonb_insert(
characteristics, array[$1], jsonb_build_object('type', $2, 'measure', $3)
)
WHERE id=$4update type set characteristics[$1] = jsonb_build_object('type', $2, 'measure', $3) WHERE id=$4; Но он только для 14 версии, в у меня 15.
We allocate one map byte to each page, allowing us to record free space
at a granularity of 1/256th of a page. Another way to say it is that
the stored value is the free space divided by BLCKSZ/256 (rounding down).