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 $ -->
22
33<chapter id="libpq">
44 <title><application>libpq</application> - C Library</title>
249249 </listitem>
250250 </varlistentry>
251251
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+
252278 <varlistentry id="libpq-connect-tty" xreflabel="tty">
253279 <term><literal>tty</literal></term>
254280 <listitem>
@@ -5672,7 +5698,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
56725698 <indexterm>
56735699 <primary><envar>PGHOST</envar></primary>
56745700 </indexterm>
5675- <envar>PGHOST</envar> behaves the same as <xref
5701+ <envar>PGHOST</envar> behaves the same as the <xref
56765702 linkend="libpq-connect-host"> connection parameter.
56775703 </para>
56785704 </listitem>
@@ -5682,7 +5708,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
56825708 <indexterm>
56835709 <primary><envar>PGHOSTADDR</envar></primary>
56845710 </indexterm>
5685- <envar>PGHOSTADDR</envar> behaves the same as <xref
5711+ <envar>PGHOSTADDR</envar> behaves the same as the <xref
56865712 linkend="libpq-connect-hostaddr"> connection parameter.
56875713 This can be set instead of or in addition to <envar>PGHOST</envar>
56885714 to avoid DNS lookup overhead.
@@ -5694,7 +5720,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
56945720 <indexterm>
56955721 <primary><envar>PGPORT</envar></primary>
56965722 </indexterm>
5697- <envar>PGPORT</envar> behaves the same as <xref
5723+ <envar>PGPORT</envar> behaves the same as the <xref
56985724 linkend="libpq-connect-port"> connection parameter.
56995725 </para>
57005726 </listitem>
@@ -5704,7 +5730,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57045730 <indexterm>
57055731 <primary><envar>PGDATABASE</envar></primary>
57065732 </indexterm>
5707- <envar>PGDATABASE</envar> behaves the same as <xref
5733+ <envar>PGDATABASE</envar> behaves the same as the <xref
57085734 linkend="libpq-connect-dbname"> connection parameter.
57095735 </para>
57105736 </listitem>
@@ -5714,9 +5740,8 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57145740 <indexterm>
57155741 <primary><envar>PGUSER</envar></primary>
57165742 </indexterm>
5717- <envar>PGUSER</envar> behaves the same as <xref
5743+ <envar>PGUSER</envar> behaves the same as the <xref
57185744 linkend="libpq-connect-user"> connection parameter.
5719- database.
57205745 </para>
57215746 </listitem>
57225747
@@ -5725,12 +5750,12 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57255750 <indexterm>
57265751 <primary><envar>PGPASSWORD</envar></primary>
57275752 </indexterm>
5728- <envar>PGPASSWORD</envar> behaves the same as <xref
5753+ <envar>PGPASSWORD</envar> behaves the same as the <xref
57295754 linkend="libpq-connect-password"> connection parameter.
57305755 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
57325757 allow non-root users to see process environment variables via
5733- <application>ps</>) ; instead consider using the
5758+ <application>ps</>; instead consider using the
57345759 <filename>~/.pgpass</> file (see <xref linkend="libpq-pgpass">).
57355760 </para>
57365761 </listitem>
@@ -5751,7 +5776,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57515776 <indexterm>
57525777 <primary><envar>PGSERVICE</envar></primary>
57535778 </indexterm>
5754- <envar>PGSERVICE</envar> behaves the same as <xref
5779+ <envar>PGSERVICE</envar> behaves the same as the <xref
57555780 linkend="libpq-connect-service"> connection parameter.
57565781 </para>
57575782 </listitem>
@@ -5777,17 +5802,27 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57775802 <indexterm>
57785803 <primary><envar>PGOPTIONS</envar></primary>
57795804 </indexterm>
5780- <envar>PGOPTIONS</envar> behaves the same as <xref
5805+ <envar>PGOPTIONS</envar> behaves the same as the <xref
57815806 linkend="libpq-connect-options"> connection parameter.
57825807 </para>
57835808 </listitem>
57845809
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+
57855820 <listitem>
57865821 <para>
57875822 <indexterm>
57885823 <primary><envar>PGSSLMODE</envar></primary>
57895824 </indexterm>
5790- <envar>PGSSLMODE</envar> behaves the same as <xref
5825+ <envar>PGSSLMODE</envar> behaves the same as the <xref
57915826 linkend="libpq-connect-sslmode"> connection parameter.
57925827 </para>
57935828 </listitem>
@@ -5797,7 +5832,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
57975832 <indexterm>
57985833 <primary><envar>PGREQUIRESSL</envar></primary>
57995834 </indexterm>
5800- <envar>PGREQUIRESSL</envar> behaves the same as <xref
5835+ <envar>PGREQUIRESSL</envar> behaves the same as the <xref
58015836 linkend="libpq-connect-requiressl"> connection parameter.
58025837 </para>
58035838 </listitem>
@@ -5807,7 +5842,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58075842 <indexterm>
58085843 <primary><envar>PGSSLCERT</envar></primary>
58095844 </indexterm>
5810- <envar>PGSSLCERT</envar> behaves the same as <xref
5845+ <envar>PGSSLCERT</envar> behaves the same as the <xref
58115846 linkend="libpq-connect-sslcert"> connection parameter.
58125847 </para>
58135848 </listitem>
@@ -5817,7 +5852,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58175852 <indexterm>
58185853 <primary><envar>PGSSLKEY</envar></primary>
58195854 </indexterm>
5820- <envar>PGSSLKEY</envar> behaves the same as <xref
5855+ <envar>PGSSLKEY</envar> behaves the same as the <xref
58215856 linkend="libpq-connect-sslkey"> connection parameter.
58225857 </para>
58235858 </listitem>
@@ -5827,7 +5862,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58275862 <indexterm>
58285863 <primary><envar>PGSSLROOTCERT</envar></primary>
58295864 </indexterm>
5830- <envar>PGSSLROOTCERT</envar> behaves the same as <xref
5865+ <envar>PGSSLROOTCERT</envar> behaves the same as the <xref
58315866 linkend="libpq-connect-sslrootcert"> connection parameter.
58325867 </para>
58335868 </listitem>
@@ -5837,7 +5872,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58375872 <indexterm>
58385873 <primary><envar>PGSSLCRL</envar></primary>
58395874 </indexterm>
5840- <envar>PGSSLCRL</envar> behaves the same as <xref
5875+ <envar>PGSSLCRL</envar> behaves the same as the <xref
58415876 linkend="libpq-connect-sslcrl"> connection parameter.
58425877 </para>
58435878 </listitem>
@@ -5847,7 +5882,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58475882 <indexterm>
58485883 <primary><envar>PGKRBSRVNAME</envar></primary>
58495884 </indexterm>
5850- <envar>PGKRBSRVNAME</envar> behaves the same as <xref
5885+ <envar>PGKRBSRVNAME</envar> behaves the same as the <xref
58515886 linkend="libpq-connect-krbsrvname"> connection parameter.
58525887 </para>
58535888 </listitem>
@@ -5857,7 +5892,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58575892 <indexterm>
58585893 <primary><envar>PGGSSLIB</envar></primary>
58595894 </indexterm>
5860- <envar>PGGSSLIB</envar> behaves the same as <xref
5895+ <envar>PGGSSLIB</envar> behaves the same as the <xref
58615896 linkend="libpq-connect-gsslib"> connection parameter.
58625897 </para>
58635898 </listitem>
@@ -5867,7 +5902,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
58675902 <indexterm>
58685903 <primary><envar>PGCONNECT_TIMEOUT</envar></primary>
58695904 </indexterm>
5870- <envar>PGCONNECT_TIMEOUT</envar> behaves the same as <xref
5905+ <envar>PGCONNECT_TIMEOUT</envar> behaves the same as the <xref
58715906 linkend="libpq-connect-connect-timeout"> connection parameter.
58725907 </para>
58735908 </listitem>
0 commit comments