| From: | Andrei Lepikhov <lepihov(at)gmail(dot)com> |
|---|---|
| To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Lukas Fittl <lukas(at)fittl(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_plan_advice |
| Date: | 2026-04-06 13:22:04 |
| Message-ID: | f7bbf789-e8d9-4a8c-8a16-cf54088c75de@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 06/04/2026 14:47, Robert Haas wrote:
> On Sun, Apr 5, 2026 at 3:57 AM Andrei Lepikhov <lepihov(at)gmail(dot)com> wrote:
>> Looking back at the pg_plan_advice development cycle, I don’t see many
>> discussions about the design. It seems unusual given how complex the
>> planner's structure is. It makes sense to follow the typical way and let
>> it serve out of the contrib for some time and see if it works well.
> But I do not apologize for the fact that pg_plan_advice tries to
> interpret plan trees -- which I personally think is one of the best
> design decisions I have ever made while hacking on PostgreSQL -- or
> that it can't interpret the variant ones that your extension produces.
I challenge solely the design of the extension, not interested in holy
wars on the hinting approach.
Postgres modules that use hooks are second-class citizens because the
core hooks were never designed to let an extension module be as
effective as the core code. It's probably OK, considering safety and
maintainability concerns.
But this extension effectively makes alternative modules third-class
citizens (not sure such a term exists in English) - people prioritise
contrib modules over any others. And they definitely will use this one.
So, I envision complaints about conflicting extensions in the near
future - think about Citus or TimescaleDB optimisations, for example.
It would be better to introduce such a code at the beginning of the
development cycle, not right before the code freeze. At least we would
discuss its design without rushing.
--
regards, Andrei Lepikhov,
pgEdge
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2026-04-06 13:25:46 | Re: meson: Adjust test timeout for Valgrind builds |
| Previous Message | Andres Freund | 2026-04-06 13:09:01 | Re: index prefetching |