util_ref.xml 11.1 KB
Newer Older
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1">
  <title id="km135496">Management Utility Reference</title>
  <body>
7 8 9 10 11
    <p>This reference describes the command-line management utilities provided with Greenplum
      Database. Greenplum Database uses the standard PostgreSQL client and server programs and
      provides additional management utilities for administering a distributed Greenplum Database
      DBMS. Greenplum Database management utilities reside in
        <codeph>$GPHOME/bin</codeph>.<note>When referencing IPv6 addresses in
12 13 14 15
          <codeph>gpfdist</codeph> URLs or when using numeric IP addresses instead of hostnames in
        any management utility, always enclose the IP address in brackets. For command prompt use,
        the best practice is to escape any brackets or put them inside quotation marks. For example,
        use
16 17
        either:<codeblock><ph>gpdbrestore -R </ph>\[2620:0:170:610::11\]
<ph>gpdbrestore -R </ph>'[2620:0:170:610::11]'</codeblock></note></p>
18 19 20 21 22 23 24 25 26 27
    <p>The following are the Greenplum Database management utilities.</p>
    <simpletable id="km162860">
      <strow>
        <stentry>
          <p>
            <xref href="analyzedb.xml#topic1"/>
          </p>
          <p>
            <xref href="gpactivatestandby.xml#topic1" type="topic" format="dita"/>
          </p>
28
          <p>
29 30
            <xref href="gpaddmirrors.xml#topic1" type="topic" format="dita"/>
          </p>
31
          <p>
32
            <xref href="gpcheck.xml#topic1" type="topic" format="dita"/> (deprecated)</p>
33
          <p>
34 35
            <xref href="gpcheckcat.xml#topic1"/>
          </p>
36 37
          <p>gpchecknet (deprecated)</p>
          <p>gpcheckos (deprecated)</p>
38 39 40 41 42 43
          <p>
            <xref href="gpcheckperf.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpconfig.xml#topic1" type="topic" format="dita"/>
          </p>
44
          <p>
45 46
            <xref href="gpcrondump.xml#topic1" type="topic" format="dita"/>
          </p>
47
          <p>
48 49
            <xref href="gpdbrestore.xml#topic1" type="topic" format="dita"/>
          </p>
50
          <p>
51 52
            <xref href="gpdeletesystem.xml#topic1" type="topic" format="dita"/>
          </p>
53 54
          <p> gpdetective (deprecated)</p>
          <p> gp_dump (deprecated)</p>
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
          <p>
            <xref href="gpexpand.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpfdist.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpfilespace.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpinitstandby.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpinitsystem.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpload.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gplogfilter.xml#topic1" type="topic" format="dita"/>
          </p>
76
          <p>
77 78 79 80
            <xref href="gpmapreduce.xml#topic1" type="topic" format="dita"/>
          </p>
        </stentry>
        <stentry>
81
          <p>
82 83 84
            <xref href="gpmfr.xml#topic1" type="topic" format="dita"/>
          </p>
          <!-- hidden until testing is complete -msk
85
            <p>
86 87
            <xref href="gpmovemirrors.xml#topic1"/>
          </p>-->
88
          <p>
89 90 91 92 93
            <xref href="gpperfmon_install.xml#topic1"/>
          </p>
          <p>
            <xref href="gppkg.xml#topic1" type="topic" format="dita"/>
          </p>
94 95
          <p>gprebuildsystem (deprecated)</p>
          <p>
96 97
            <xref href="gprecoverseg.xml#topic1" type="topic" format="dita"/>
          </p>
98
          <p>
99 100
            <xref href="gpreload.xml#topic1"/>
          </p>
101 102
          <p> gp_restore (deprecated)</p>
          <p>gpsizecalc (deprecated)</p>
103 104 105
          <p>
            <xref href="gpscp.xml#topic1" type="topic" format="dita"/>
          </p>
106 107
          <p>gpskew (deprecated)</p>
          <p>
108 109
            <xref href="gpseginstall.xml#topic1" type="topic" format="dita"/>
          </p>
110
          <p>
111 112 113 114 115 116 117 118 119 120 121 122 123 124
            <xref href="gpssh.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpssh-exkeys.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpstart.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpstate.xml#topic1" type="topic" format="dita"/>
          </p>
          <p>
            <xref href="gpstop.xml#topic1" type="topic" format="dita"/>
          </p>
125
          <p>
126 127
            <xref href="gpsys.xml#topic1"/>
          </p>
128
          <p>
129 130
            <xref href="gptransfer.xml#topic1"/>
          </p>
131
          <p>
132 133 134 135 136 137 138 139 140
            <xref href="pgbouncer-ref.xml#topic1"/>
          </p>
        </stentry>
      </strow>
    </simpletable>
  </body>
  <topic id="topic_zqp_5xm_cp">
    <title>Backend Server Programs</title>
    <body>
141 142 143 144
      <p>The following standard PostgreSQL server management programs are provided with Greenplum
        Database and reside in <codeph>$GPHOME/bin</codeph>. They are modified to handle the
        parallelism and distribution of a Greenplum Database system. You access these programs only
        through the Greenplum Database management tools and utilities.</p>
145
      <table id="km164231">
146
        <title>Greenplum Database Backend Server Programs</title>
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
        <tgroup cols="3">
          <colspec colnum="1" colname="col1" colwidth="101pt"/>
          <colspec colnum="2" colname="col2" colwidth="188pt"/>
          <colspec colnum="3" colname="col3" colwidth="158pt"/>
          <thead>
            <row>
              <entry colname="col1">Program Name</entry>
              <entry colname="col2">Description</entry>
              <entry colname="col3">Use Instead</entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry colname="col1">
                <codeph id="km164249">initdb</codeph>
              </entry>
              <entry colname="col2">This program is called by <codeph>gpinitsystem</codeph> when
164 165
                initializing a Greenplum Database array. It is used internally to create the
                individual segment instances and the master instance.</entry>
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
              <entry colname="col3">
                <codeph>
                  <xref href="gpinitsystem.xml#topic1" type="topic" format="dita"/>
                </codeph>
              </entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164262">ipcclean</codeph>
              </entry>
              <entry colname="col2">Not used in Greenplum Database</entry>
              <entry colname="col3">N/A</entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164272">gpsyncmaster</codeph>
              </entry>
183 184 185 186 187 188
              <entry colname="col2">This is the Greenplum program that starts the
                  <codeph>gpsyncagent</codeph> process on the standby master host. Administrators do
                not call this program directly, but do so through the management scripts that
                initialize and/or activate a standby master for a Greenplum Database system. This
                process is responsible for keeping the standby master up to date with the primary
                master via a transaction log replication process.</entry>
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
              <entry colname="col3"><codeph><xref href="gpinitstandby.xml#topic1" type="topic"
                    format="dita"/></codeph>, <codeph><xref href="gpactivatestandby.xml#topic1"
                    type="topic" format="dita"/></codeph></entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164291">pg_controldata</codeph>
              </entry>
              <entry colname="col2">Not used in Greenplum Database</entry>
              <entry colname="col3">
                <codeph>
                  <xref href="gpstate.xml#topic1" type="topic" format="dita"/>
                </codeph>
              </entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164304">pg_ctl</codeph>
              </entry>
              <entry colname="col2">This program is called by <codeph>gpstart</codeph> and
209 210 211
                  <codeph>gpstop</codeph> when starting or stopping a Greenplum Database array. It
                is used internally to stop and start the individual segment instances and the master
                instance in parallel and with the correct options.</entry>
212 213 214 215 216 217 218 219
              <entry colname="col3"><codeph><xref href="gpstart.xml#topic1" type="topic"
                    format="dita"/></codeph>, <codeph><xref href="gpstop.xml#topic1" type="topic"
                    format="dita"/></codeph></entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164320">pg_resetxlog</codeph>
              </entry>
220 221 222 223 224
              <entry colname="col2">DO NOT USE<p><b>Warning:</b> This program might cause data loss
                  or cause data to become unavailable. If this program is used, the <ph
                    otherprops="pivotal">Pivotal Greenplum Database cluster is not supported. The
                  </ph>cluster must be reinitialized and restored<ph otherprops="pivotal"> by the
                    customer</ph>.</p></entry>
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
              <entry colname="col3">N/A</entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164330">postgres</codeph>
              </entry>
              <entry colname="col2">The <codeph>postgres</codeph> executable is the actual
                PostgreSQL server process that processes queries.</entry>
              <entry colname="col3">The main <codeph>postgres</codeph> process (postmaster) creates
                other <codeph>postgres</codeph> subprocesses and <codeph>postgres</codeph> session
                as needed to handle client connections.</entry>
            </row>
            <row>
              <entry colname="col1">
                <codeph id="km164337">postmaster</codeph>
              </entry>
              <entry colname="col2"><codeph>postmaster</codeph> starts the <codeph>postgres</codeph>
242 243 244
                database server listener process that accepts client connections. In Greenplum
                Database, a <codeph>postgres</codeph> database listener process runs on the
                Greenplum master Instance and on each Segment Instance.</entry>
245 246 247 248 249 250 251 252 253 254 255 256
              <entry colname="col3">In Greenplum Database, you use <codeph><xref
                    href="gpstart.xml#topic1" type="topic" format="dita"/></codeph> and
                    <codeph><xref href="gpstop.xml#topic1" type="topic" format="dita"/></codeph> to
                start all postmasters (<codeph>postgres</codeph> processes) in the system at once in
                the correct order and with the correct options.</entry>
            </row>
          </tbody>
        </tgroup>
      </table>
    </body>
  </topic>
</topic>