1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.289 2009/05 /28 20:02:10 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.290 2009/11 /28 23:38:06 tgl Exp $ -->
2
2
3
3
<chapter id="libpq">
4
4
<title><application>libpq</application> - C Library</title>
249
249
</listitem>
250
250
</varlistentry>
251
251
252
+ <varlistentry id="libpq-connect-application-name" xreflabel="application_name">
253
+ <term><literal>application_name</literal></term>
254
+ <listitem>
255
+ <para>
256
+ Specifies a value for the <xref linkend="guc-application-name">
257
+ configuration parameter.
258
+ </para>
259
+ </listitem>
260
+ </varlistentry>
261
+
262
+ <varlistentry id="libpq-connect-fallback-application-name" xreflabel="fallback_application_name">
263
+ <term><literal>fallback_application_name</literal></term>
264
+ <listitem>
265
+ <para>
266
+ Specifies a fallback value for the <xref
267
+ linkend="guc-application-name"> configuration parameter.
268
+ This value will be used if no value has been given for
269
+ <literal>application_name</> via a connection parameter or the
270
+ <envar>PGAPPNAME</envar> environment variable. Specifying
271
+ a fallback name is useful in generic utility programs that
272
+ wish to set a default application name but allow it to be
273
+ overridden by the user.
274
+ </para>
275
+ </listitem>
276
+ </varlistentry>
277
+
252
278
<varlistentry id="libpq-connect-tty" xreflabel="tty">
253
279
<term><literal>tty</literal></term>
254
280
<listitem>
@@ -5672,7 +5698,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5672
5698
<indexterm>
5673
5699
<primary><envar>PGHOST</envar></primary>
5674
5700
</indexterm>
5675
- <envar>PGHOST</envar> behaves the same as <xref
5701
+ <envar>PGHOST</envar> behaves the same as the <xref
5676
5702
linkend="libpq-connect-host"> connection parameter.
5677
5703
</para>
5678
5704
</listitem>
@@ -5682,7 +5708,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5682
5708
<indexterm>
5683
5709
<primary><envar>PGHOSTADDR</envar></primary>
5684
5710
</indexterm>
5685
- <envar>PGHOSTADDR</envar> behaves the same as <xref
5711
+ <envar>PGHOSTADDR</envar> behaves the same as the <xref
5686
5712
linkend="libpq-connect-hostaddr"> connection parameter.
5687
5713
This can be set instead of or in addition to <envar>PGHOST</envar>
5688
5714
to avoid DNS lookup overhead.
@@ -5694,7 +5720,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5694
5720
<indexterm>
5695
5721
<primary><envar>PGPORT</envar></primary>
5696
5722
</indexterm>
5697
- <envar>PGPORT</envar> behaves the same as <xref
5723
+ <envar>PGPORT</envar> behaves the same as the <xref
5698
5724
linkend="libpq-connect-port"> connection parameter.
5699
5725
</para>
5700
5726
</listitem>
@@ -5704,7 +5730,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5704
5730
<indexterm>
5705
5731
<primary><envar>PGDATABASE</envar></primary>
5706
5732
</indexterm>
5707
- <envar>PGDATABASE</envar> behaves the same as <xref
5733
+ <envar>PGDATABASE</envar> behaves the same as the <xref
5708
5734
linkend="libpq-connect-dbname"> connection parameter.
5709
5735
</para>
5710
5736
</listitem>
@@ -5714,9 +5740,8 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5714
5740
<indexterm>
5715
5741
<primary><envar>PGUSER</envar></primary>
5716
5742
</indexterm>
5717
- <envar>PGUSER</envar> behaves the same as <xref
5743
+ <envar>PGUSER</envar> behaves the same as the <xref
5718
5744
linkend="libpq-connect-user"> connection parameter.
5719
- database.
5720
5745
</para>
5721
5746
</listitem>
5722
5747
@@ -5725,12 +5750,12 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5725
5750
<indexterm>
5726
5751
<primary><envar>PGPASSWORD</envar></primary>
5727
5752
</indexterm>
5728
- <envar>PGPASSWORD</envar> behaves the same as <xref
5753
+ <envar>PGPASSWORD</envar> behaves the same as the <xref
5729
5754
linkend="libpq-connect-password"> connection parameter.
5730
5755
Use of this environment variable
5731
- is not recommended for security reasons ( some operating systems
5756
+ is not recommended for security reasons, as some operating systems
5732
5757
allow non-root users to see process environment variables via
5733
- <application>ps</>) ; instead consider using the
5758
+ <application>ps</>; instead consider using the
5734
5759
<filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">).
5735
5760
</para>
5736
5761
</listitem>
@@ -5751,7 +5776,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5751
5776
<indexterm>
5752
5777
<primary><envar>PGSERVICE</envar></primary>
5753
5778
</indexterm>
5754
- <envar>PGSERVICE</envar> behaves the same as <xref
5779
+ <envar>PGSERVICE</envar> behaves the same as the <xref
5755
5780
linkend="libpq-connect-service"> connection parameter.
5756
5781
</para>
5757
5782
</listitem>
@@ -5777,17 +5802,27 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5777
5802
<indexterm>
5778
5803
<primary><envar>PGOPTIONS</envar></primary>
5779
5804
</indexterm>
5780
- <envar>PGOPTIONS</envar> behaves the same as <xref
5805
+ <envar>PGOPTIONS</envar> behaves the same as the <xref
5781
5806
linkend="libpq-connect-options"> connection parameter.
5782
5807
</para>
5783
5808
</listitem>
5784
5809
5810
+ <listitem>
5811
+ <para>
5812
+ <indexterm>
5813
+ <primary><envar>PGAPPNAME</envar></primary>
5814
+ </indexterm>
5815
+ <envar>PGAPPNAME</envar> behaves the same as the <xref
5816
+ linkend="libpq-connect-application-name"> connection parameter.
5817
+ </para>
5818
+ </listitem>
5819
+
5785
5820
<listitem>
5786
5821
<para>
5787
5822
<indexterm>
5788
5823
<primary><envar>PGSSLMODE</envar></primary>
5789
5824
</indexterm>
5790
- <envar>PGSSLMODE</envar> behaves the same as <xref
5825
+ <envar>PGSSLMODE</envar> behaves the same as the <xref
5791
5826
linkend="libpq-connect-sslmode"> connection parameter.
5792
5827
</para>
5793
5828
</listitem>
@@ -5797,7 +5832,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5797
5832
<indexterm>
5798
5833
<primary><envar>PGREQUIRESSL</envar></primary>
5799
5834
</indexterm>
5800
- <envar>PGREQUIRESSL</envar> behaves the same as <xref
5835
+ <envar>PGREQUIRESSL</envar> behaves the same as the <xref
5801
5836
linkend="libpq-connect-requiressl"> connection parameter.
5802
5837
</para>
5803
5838
</listitem>
@@ -5807,7 +5842,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5807
5842
<indexterm>
5808
5843
<primary><envar>PGSSLCERT</envar></primary>
5809
5844
</indexterm>
5810
- <envar>PGSSLCERT</envar> behaves the same as <xref
5845
+ <envar>PGSSLCERT</envar> behaves the same as the <xref
5811
5846
linkend="libpq-connect-sslcert"> connection parameter.
5812
5847
</para>
5813
5848
</listitem>
@@ -5817,7 +5852,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5817
5852
<indexterm>
5818
5853
<primary><envar>PGSSLKEY</envar></primary>
5819
5854
</indexterm>
5820
- <envar>PGSSLKEY</envar> behaves the same as <xref
5855
+ <envar>PGSSLKEY</envar> behaves the same as the <xref
5821
5856
linkend="libpq-connect-sslkey"> connection parameter.
5822
5857
</para>
5823
5858
</listitem>
@@ -5827,7 +5862,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5827
5862
<indexterm>
5828
5863
<primary><envar>PGSSLROOTCERT</envar></primary>
5829
5864
</indexterm>
5830
- <envar>PGSSLROOTCERT</envar> behaves the same as <xref
5865
+ <envar>PGSSLROOTCERT</envar> behaves the same as the <xref
5831
5866
linkend="libpq-connect-sslrootcert"> connection parameter.
5832
5867
</para>
5833
5868
</listitem>
@@ -5837,7 +5872,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5837
5872
<indexterm>
5838
5873
<primary><envar>PGSSLCRL</envar></primary>
5839
5874
</indexterm>
5840
- <envar>PGSSLCRL</envar> behaves the same as <xref
5875
+ <envar>PGSSLCRL</envar> behaves the same as the <xref
5841
5876
linkend="libpq-connect-sslcrl"> connection parameter.
5842
5877
</para>
5843
5878
</listitem>
@@ -5847,7 +5882,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5847
5882
<indexterm>
5848
5883
<primary><envar>PGKRBSRVNAME</envar></primary>
5849
5884
</indexterm>
5850
- <envar>PGKRBSRVNAME</envar> behaves the same as <xref
5885
+ <envar>PGKRBSRVNAME</envar> behaves the same as the <xref
5851
5886
linkend="libpq-connect-krbsrvname"> connection parameter.
5852
5887
</para>
5853
5888
</listitem>
@@ -5857,7 +5892,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5857
5892
<indexterm>
5858
5893
<primary><envar>PGGSSLIB</envar></primary>
5859
5894
</indexterm>
5860
- <envar>PGGSSLIB</envar> behaves the same as <xref
5895
+ <envar>PGGSSLIB</envar> behaves the same as the <xref
5861
5896
linkend="libpq-connect-gsslib"> connection parameter.
5862
5897
</para>
5863
5898
</listitem>
@@ -5867,7 +5902,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
5867
5902
<indexterm>
5868
5903
<primary><envar>PGCONNECT_TIMEOUT</envar></primary>
5869
5904
</indexterm>
5870
- <envar>PGCONNECT_TIMEOUT</envar> behaves the same as <xref
5905
+ <envar>PGCONNECT_TIMEOUT</envar> behaves the same as the <xref
5871
5906
linkend="libpq-connect-connect-timeout"> connection parameter.
5872
5907
</para>
5873
5908
</listitem>
0 commit comments