<!--
-$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.175 2005/01/06 18:29:07 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.176 2005/01/06 21:20:43 tgl Exp $
-->
<chapter id="libpq">
that can contain passwords to be used if the connection requires a
password (and no password has been specified otherwise).
On Microsoft Windows the file is named
-<filename>APPDATA/postgresql/pgpass.txt</>.
+<filename>%APPDATA%\postgresql\pgpass.txt</> (where <filename>%APPDATA%</>
+refers to the Application Data subdirectory in the user's profile).
</para>
<para>
A matching private key file <filename>~/.postgresql/postgresql.key</>
must also be present, and must not be world-readable.
(On Microsoft Windows these files are named
- <filename>APPDATA/postgresql/postgresql.crt</filename> and
- <filename>APPDATA/postgresql/postgresql.key</filename>.)
+ <filename>%APPDATA%\postgresql\postgresql.crt</filename> and
+ <filename>%APPDATA%\postgresql\postgresql.key</filename>.)
</para>
<para>
<application>libpq</application> will use the certificate list stored
therein to verify the server's certificate.
(On Microsoft Windows the file is named
- <filename>APPDATA/postgresql/root.crt</filename>.)
+ <filename>%APPDATA%\postgresql\root.crt</filename>.)
The SSL connection will
fail if the server does not present a certificate; therefore, to
use this feature the server must also have a <filename>root.crt</> file.
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.128 2005/01/06 18:29:08 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.129 2005/01/06 21:20:44 tgl Exp $
PostgreSQL documentation
-->
<filename>psqlrc</filename> file and the user's
<filename>~/.psqlrc</filename> file.
(On Windows, the user's startup file is named
- <filename>APPDATA/postgresql/psqlrc.txt</filename>.)
+ <filename>%APPDATA%\postgresql\psqlrc.txt</filename>.)
See <filename><replaceable>PREFIX</>/share/psqlrc.sample</>
for information on setting up the system-wide file. It could be used
to set up the client or the server to taste (using the <command>\set
<para>
The command-line history is stored in the file
<filename>~/.psql_history</filename>, or
- <filename>APPDATA/postgresql/psql_history</filename> on Windows.
+ <filename>%APPDATA%\postgresql\psql_history</filename> on Windows.
</para>
</listitem>
</itemizedlist>