summaryrefslogtreecommitdiffstats
path: root/doc/src/sgml/oldsnapshot.sgml
blob: a665ae72e789c528a9dc8caba62d0d1bd252a518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!-- doc/src/sgml/oldsnapshot.sgml -->

<sect1 id="oldsnapshot" xreflabel="old_snapshot">
 <title>old_snapshot</title>

 <indexterm zone="oldsnapshot">
  <primary>old_snapshot</primary>
 </indexterm>

 <para>
  The <filename>old_snapshot</filename> module allows inspection
  of the server state that is used to implement
  <xref linkend="guc-old-snapshot-threshold" />.
 </para>

 <sect2>
  <title>Functions</title>

  <variablelist>
   <varlistentry>
    <term><function>pg_old_snapshot_time_mapping(array_offset OUT int4, end_timestamp OUT timestamptz, newest_xmin OUT xid) returns setof record</function></term>
    <listitem>
     <para>
      Returns all of the entries in the server's timestamp to XID mapping.
      Each entry represents the newest xmin of any snapshot taken in the
      corresponding minute.
     </para>
    </listitem>
   </varlistentry>
  </variablelist>
 </sect2>

</sect1>