Commit a02b8bdd authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Fix man page whitespace issues

Whitespace between tags is significant, and in some cases it creates
extra vertical space in man pages.  The fix is either to remove some
newlines or in some cases to reword slightly to avoid the awkward
markup layout.
parent f4c88ce1
...@@ -149,8 +149,7 @@ SELECT pg_describe_object(refclassid, refobjid, refobjsubid) AS "Collation", ...@@ -149,8 +149,7 @@ SELECT pg_describe_object(refclassid, refobjid, refobjsubid) AS "Collation",
ON refclassid = 'pg_collation'::regclass AND refobjid = c.oid ON refclassid = 'pg_collation'::regclass AND refobjid = c.oid
WHERE c.collversion <> pg_collation_actual_version(c.oid) WHERE c.collversion <> pg_collation_actual_version(c.oid)
ORDER BY 1, 2; ORDER BY 1, 2;
]]></programlisting> ]]></programlisting></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -133,8 +133,7 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO < ...@@ -133,8 +133,7 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -463,8 +463,7 @@ ALTER TYPE mytype SET ( ...@@ -463,8 +463,7 @@ ALTER TYPE mytype SET (
SEND = mytypesend, SEND = mytypesend,
RECEIVE = mytyperecv RECEIVE = mytyperecv
); );
</programlisting> </programlisting></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -161,8 +161,7 @@ ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> RESET ...@@ -161,8 +161,7 @@ ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> RESET
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
......
...@@ -191,8 +191,7 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name ...@@ -191,8 +191,7 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name
current database: current database:
<programlisting> <programlisting>
CREATE EXTENSION hstore; CREATE EXTENSION hstore;
</programlisting> </programlisting></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -229,8 +229,7 @@ CREATE LANGUAGE plsample ...@@ -229,8 +229,7 @@ CREATE LANGUAGE plsample
and users would do this to install the extension: and users would do this to install the extension:
<programlisting> <programlisting>
CREATE EXTENSION plsample; CREATE EXTENSION plsample;
</programlisting> </programlisting></para>
</para>
</refsect1> </refsect1>
<refsect1 id="sql-createlanguage-compat"> <refsect1 id="sql-createlanguage-compat">
......
...@@ -25,7 +25,6 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable> ...@@ -25,7 +25,6 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
[ FOR TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [, ...] [ FOR TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [, ...]
| FOR ALL TABLES ] | FOR ALL TABLES ]
[ WITH ( <replaceable class="parameter">publication_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ] [ WITH ( <replaceable class="parameter">publication_parameter</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ]
</synopsis> </synopsis>
</refsynopsisdiv> </refsynopsisdiv>
...@@ -143,9 +142,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable> ...@@ -143,9 +142,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -206,8 +206,7 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl ...@@ -206,8 +206,7 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>
......
...@@ -152,8 +152,7 @@ CREATE VIEW [ <replaceable>schema</replaceable> . ] <replaceable>view_name</repl ...@@ -152,8 +152,7 @@ CREATE VIEW [ <replaceable>schema</replaceable> . ] <replaceable>view_name</repl
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -175,8 +175,7 @@ DROP FUNCTION update_employee_salaries(); ...@@ -175,8 +175,7 @@ DROP FUNCTION update_employee_salaries();
<listitem> <listitem>
<para>The ability to specify argument modes and names</para> <para>The ability to specify argument modes and names</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -144,8 +144,7 @@ DROP PROCEDURE do_db_maintenance(); ...@@ -144,8 +144,7 @@ DROP PROCEDURE do_db_maintenance();
<listitem> <listitem>
<para>The ability to specify argument modes and names</para> <para>The ability to specify argument modes and names</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -72,8 +72,7 @@ DROP ROUTINE foo(integer); ...@@ -72,8 +72,7 @@ DROP ROUTINE foo(integer);
<listitem> <listitem>
<para>Aggregate functions are an extension.</para> <para>Aggregate functions are an extension.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -341,8 +341,7 @@ PostgreSQL documentation ...@@ -341,8 +341,7 @@ PostgreSQL documentation
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -878,8 +877,7 @@ PostgreSQL documentation ...@@ -878,8 +877,7 @@ PostgreSQL documentation
to <filename>./backup/ts</filename>: to <filename>./backup/ts</filename>:
<screen> <screen>
<prompt>$</prompt> <userinput>pg_basebackup -D backup/data -T /opt/ts=$(pwd)/backup/ts</userinput> <prompt>$</prompt> <userinput>pg_basebackup -D backup/data -T /opt/ts=$(pwd)/backup/ts</userinput>
</screen> </screen></para>
</para>
</refsect1> </refsect1>
<refsect1> <refsect1>
......
...@@ -273,8 +273,7 @@ PostgreSQL documentation ...@@ -273,8 +273,7 @@ PostgreSQL documentation
<prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</userinput> <prompt>$</prompt> <userinput>pg_basebackup -h mydbserver -D /usr/local/pgsql/data</userinput>
<prompt>$</prompt> <userinput>edit /usr/local/pgsql/data/note.to.self</userinput> <prompt>$</prompt> <userinput>edit /usr/local/pgsql/data/note.to.self</userinput>
<prompt>$</prompt> <userinput>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</userinput> <prompt>$</prompt> <userinput>pg_verifybackup --ignore=note.to.self --skip-checksums /usr/local/pgsql/data</userinput>
</screen> </screen></para>
</para>
</refsect1> </refsect1>
......
...@@ -251,8 +251,7 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d ...@@ -251,8 +251,7 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -1104,8 +1103,7 @@ UPDATE pgbench_accounts ...@@ -1104,8 +1103,7 @@ UPDATE pgbench_accounts
SELECT 1 \; SELECT 1 \;
SELECT 2 AS two, 3 AS three \gset p_ SELECT 2 AS two, 3 AS three \gset p_
SELECT 4 AS four \; SELECT 5 AS five \aset SELECT 4 AS four \; SELECT 5 AS five \aset
</programlisting> </programlisting></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -726,11 +726,9 @@ psql --username=postgres --file=script.sql postgres ...@@ -726,11 +726,9 @@ psql --username=postgres --file=script.sql postgres
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist></para>
</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist></para>
</para>
</step> </step>
</procedure> </procedure>
......
...@@ -146,8 +146,7 @@ psql &lt;&lt;EOF ...@@ -146,8 +146,7 @@ psql &lt;&lt;EOF
\x \x
SELECT * FROM foo; SELECT * FROM foo;
EOF EOF
</programlisting> </programlisting></para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -4825,7 +4824,6 @@ peter@localhost testdb=&gt; SELECT * FROM my_table; ...@@ -4825,7 +4824,6 @@ peter@localhost testdb=&gt; SELECT * FROM my_table;
3 | three 3 | three
4 | four 4 | four
(4 rows) (4 rows)
</programlisting> </programlisting>
You can display tables in different ways by using the You can display tables in different ways by using the
<command>\pset</command> command: <command>\pset</command> command:
...@@ -4955,9 +4953,7 @@ testdb(&gt; <userinput>\crosstabview "A" "B" "AxB" ord</userinput> ...@@ -4955,9 +4953,7 @@ testdb(&gt; <userinput>\crosstabview "A" "B" "AxB" ord</userinput>
2 | 202 | 204 | 206 | 208 2 | 202 | 204 | 206 | 208
1 | 101 | 102 | 103 | 104 1 | 101 | 102 | 103 | 104
(4 rows) (4 rows)
</programlisting> </programlisting></para>
</para>
</refsect1> </refsect1>
......
...@@ -1413,7 +1413,7 @@ SELECT name FROM distributors ORDER BY code; ...@@ -1413,7 +1413,7 @@ SELECT name FROM distributors ORDER BY code;
LIMIT { <replaceable class="parameter">count</replaceable> | ALL } LIMIT { <replaceable class="parameter">count</replaceable> | ALL }
OFFSET <replaceable class="parameter">start</replaceable> OFFSET <replaceable class="parameter">start</replaceable>
</synopsis> </synopsis>
<replaceable class="parameter">count</replaceable> specifies the The parameter <replaceable class="parameter">count</replaceable> specifies the
maximum number of rows to return, while <replaceable maximum number of rows to return, while <replaceable
class="parameter">start</replaceable> specifies the number of rows class="parameter">start</replaceable> specifies the number of rows
to skip before starting to return rows. When both are specified, to skip before starting to return rows. When both are specified,
...@@ -1941,8 +1941,7 @@ SELECT 2+2; ...@@ -1941,8 +1941,7 @@ SELECT 2+2;
following query is invalid: following query is invalid:
<programlisting> <programlisting>
SELECT distributors.* WHERE distributors.name = 'Westward'; SELECT distributors.* WHERE distributors.name = 'Westward';
</programlisting> </programlisting><productname>PostgreSQL</productname> releases prior to
<productname>PostgreSQL</productname> releases prior to
8.1 would accept queries of this form, and add an implicit entry 8.1 would accept queries of this form, and add an implicit entry
to the query's <literal>FROM</literal> clause for each table to the query's <literal>FROM</literal> clause for each table
referenced by the query. This is no longer allowed. referenced by the query. This is no longer allowed.
......
...@@ -332,7 +332,7 @@ typedef struct SPITupleTable ...@@ -332,7 +332,7 @@ typedef struct SPITupleTable
SubTransactionId subid; /* subxact in which tuptable was created */ SubTransactionId subid; /* subxact in which tuptable was created */
} SPITupleTable; } SPITupleTable;
</programlisting> </programlisting>
<structfield>tupdesc</structfield>, The fields <structfield>tupdesc</structfield>,
<structfield>vals</structfield>, and <structfield>vals</structfield>, and
<structfield>numvals</structfield> <structfield>numvals</structfield>
can be used by SPI callers; the remaining fields are internal. can be used by SPI callers; the remaining fields are internal.
......
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