| From: | Greg Burd <greg(at)burd(dot)me> |
|---|---|
| To: | pg(at)bowt(dot)ie |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: nbtree: opt-in leaf key prefix compression |
| Date: | 2026-11-04 17:38:49 |
| Message-ID: | autsJ00Lz3RSy1OB@floki |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, 04 Nov 2026 14:31:45 +0000, Greg Burd <greg(at)burd(dot)me> wrote:
>
> On Tuesday, November 3rd, 2026 at 4:48 PM, Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
>
> > It seems likely that a design such as yours, which omits column-level
> > compression, will never incorporate it later on once committed. Why do
> > you think that's the best trade-off? I personally tend to doubt that
> > it is, but I've given it little thought so who knows?
>
> Column-level compression is a great technique, and I'd like to see that
> happen too. The time line for that is much longer primarily due to the
> many ways that table/index/executor all implicitly agree on one shape
> and one behavior defined by heap. If we can more cleanly separate and
> define the boundaries between those three then we could potentially see
> that in core at some point, but I'll bet that takes a few years to sort
> out. In the mean time, let's compress some key prefixes and save some
> bytes.
>
> I think these two are not in competition, they are orthogonal and both
> is the answer but the easier of the two in today's code base is the
> prefix compression.
Quick follow-up...
I may have misunderstood "column-level" to mean "columnar" and if that's
the case I apologize. I think you are talking more about key prefix
compression across multiple columns that together form the btree key,
and if that's the case then yes I agree that's something required of a
solution. I'd been side-stepping this just for simplicity sake but I'll
think about it a bit and see if I can bring that into the design.
best.
-greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raja Sai pranav | 2026-11-04 17:42:57 | [PATCH] doc: Fix pg_combinebackup's description of --sync-method |
| Previous Message | Zsolt Parragi | 2026-11-04 17:12:36 | Re: Preferred way to submit a very large batch of bugs? |