Re: Freeze avoidance of very large table.

From: Torsten Zühlsdorff <mailinglists(at)toco-domains(dot)de>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Petr Jelinek <petr(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Subject: Re: Freeze avoidance of very large table.
Date: 2015-10-22 07:11:04
Message-ID: 56288C08.1080205@toco-domains.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 21.10.2015 02:05, Masahiko Sawada wrote:
> On Sat, Oct 10, 2015 at 4:20 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Thu, Oct 8, 2015 at 1:52 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>>> I don't see the problem? I mean catversion will reliably tell you which format the vm is in?
>>
>> Totally agreed.
>>
>>> We could additionally use the opportunity to as a metapage, but that seems like an independent thing.
>>
>> I agree with that, too.
>>
>
> Attached the updated v18 patch fixes some bugs.
> Please review the patch.

I've just checked the comments:

File: /doc/src/sgml/catalogs.sgml

+ Number of pages that are marked all-frozen in the tables's
Should be:
+ Number of pages that are marked all-frozen in the tables

+ <command>ANALYZE</command>, and a few DDL coomand such as
Should be:
+ <command>ANALYZE</command>, and a few DDL command such as

File: doc/src/sgml/maintenance.sgml

+ When the all pages of table are eventually marked as frozen by
<command>VACUUM</>,
Should be:
+ When all pages of the table are eventually marked as frozen by
<command>VACUUM</>,

File: /src/backend/access/heap/visibilitymap.c

+ * visibility map bit. Then, we lock the buffer. But this creates a race
Should be:
+ * visibility map bit. Than we lock the buffer. But this creates a race

+ * buffer, the PD_ALL_VISIBLE or PD_ALL_FROZEN bit gets set. If that
happens,
Should be:
+ * buffer, the PD_ALL_VISIBLE or PD_ALL_FROZEN bit gets set. If that
happens,
(Remove duplicate white space before if)

Please note i'm not a native speaker. There is a good chance that i am
wrong ;)

Greetings,
Torsten

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message dinesh kumar 2015-10-22 07:20:36 Re: [PATCH] SQL function to report log message
Previous Message Michael Paquier 2015-10-22 01:52:36 Re: September 2015 Commitfest