aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2005-06-09 18:15:05 +0000
committerPeter Eisentraut <peter_e@gmx.net>2005-06-09 18:15:05 +0000
commit65d27324c3fbc17dafdfd54c9d3ff3d4ad90ca36 (patch)
tree4448cb59809f9b0d603a2d0b158f36d2157c0e80
parentebc8649892d02a9c6991e00d3e273670ca46fe56 (diff)
downloadpostgresql-65d27324c3fbc17dafdfd54c9d3ff3d4ad90ca36.tar.gz
postgresql-65d27324c3fbc17dafdfd54c9d3ff3d4ad90ca36.zip
Add example for pg_config --configure.
-rw-r--r--doc/src/sgml/ref/pg_config-ref.sgml20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/pg_config-ref.sgml b/doc/src/sgml/ref/pg_config-ref.sgml
index ea48699eb48..db09883902f 100644
--- a/doc/src/sgml/ref/pg_config-ref.sgml
+++ b/doc/src/sgml/ref/pg_config-ref.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.19 2005/01/04 03:58:16 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.20 2005/06/09 18:15:05 petere Exp $ -->
<refentry id="app-pgconfig">
<refmeta>
@@ -119,7 +119,7 @@
This can be used to reproduce the identical configuration, or
to find out with what options a binary package was built. (Note
however that binary packages often contain vendor-specific custom
- patches.)
+ patches.) See also the examples below.
</para>
</listitem>
</varlistentry>
@@ -161,6 +161,22 @@
<refsect1>
+ <title>Example</title>
+
+ <para>
+ To reproduce the build configuration of the current PostgreSQL
+ installation, run the following command:
+<programlisting>
+eval ./configure `pg_config --configure`
+</programlisting>
+ The output of <literal>pg_config --configure</literal> contains
+ shell quotation marks so arguments with spaces are represented
+ correctly. Therefore, using <literal>eval</literal> is required
+ for proper results.
+ </para>
+ </refsect1>
+
+ <refsect1>
<title>History</title>
<para>