Commit d72168d6 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Complete first pass at markup adjustments for docbook2man man pages.

Add some internal cross references to select.sgml.
parent d289011f
This diff is collapsed.
<refentry id="SQL-SELECTINTO"> <refentry id="SQL-SELECTINTO">
<refmeta> <refmeta>
<refentrytitle> <refentrytitle>
SELECT INTO SELECT INTO
</refentrytitle> </refentrytitle>
<refmiscinfo>SQL - Language Statements</refmiscinfo> <refmiscinfo>SQL - Language Statements</refmiscinfo>
</refmeta> </refmeta>
<refnamediv> <refnamediv>
<refname> <refname>
SELECT INTO SELECT INTO
</refname> </refname>
<refpurpose> <refpurpose>
Create a new table from an existing table or view Create a new table from an existing table or view
</refpurpose></refnamediv> </refpurpose></refnamediv>
<refsynopsisdiv> <refsynopsisdiv>
<refsynopsisdivinfo> <refsynopsisdivinfo>
...@@ -37,7 +37,8 @@ SELECT [ ALL | DISTINCT ] <replaceable class="PARAMETER">expression</replaceable ...@@ -37,7 +37,8 @@ SELECT [ ALL | DISTINCT ] <replaceable class="PARAMETER">expression</replaceable
Inputs Inputs
</title> </title>
<para> <para>
All input fields are described in detail for SELECT. All input fields are described in detail for
<xref linkend="select-title" endterm="select-title">.
</para> </para>
</refsect2> </refsect2>
...@@ -49,7 +50,8 @@ All input fields are described in detail for SELECT. ...@@ -49,7 +50,8 @@ All input fields are described in detail for SELECT.
Outputs Outputs
</title> </title>
<para> <para>
All output fields are described in detail for SELECT. All output fields are described in detail for
<xref linkend="select-title" endterm="select-title">.
</para> </para>
</refsect2> </refsect2>
</refsynopsisdiv> </refsynopsisdiv>
...@@ -62,12 +64,14 @@ All output fields are described in detail for SELECT. ...@@ -62,12 +64,14 @@ All output fields are described in detail for SELECT.
Description Description
</title> </title>
<para> <para>
SELECT INTO creates a new table from the results of a query. Typically, this <command>SELECT INTO</command> creates a new table from the results
of a query. Typically, this
query draws data from an existing table, but any SQL query is allowed. query draws data from an existing table, but any SQL query is allowed.
<note> <note>
<para> <para>
CREATE TABLE AS is functionally equivalent to the SELECT INTO command. CREATE TABLE AS is functionally equivalent to the SELECT INTO command.
</para> </para>
</note> </note>
</para> </para>
</refsect1> </refsect1>
...@@ -76,7 +80,7 @@ All output fields are described in detail for SELECT. ...@@ -76,7 +80,7 @@ All output fields are described in detail for SELECT.
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file
Local variables: Local variables:
mode: sgml mode: sgml
sgml-omittag: sgml-omittag:nil
sgml-shorttag:t sgml-shorttag:t
sgml-minimize-attributes:nil sgml-minimize-attributes:nil
sgml-always-quote-attributes:t sgml-always-quote-attributes:t
......
...@@ -201,9 +201,9 @@ default ...@@ -201,9 +201,9 @@ default
Setting the <envar>PGDATESTYLE</envar> environment variable. Setting the <envar>PGDATESTYLE</envar> environment variable.
</member> </member>
<member> <member>
Running postmaster using the <option>-oe</option> parameter to set Running postmaster using the option <option>-o -e</option> to set
dates to the <literal>European</literal> convention. dates to the <literal>European</literal> convention.
Note that this affects only the some combinations of date styles; for example Note that this affects only some combinations of date styles; for example
the ISO style is not affected by this parameter. the ISO style is not affected by this parameter.
</member> </member>
<member> <member>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<date>1998-09-24</date> <date>1998-09-24</date>
</refsynopsisdivinfo> </refsynopsisdivinfo>
<synopsis> <synopsis>
SHOW <replaceable class="PARAMETER">variable</replaceable> SHOW <replaceable class="PARAMETER">keyword</replaceable>
</synopsis> </synopsis>
<refsect2 id="R2-SQL-SHOW-1"> <refsect2 id="R2-SQL-SHOW-1">
...@@ -28,17 +28,15 @@ SHOW <replaceable class="PARAMETER">variable</replaceable> ...@@ -28,17 +28,15 @@ SHOW <replaceable class="PARAMETER">variable</replaceable>
<title> <title>
Inputs Inputs
</title> </title>
<para>
<para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term><replaceable class="PARAMETER">keyword</replaceable></term>
<replaceable class="PARAMETER">variable</replaceable>
</term>
<listitem> <listitem>
<para> <para>
Refer to <command>SET</command> for more information on available Refer to <command>SET</command> for more information on available
variables. arguments.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -53,40 +51,40 @@ SHOW <replaceable class="PARAMETER">variable</replaceable> ...@@ -53,40 +51,40 @@ SHOW <replaceable class="PARAMETER">variable</replaceable>
<title> <title>
Outputs Outputs
</title> </title>
<para>
<para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
<returnvalue>NOTICE: <replaceable NOTICE: <replaceable class="PARAMETER">variable</replaceable> is <replaceable>value</replaceable>
class="PARAMETER">">variab</replaceable>E> is <replaceable>value</replaceable></returnvalue> SHOW VARIABLE
SHOW VARIABLE </computeroutput></term>
</term>
<listitem> <listitem>
<para> <para>
Message returned if successfully. Message returned if successful.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
<returnvalue>NOTICE: Unrecognized variable <replaceable>value</replaceable></returnvalue> NOTICE: Unrecognized variable <replaceable>value</replaceable>
</term> </computeroutput></term>
<listitem> <listitem>
<para> <para>
Message returned if <returnvalue>value</returnvalue> does not exist. Message returned if <returnvalue>value</returnvalue> does not exist.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
NOTICE: Time zone is unknown NOTICE: Time zone is unknown
SHOW VARIABLE SHOW VARIABLE
</term> </computeroutput></term>
<listitem> <listitem>
<para> <para>
If the TZ environment variable is not set. If the <envar>TZ</envar> or <envar>PGTZ</envar> environment
variable is not set.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -138,12 +136,17 @@ SHOW <replaceable class="PARAMETER">variable</replaceable> ...@@ -138,12 +136,17 @@ SHOW <replaceable class="PARAMETER">variable</replaceable>
Usage Usage
</title> </title>
<para> <para>
Show the current <literal>DateStyle</literal> setting:
<programlisting> <programlisting>
-- show DateStyle;
SHOW DateStyle; SHOW DateStyle;
NOTICE:DateStyle is Postgres with US (NonEuropean) conventions NOTICE:DateStyle is Postgres with US (NonEuropean) conventions
</programlisting>
</para>
-- show Geqo; <para>
Show the current genetic optimizer (<literal>geqo</literal>) setting:
<programlisting>
SHOW GEQO; SHOW GEQO;
NOTICE:GEQO is ON NOTICE:GEQO is ON
</programlisting> </programlisting>
...@@ -183,7 +186,7 @@ sgml-indent-data:t ...@@ -183,7 +186,7 @@ sgml-indent-data:t
sgml-parent-document:nil sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced" sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/CATALOG" sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil sgml-local-ecat-files:nil
End: End:
--> -->
<REFENTRY ID="SQL-UNLISTEN"> <refentry id="SQL-UNLISTEN">
<REFMETA> <refmeta>
<REFENTRYTITLE> <refentrytitle>
UNLISTEN UNLISTEN
</REFENTRYTITLE> </refentrytitle>
<REFMISCINFO>SQL - Language Statements</REFMISCINFO> <refmiscinfo>SQL - Language Statements</refmiscinfo>
</REFMETA> </refmeta>
<REFNAMEDIV> <refnamediv>
<REFNAME> <refname>
UNLISTEN UNLISTEN
</REFNAME> </refname>
<REFPURPOSE> <refpurpose>
Stop listening for notification Stop listening for notification
</REFPURPOSE> </refpurpose>
</refnamediv> </refnamediv>
<REFSYNOPSISDIV> <refsynopsisdiv>
<REFSYNOPSISDIVINFO> <refsynopsisdivinfo>
<DATE>1998-10-19</DATE> <date>1998-10-19</date>
</REFSYNOPSISDIVINFO> </refsynopsisdivinfo>
<SYNOPSIS> <synopsis>
UNLISTEN { <REPLACEABLE CLASS="PARAMETER">notifyname</REPLACEABLE> | * } UNLISTEN { <replaceable class="PARAMETER">notifyname</replaceable> | * }
</SYNOPSIS> </synopsis>
<REFSECT2 ID="R2-SQL-UNLISTEN-1"> <refsect2 id="R2-SQL-UNLISTEN-1">
<REFSECT2INFO> <refsect2info>
<DATE>1998-10-19</DATE> <date>1998-10-19</date>
</REFSECT2INFO> </refsect2info>
<TITLE> <title>
Inputs Inputs
</TITLE> </title>
<PARA>
</PARA> <para>
<VARIABLELIST> <variablelist>
<VARLISTENTRY> <varlistentry>
<TERM> <term><replaceable class="PARAMETER">notifyname</replaceable></term>
<REPLACEABLE CLASS="PARAMETER">notifyname</REPLACEABLE> <listitem>
</TERM> <para>
<LISTITEM> Name of previously registered notify condition.
<PARA> </para>
Name of previously registered notify condition. </listitem>
</para> </varlistentry>
</listitem> <varlistentry>
</varlistentry> <term><literal>*</literal></term>
<VARLISTENTRY> <listitem>
<TERM> <para>
<literal>*</literal> All current listen registrations for this backend are cleared.
</TERM> </para>
<LISTITEM> </listitem>
<PARA> </varlistentry>
All current listen registrations for this backend are cleared. </variablelist>
</para> </para>
</listitem> </refsect2>
</varlistentry>
<refsect2 id="R2-SQL-UNLISTEN-2">
</VARIABLELIST> <refsect2info>
<date>1998-10-19</date>
</REFSECT2> </refsect2info>
<title>
<REFSECT2 ID="R2-SQL-UNLISTEN-2"> Outputs
<REFSECT2INFO> </title>
<DATE>1998-10-19</DATE> <para>
</REFSECT2INFO>
<TITLE> <variablelist>
Outputs <varlistentry>
</TITLE> <term><computeroutput>
<PARA>
<VARIABLELIST>
<VARLISTENTRY>
<TERM>
<returnvalue>UNLISTEN</returnvalue> <returnvalue>UNLISTEN</returnvalue>
</TERM> </computeroutput></term>
<LISTITEM> <listitem>
<PARA> <para>
Acknowledgement that statement has executed. Acknowledgement that statement has executed.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist>
</VARIABLELIST> </para>
</para> </refsect2>
</REFSECT2> </refsynopsisdiv>
</REFSYNOPSISDIV>
<refsect1 id="R1-SQL-UNLISTEN-1">
<REFSECT1 ID="R1-SQL-UNLISTEN-1"> <refsect1info>
<REFSECT1INFO> <date>1998-10-19</date>
<DATE>1998-10-19</DATE> </refsect1info>
</REFSECT1INFO> <title>
<TITLE> Description
Description </title>
</TITLE>
<PARA> <para>
<command>UNLISTEN</command> <command>UNLISTEN</command>
is used to remove an existing <command>NOTIFY</command> registration. is used to remove an existing <command>NOTIFY</command> registration.
UNLISTEN cancels any existing registration of the current UNLISTEN cancels any existing registration of the current
<productname>Postgres</productname> session as a listener on the notify <productname>Postgres</productname> session as a listener on the notify
condition <REPLACEABLE CLASS="PARAMETER">notifyname</REPLACEABLE>. condition <replaceable class="PARAMETER">notifyname</replaceable>.
The special condition wildcard "*" cancels all listener registrations The special condition wildcard "*" cancels all listener registrations
for the current session. for the current session.
</para> </para>
<para>
<xref linkend="sql-notify" endterm="sql-notify-ref"> <para>
contains a more extensive <xref endterm="sql-notify-ref" linkend="sql-notify">
discussion of the use of <command>LISTEN</command> and contains a more extensive
<command>NOTIFY</command>. discussion of the use of <command>LISTEN</command> and
</para> <command>NOTIFY</command>.
</para>
<REFSECT2 ID="R2-SQL-UNLISTEN-3">
<REFSECT2INFO> <refsect2 id="R2-SQL-UNLISTEN-3">
<DATE>1998-10-19</DATE> <refsect2info>
</REFSECT2INFO> <date>1998-10-19</date>
<TITLE> </refsect2info>
Notes <title>
</TITLE> Notes
<para> </title>
<REPLACEABLE CLASS="PARAMETER">classname</REPLACEABLE> <para>
needs not to be a valid class name but can be any string valid <replaceable class="PARAMETER">classname</replaceable>
as a name up to 32 characters long. needs not to be a valid class name but can be any string valid
</para> as a name up to 32 characters long.
<para> </para>
The backend does not complain if you UNLISTEN something you were not <para>
listening for. The backend does not complain if you UNLISTEN something you were not
Each backend will automatically execute <command>UNLISTEN *</command> when listening for.
exiting. Each backend will automatically execute <command>UNLISTEN *</command> when
</para> exiting.
<para> </para>
A restriction in some previous releases of <para>
<productname>Postgres</productname> that a A restriction in some previous releases of
<REPLACEABLE CLASS="PARAMETER">classname</REPLACEABLE> <productname>Postgres</productname> that a
which does not correspond to an actual table must be enclosed in double-quotes <replaceable class="PARAMETER">classname</replaceable>
is no longer present. which does not correspond to an actual table must be enclosed in double-quotes
</para> is no longer present.
</REFSECT2> </para>
</refsect1> </refsect2>
</refsect1>
<REFSECT1 ID="R1-SQL-UNLISTEN-2">
<TITLE> <refsect1 id="R1-SQL-UNLISTEN-2">
Usage <title>
</TITLE> Usage
</title>
<para>
<programlisting> <para>
To subscribe to an existing registration:
<programlisting>
postgres=> LISTEN virtual; postgres=> LISTEN virtual;
LISTEN LISTEN
postgres=> NOTIFY virtual; postgres=> NOTIFY virtual;
NOTIFY NOTIFY
ASYNC NOTIFY of 'virtual' from backend pid '12317' received ASYNC NOTIFY of 'virtual' from backend pid '12317' received
</programlisting> </programlisting>
</para>
<programlisting> <para>
Once UNLISTEN has been executed, further NOTIFY commands will be
ignored:
<programlisting>
postgres=> UNLISTEN virtual; postgres=> UNLISTEN virtual;
UNLISTEN UNLISTEN
postgres=> NOTIFY virtual; postgres=> NOTIFY virtual;
NOTIFY NOTIFY
-- notice no NOTIFY event is received -- notice no NOTIFY event is received
postgres=> </programlisting>
</programlisting> </para>
</para> </refsect1>
</REFSECT1>
<refsect1 id="R1-SQL-UNLISTEN-3">
<REFSECT1 ID="R1-SQL-UNLISTEN-3"> <title>
<TITLE> Compatibility
Compatibility </title>
</TITLE>
<refsect2 id="R2-SQL-UNLISTEN-4">
<REFSECT2 ID="R2-SQL-UNLISTEN-4"> <refsect2info>
<REFSECT2INFO> <date>1998-10-19</date>
<DATE>1998-10-19</DATE> </refsect2info>
</REFSECT2INFO> <title>
<TITLE> SQL92
SQL92 </title>
</TITLE> <para>
<PARA> There is no <command>UNLISTEN</command> in <acronym>SQL92</acronym>.
There is no <command>UNLISTEN</command> in <acronym>SQL92</acronym>. </para>
</para> </refsect2>
</refsect2> </refsect1>
</refsect1> </refentry>
</REFENTRY>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
This diff is collapsed.
This diff is collapsed.
...@@ -18,12 +18,9 @@ ...@@ -18,12 +18,9 @@
<date>1998-10-04</date> <date>1998-10-04</date>
</refsynopsisdivinfo> </refsynopsisdivinfo>
<synopsis> <synopsis>
vacuumdb [ --analyze | -z ] [ --verbose | -v ] [ <replaceable vacuumdb [ --analyze | -z ] [ --verbose | -v ] [ <replaceable class="parameter">dbname</replaceable> ]
class="parameter">dbname</replaceable> ] vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p [ --table '<replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column</replaceable> [,...] ) ]' ]
<replaceable class="parameter">port</replaceable> ]
[ --table '<replaceable class="parameter">table</replaceable> [ (
<replaceable class="parameter">column</replaceable> [,...] ) ]' ]
[ <replaceable class="parameter">dbname</replaceable> ] [ <replaceable class="parameter">dbname</replaceable> ]
</synopsis> </synopsis>
...@@ -39,9 +36,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -39,9 +36,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term><replaceable class="parameter">dbname</replaceable></term>
<replaceable class="parameter">dbname</replaceable>
</term>
<listitem> <listitem>
<para> <para>
Specifies the name of the database to be cleaned or analyzed. Specifies the name of the database to be cleaned or analyzed.
...@@ -52,44 +47,30 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -52,44 +47,30 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>--analyze</term>
--analyze <term>-z</term>
</term>
<term>
-z
</term>
<listitem> <listitem>
<para> <para>
Calculate statistics on the database for use by the optimizer. Calculate statistics on the database for use by the optimizer.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>--verbose</term>
--verbose <term>-v</term>
</term>
<term>
-v
</term>
<listitem> <listitem>
<para> <para>
Print detailed information during processing. Print detailed information during processing.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>--table <replaceable class="parameter">table</replaceable> [ (<replaceable class="parameter">column</replaceable> [,...]) ]</term>
--table <replaceable class="parameter">table</replaceable> [ <term>-t <replaceable class="parameter">table</replaceable> [ (<replaceable class="parameter">column</replaceable> [,...]) ]</term>
(<replaceable class="parameter">column</replaceable> [,...]) ]
</term>
<term>
-t <replaceable class="parameter">table</replaceable> [
(<replaceable class="parameter">column</replaceable> [,...]) ]
</term>
<listitem> <listitem>
<para> <para>
Clean or analyze <replaceable class="parameter">table</replaceable> only. Clean or analyze <replaceable class="parameter">table</replaceable> only.
...@@ -98,18 +79,17 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -98,18 +79,17 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</para> </para>
<para> <para>
<application>vacuumdb</application> also accepts <application>vacuumdb</application> also accepts
the following command line arguments for connection parameters: the following command line arguments for connection parameters:
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term>-h <replaceable class="parameter">host</replaceable></term>
-h <replaceable class="parameter">host</replaceable>
</term>
<listitem> <listitem>
<para> <para>
Specifies the hostname of the machine on which the Specifies the hostname of the machine on which the
...@@ -119,11 +99,9 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -119,11 +99,9 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>-p <replaceable class="parameter">port</replaceable></term>
-p <replaceable class="parameter">port</replaceable>
</term>
<listitem> <listitem>
<para> <para>
Specifies the Internet TCP/IP port or local Unix domain socket file Specifies the Internet TCP/IP port or local Unix domain socket file
...@@ -134,11 +112,9 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -134,11 +112,9 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term>-u</term>
-u
</term>
<listitem> <listitem>
<para> <para>
Use password authentication. Use password authentication.
...@@ -148,7 +124,6 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -148,7 +124,6 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</para> </para>
</refsect2> </refsect2>
...@@ -166,11 +141,10 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -166,11 +141,10 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
ERROR: Can't vacuum columns, only tables. You can 'vacuum analyze' columns. ERROR: Can't vacuum columns, only tables. You can 'vacuum analyze' columns.
vacuumdb: database vacuum failed on <replaceable vacuumdb: database vacuum failed on <replaceable class="parameter">dbname</replaceable>.
class="parameter">dbname</replaceable>. </computeroutput></term>
</term>
<listitem> <listitem>
<para> <para>
The non-analyze mode requires cleaning full tables or databases. The non-analyze mode requires cleaning full tables or databases.
...@@ -180,11 +154,11 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -180,11 +154,11 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
Connection to database 'template1' failed. Connection to database 'template1' failed.
connectDB() failed: Is the postmaster running and accepting connections connectDB() failed: Is the postmaster running and accepting connections
at 'UNIX Socket' on port '<replaceable class="parameter">port</replaceable>'? at 'UNIX Socket' on port '<replaceable class="parameter">port</replaceable>'?
</term> </computeroutput></term>
<listitem> <listitem>
<para> <para>
<application>vacuumdb</application> could not attach to the <application>vacuumdb</application> could not attach to the
...@@ -199,10 +173,10 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -199,10 +173,10 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term> <term><computeroutput>
Connection to database '<replaceable class="parameter">dbname</replaceable>' failed. Connection to database '<replaceable class="parameter">dbname</replaceable>' failed.
FATAL 1: SetUserId: user '<replaceable class="parameter">username</replaceable>' is not in 'pg_shadow' FATAL 1: SetUserId: user '<replaceable class="parameter">username</replaceable>' is not in 'pg_shadow'
</term> </computeroutput></term>
<listitem> <listitem>
<para> <para>
You do not have a valid entry in the relation <literal>pg_shadow</literal> You do not have a valid entry in the relation <literal>pg_shadow</literal>
...@@ -211,7 +185,6 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -211,7 +185,6 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
</para> </para>
...@@ -234,7 +207,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -234,7 +207,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
<title> <title>
Description Description
</title> </title>
<para> <para>
<application>vacuumdb</application> is a utility for cleaning a <application>vacuumdb</application> is a utility for cleaning a
<productname>Postgres</productname> database. <productname>Postgres</productname> database.
...@@ -250,7 +223,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -250,7 +223,7 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
<title> <title>
Notes Notes
</title> </title>
<para> <para>
See <xref endterm="vacuum" linkend="vacuum"> for more details. See <xref endterm="vacuum" linkend="vacuum"> for more details.
</para> </para>
...@@ -267,22 +240,23 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p ...@@ -267,22 +240,23 @@ vacuumdb [ -h <replaceable class="parameter">host</replaceable> ] [ -p
To clean a database of the same name as the user: To clean a database of the same name as the user:
<programlisting> <programlisting>
% vacuumdb % vacuumdb
</programlisting> </programlisting>
</para> </para>
<para> <para>
To analyze a database named <literal>bigdb</literal> for the optimizer: To analyze a database named <literal>bigdb</literal> for the optimizer:
<programlisting> <programlisting>
% vacuumdb --analyze bigdb % vacuumdb --analyze bigdb
</programlisting> </programlisting>
</para> </para>
<para> <para>
To analyze a single column <literal>bar</literal> in table <literal>foo</literal> To analyze a single column <literal>bar</literal> in table <literal>foo</literal>
in a database named <literal>xyzzy</literal> for the optimizer: in a database named <literal>xyzzy</literal> for the optimizer:
<programlisting> <programlisting>
% vacuumdb --analyze --verbose --table 'foo(bar)' xyzzy % vacuumdb --analyze --verbose --table 'foo(bar)' xyzzy
</programlisting> </programlisting>
</para> </para>
</refsect1> </refsect1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment