| From: | Konstantin Knizhnik <knizhnik(at)garret(dot)ru> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz> |
| Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Srinath Reddy Sadipiralla <srinath2133(at)gmail(dot)com>, Matthias van de Meent <boekewurm+postgres(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-07-09 10:08:43 |
| Message-ID: | 53dd03d4-5aab-405d-bff3-f3c5433edef7@garret.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On 09/07/2026 8:43 AM, Michael Paquier wrote:
> On Thu, Jul 09, 2026 at 08:17:06AM +0300, Konstantin Knizhnik wrote:
>> Changing `table_relation_fetch_toast_slice` signature breaks compatibility
>> with some extensions, for example duckdb.
>> I wonder if we can change only `bool (*relation_fetch_toast_slice)(...,
>> bool missing_ok)` callback signature, but preserve signature of
>> `table_relation_fetch_toast_slice`, adding one more function
>> `table_relation_try_fetch_toast_slice`:
> Thanks for the input.
>
> Adding more functions implies to change the size of TableAmRoutine,
> which may be bad. For now I'd be tempted to just focus on how to fix
> the problem on HEAD in a way we are happy with. We could sort out an
> optional back-branch version as a second step.
> --
> Michael
Sorry, I do not suggest to extend TableAmRoutine - it will contain
single `relation_fetch_toast_slice` entry with new signature.
I suggest to add only new wrapper function
`table_relation_try_fetch_toast_slice`, preserving original
`table_relation_fetch_toast_slice`. It will preserve compatibility with
extensions (there are not using TableAmRoutine directly) and do not
extend TableAmRoutine.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vismay Tiwari | 2026-07-09 10:13:50 | Re: BUG #19523: psql tab-completion shadows pg_db_role_setting |
| Previous Message | Vismay Tiwari | 2026-07-09 09:31:43 | Re: BUG #19507: Auto-named partition table constraint conflicts |