Add example for pg_config --configure.
authorPeter Eisentraut
Thu, 9 Jun 2005 18:15:05 +0000 (18:15 +0000)
committerPeter Eisentraut
Thu, 9 Jun 2005 18:15:05 +0000 (18:15 +0000)
doc/src/sgml/ref/pg_config-ref.sgml

index ea48699eb48ed3cab3265eb2e087de41cbce1e34..db09883902fae5783de7652a8f57eeb3e80e4fe5 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  
        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.
       
      
     
  
 
 
+  Example
+
+  
+   To reproduce the build configuration of the current PostgreSQL
+   installation, run the following command:
+
+eval ./configure `pg_config --configure`
+
+   The output of pg_config --configure contains
+   shell quotation marks so arguments with spaces are represented
+   correctly.  Therefore, using eval is required
+   for proper results.
+  
+
  
   History