Re: Create TOAST table only if AM needs

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Ashwin Agrawal <aagrawal(at)pivotal(dot)io>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Create TOAST table only if AM needs
Date: 2019-05-17 19:31:38
Message-ID: 20190517193138.vsnkjkr5zplmcs2f@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2019-05-17 15:26:38 -0400, Tom Lane wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > So I think this basically just doesn't work right now. I am
> > sympathetic to Andres's position that we shouldn't go whacking the
> > code around too much at this late date, and he's probably right that
> > we're going to find lots of other problems with tableam as well and
> > you have to draw the line someplace, but on the other hand given your
> > experience and mine, it's probably pretty likely that anybody who
> > tries to use tableam for anything is going to run into this problem,
> > so maybe it's not crazy to think about a few last-minute changes.
>
> It seems to me that the entire tableam project is still very much WIP,

Agreed on that front.

> and if anybody is able to do anything actually useful with a different
> AM right at the moment, that's just mighty good fortune for them.

I think this is too negative. Yes, there's a warts, but you can write
something like zheap without tableam related code modifications (undo
however...). You can write something like zedstore, and it will works,
with a few warts. Yes, a bit of code duplication, and a few efficiency
losses are to be expected. But that's different from it being impossible
to write an AM.

> "I can't do X in an external AM" is not a bug, not for v12 anyway.

Indeed.

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2019-05-17 19:54:19 Re: Pluggable Storage - Andres's take
Previous Message Andres Freund 2019-05-17 19:28:12 Re: Create TOAST table only if AM needs