Обсуждение: A trivial doc patch for pgstattuple

Поиск
Список
Период
Сортировка

A trivial doc patch for pgstattuple

От
Hitoshi Harada
Дата:
The sgml doc mentions about HeapTupleSatisfiesNow() but currently we
have HeapTupleSatisfiesVisibility() instead.

Regards,

diff --git a/doc/src/sgml/pgstattuple.sgml b/doc/src/sgml/pgstattuple.sgml
index 821f631..0bba5fe 100644
--- a/doc/src/sgml/pgstattuple.sgml
+++ b/doc/src/sgml/pgstattuple.sgml
@@ -117,7 +117,7 @@ free_percent       | 1.95
    <para>     <function>pgstattuple</function> judges a tuple is <quote>dead</> if
-     <function>HeapTupleSatisfiesNow</> returns false.
+     <function>HeapTupleSatisfiesVisibility</> returns false.    </para>    </listitem>   </varlistentry>

-- 
Hitoshi Harada


Re: A trivial doc patch for pgstattuple

От
Tom Lane
Дата:
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> The sgml doc mentions about HeapTupleSatisfiesNow() but currently we
> have HeapTupleSatisfiesVisibility() instead.

I think the wording is fine (and more useful) as-is.  Remember
HeapTupleSatisfiesVisibility is just a macro, and since we are calling
it with SnapshotNow, the actual decision is made by
HeapTupleSatisfiesNow.
        regards, tom lane