You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following command-line options enable printing timestamps for various types of WAL records. You can use these options together with
213
+
<replaceable class="parameter">startseg</replaceable>, <replaceable class="parameter">endseg</replaceable>, <option>-s</option>, and <option>-e</option> options.
214
+
<variablelist>
215
+
216
+
<varlistentry>
217
+
<term><option>-E</option></term>
218
+
<listitem>
219
+
<para>
220
+
Print the timestamp of the last WAL record of the specified type found in the log segment file. When using this option, you must also specify the <option>-S</option> option.</para>
221
+
<para>By default, <application>pg_xlogdump</application> prints timestamps only for COMMIT records. You can specify other record types using the <option>-F</option> option.
Specify WAL record types for which to print timestamps. When using this option, you must also specify the <option>-S</option> option.</para>
231
+
<para>The <option>-F</option> option can take the following arguments, in the comma-separated format:</para>
232
+
<itemizedlist>
233
+
<listitem>
234
+
<para><option>XLOG_RESTORE_POINT</option> — named restore points created with the <link linkend="functions-admin-backup">pg_create_restore_point()</link> function.</para>
235
+
</listitem>
236
+
<listitem>
237
+
<para><option>XLOG_XACT_COMMIT</option> — commit records for transactions. These records are caused by the <xref linkend="sql-commit"> command.</para>
238
+
</listitem>
239
+
<listitem>
240
+
<para><option>XLOG_XACT_COMMIT_PREPARED</option> — commit records for transactions that were earlier prepared for a two-phase commit. These records are caused by the <xref linkend="sql-commit-prepared"> command.</para>
241
+
</listitem>
242
+
<listitem>
243
+
<para><option>XLOG_XACT_ABORT</option> — abort records for transactions. These records are caused by the <xref linkend="sql-rollback"> command.</para>
244
+
</listitem>
245
+
<listitem>
246
+
<para><option>XLOG_XACT_ABORT_PREPARED</option> — abort records for transactions that were earlier prepared for a two-phase commit. These records are caused by the <xref linkend="sql-rollback-prepared"> command.</para>
247
+
</listitem>
248
+
</itemizedlist>
249
+
<para>By default, <application>pg_xlogdump</application> prints timestamps only for COMMIT records.
250
+
</para>
251
+
</listitem>
252
+
</varlistentry>
253
+
254
+
<varlistentry>
255
+
<term><option>-S</option></term>
256
+
<listitem>
257
+
<para>
258
+
Print the timestamp of the first WAL record of the specified type found in the log segment file. This option is required if you are going to use <option>-E</option> or <option>-F</option> options.</para>
259
+
<para>By default, <application>pg_xlogdump</application> prints timestamps only for COMMIT records. You can specify other record types using the <option>-F</option> option.
260
+
</para>
261
+
</listitem>
262
+
</varlistentry>
263
+
264
+
265
+
</variablelist>
266
+
</para>
267
+
268
+
209
269
</refsect1>
210
270
211
271
<refsect1>
212
272
<title>Notes</title>
213
273
<para>
214
-
Can give wrong results when the server is running.
274
+
<application>pg_xlogdump</> can give wrong results when the server is running.
0 commit comments