mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Add pgstatginindex() function to get the size of the GIN pending list.
Fujii Masao, reviewed by Kyotaro Horiguchi.
This commit is contained in:
@@ -244,6 +244,63 @@ leaf_fragmentation | 0
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<function>pgstatginindex(regclass) returns record</>
|
||||
</term>
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
<function>pgstatginindex</function> returns a record showing information
|
||||
about a GIN index. For example:
|
||||
<programlisting>
|
||||
test=> SELECT * FROM pgstatginindex('test_gin_index');
|
||||
-[ RECORD 1 ]--+--
|
||||
version | 1
|
||||
pending_pages | 0
|
||||
pending_tuples | 0
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The output columns are:
|
||||
|
||||
<informaltable>
|
||||
<tgroup cols="3">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Column</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry><structfield>version</structfield></entry>
|
||||
<entry><type>integer</type></entry>
|
||||
<entry>GIN version number</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>pending_pages</structfield></entry>
|
||||
<entry><type>integer</type></entry>
|
||||
<entry>Number of pages in the pending list</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>pending_tuples</structfield></entry>
|
||||
<entry><type>bigint</type></entry>
|
||||
<entry>Number of tuples in the pending list</entry>
|
||||
</row>
|
||||
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<function>pg_relpages(text) returns bigint</>
|
||||
|
Reference in New Issue
Block a user