| From: | Rui Zhao <zhaorui126(at)gmail(dot)com> |
|---|---|
| To: | Konstantin Knizhnik <knizhnik(at)garret(dot)ru> |
| Cc: | Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Konstantin Knizhnik <konstantin(dot)knizhnik(at)databricks(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Srinath Reddy Sadipiralla <srinath2133(at)gmail(dot)com>, Imran Zaheer <imran(dot)zhir(at)gmail(dot)com>, Alexander Lakhin <exclusion(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: BUG #19519: REPACK can fail due to missing chunk for toast value |
| Date: | 2026-12-02 11:33:18 |
| Message-ID: | CAHWVJhEJdauZRyhwmQvD2H3-4mvGKgiXYgVBz6vhi4evLcy2kQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi,
While testing v10, I noticed that PostgreSQL still fetches a dropped
column's TOAST value when forming a row value. I could reproduce
this on unpatched master with a plain SELECT:
CREATE TEMP TABLE pp (f1 text);
INSERT INTO pp VALUES (repeat('abcdefghijkl', 100000));
ALTER TABLE pp DROP COLUMN f1;
SELECT pp::text, pg_column_size(pp) FROM pp;
-- () | 13783
INSERT INTO pp DEFAULT VALUES RETURNING pp::text, pg_column_size(pp);
-- () | 24
Both rows print as (), but the row inserted before the DROP still
includes the bytes of f1. I posted a patch for master in a separate
thread [1].
Regards,
Rui
[1] https://postgr.es/m/CAHWVJhHfqnmCbO3jdwoWBssuWzdZsD2Yvj2kAa4srDmS59rw5g@mail.gmail.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ZizhuanLiu X-MAN | 2026-12-02 12:09:20 | Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs |
| Previous Message | Raja Sai pranav | 2026-12-02 09:09:26 | Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance |