]> begriffs open source - ai-pg/blob - full-docs/src/sgml/html/app-pgcontroldata.html
WIP: toc builder
[ai-pg] / full-docs / src / sgml / html / app-pgcontroldata.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>pg_controldata</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="app-pgchecksums.html" title="pg_checksums" /><link rel="next" href="app-pgcreatesubscriber.html" title="pg_createsubscriber" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center"><span class="application">pg_controldata</span></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="app-pgchecksums.html" title="pg_checksums">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="reference-server.html" title="PostgreSQL Server Applications">Up</a></td><th width="60%" align="center">PostgreSQL Server Applications</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="app-pgcreatesubscriber.html" title="pg_createsubscriber">Next</a></td></tr></table><hr /></div><div class="refentry" id="APP-PGCONTROLDATA"><div class="titlepage"></div><a id="id-1.9.5.6.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle"><span class="application">pg_controldata</span></span></h2><p>pg_controldata — display control information of a <span class="productname">PostgreSQL</span> database cluster</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p id="id-1.9.5.6.4.1"><code class="command">pg_controldata</code> [<em class="replaceable"><code>option</code></em>] [[ <code class="option">-D</code>  |   <code class="option">--pgdata</code> ]<em class="replaceable"><code>datadir</code></em>]</p></div></div><div class="refsect1" id="R1-APP-PGCONTROLDATA-1"><h2>Description</h2><p>
3    <code class="command">pg_controldata</code> prints information initialized during
4    <code class="command">initdb</code>, such as the catalog version.
5    It also shows information about write-ahead logging and checkpoint
6    processing.  This information is cluster-wide, and not specific to any one
7    database.
8   </p><p>
9    This utility can only be run by the user who initialized the cluster because
10    it requires read access to the data directory.
11    You can specify the data directory on the command line, or use
12    the environment variable <code class="envar">PGDATA</code>.  This utility supports the options
13    <code class="option">-V</code> and <code class="option">--version</code>, which print the
14    <span class="application">pg_controldata</span> version and exit.  It also
15    supports options <code class="option">-?</code> and <code class="option">--help</code>, which output the
16    supported arguments.
17   </p></div><div class="refsect1" id="id-1.9.5.6.6"><h2>Environment</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="envar">PGDATA</code></span></dt><dd><p>
18       Default data directory location
19      </p></dd><dt><span class="term"><code class="envar">PG_COLOR</code></span></dt><dd><p>
20       Specifies whether to use color in diagnostic messages. Possible values
21       are <code class="literal">always</code>, <code class="literal">auto</code> and
22       <code class="literal">never</code>.
23      </p></dd></dl></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="app-pgchecksums.html" title="pg_checksums">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-server.html" title="PostgreSQL Server Applications">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="app-pgcreatesubscriber.html" title="pg_createsubscriber">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="application">pg_checksums</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> <span class="application">pg_createsubscriber</span></td></tr></table></div></body></html>