Re: Improved estimates for Postgres

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Luís Roberto Weck <luisrweck(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Improved estimates for Postgres
Date: 2026-11-19 16:11:15
Message-ID: 6e5ea4555dc55eb0f63f59774877c4f16d4da5e7.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2026-11-19 at 08:57 -0300, Luís Roberto Weck wrote:
> I've been working on extracting more information from Postgres statistics to better approximate some estimation errors I've faced in the past.
>
> I've never submitted a patch before, so before I go and do that, I'd love for some feedback on it from the hackers lurking here.
>
> Patch is in https://github.com/lrweck/postgres/pull/1
>
> I am also working on other patches that I might share soon.

+2450 lines?

The right approach is to come up with a design first and to discuss it on pgsql-hackers.

Your monster patch seems to implement several features at once. Don't do that.
Select a single, self-contained feature and do that.
Pick a simple one for your first patch.

Make sure that you review and understand every single line of code that your chatbot
generated and can answer questions about it. Dumping generated code on human
reviewers is impolite; people would resent the waste of their time.

Read the pages with advice for beginning hackers on the PostgreSQL Wiki.

Best hang around on pgsql-hackers for a while and review a couple of patches
in a commitfest, that will get you in tune with how things work.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomas Vondra 2026-11-19 16:22:00 Re: Improved estimates for Postgres
Previous Message Luís Roberto Weck 2026-11-19 11:57:21 Improved estimates for Postgres