Re: documentation on HOT

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: documentation on HOT
Date: 2022-07-26 23:29:10
Message-ID: YuB4xvt4zGxF6Kd8@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sat, Jul 23, 2022 at 12:12:38PM -0700, David G. Johnston wrote:
> I concur, suggesting the following:
>
> "Specifically, updates result in multiple rows versions (tuples) existing on
> the table."

See my reply to Peter G. about tuples.

> "There is sufficient free space on the page containing the old tuple for the
> updated tuple."

Same.

> "Old tuples can be completely removed..."

It is really old row versions, not old tuples since tuples, in my mind,
don't have a chain of versions. There are cannot-be-viewed-by-anyone
tuples, but that is not the point here.

> Overall, I think that this is suitable to commit, and I don't want to
> make too much of a fuss. It's great that we're doing this.
>
>
>
> Agreed.  The other suggestion listed are not clear-cut winners in my mind.
>
> The following, though, seems to just come out of nowhere.  It would be better
> setup as a "(See <link> for why this is possible.)" instead of dropping "page
> item identifiers" on the reader.
>
> +     This removal is possible because indexes
> +     do not reference their <link linkend="storage-page-layout">page
> +     item identifiers</link>.

I added parentheses around that.
>
> As a related thought, this has done a great job of being usable for a DBA
> operating at a high-level of system knowledge and interaction.  I don't think
> burying it in storage.sgml is desirable,  Maybe "Performance Tips" under "Avoid
> Unnecessary Indexes" (yes, a bit of a stretch, but nothing else seems to fit
> better, except maybe in concurrency control since we are discussing overcoming
> the limitation of our concurrency control choice.

Uh, not sure. Anyone else have an opinion?

> Summary paragraph:
> "can only happen if" => "can only be created if"

Yes, good point.

Updated patch attached.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

Indecision is a decision. Inaction is an action. Mark Batterson

Attachment Content-Type Size
hot.diff text/x-diff 8.6 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2022-07-27 07:39:06 Dependency Tracking to be updated with PostgreSQL 14 functions on dependencies improvement.
Previous Message Bruce Momjian 2022-07-26 23:25:53 Re: documentation on HOT