Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum
От | jian he |
---|---|
Тема | Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum |
Дата | |
Msg-id | CACJufxFZcOTrq-NpFs7wErSh2KX4KePD7MuiF6d_h4nD=OJJKA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [BUG] false positive in bt_index_check in case of short 4B varlena datum (Michael Zhilin <m.zhilin@postgrespro.ru>) |
Список | pgsql-bugs |
On Wed, Jan 10, 2024 at 1:59 AM Michael Zhilin <m.zhilin@postgrespro.ru> wrote: > > Hi, > > Thank you, Andrey, for review and advice! > > Here is rebased version (v2) of patch supposed to make CF bot happy. Hi +-- +-- BUG: must support different header size of short varlena datum +-- + +CREATE TABLE varlena_bug (v text); +ALTER TABLE varlena_bug ALTER column v SET storage plain; +INSERT INTO varlena_bug VALUES ('x'); +\set filename :abs_builddir '/results/varlena_bug.dmp' +COPY varlena_bug TO :'filename'; +COPY varlena_bug FROM :'filename'; +CREATE INDEX varlena_bug_idx on varlena_bug(v); +SELECT bt_index_check('varlena_bug_idx', true); you can simply replace +\set filename :abs_builddir '/results/varlena_bug.dmp' +COPY varlena_bug TO :'filename'; +COPY varlena_bug FROM :'filename'; with COPY varlena_bug from stdin; x \. In the comments, adding the postgres link (https://postgr.es/m/7bdbe559-d61a-4ae4-a6e1-48abdf3024cc@postgrespro.ru) would be great.
В списке pgsql-bugs по дате отправления: