Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87fa10a

Browse files
committed
Add pg_service.conf documentation for libpq.
1 parente24cea8 commit87fa10a

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.203 2006/02/28 22:35:35 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.204 2006/03/01 00:23:21 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -298,9 +298,7 @@ PGconn *PQconnectdb(const char *conninfo);
298298
Service name to use for additional parameters. It specifies a service
299299
name in <filename>pg_service.conf</filename> that holds additional connection parameters.
300300
This allows applications to specify only a service name so connection parameters
301-
can be centrally maintained. See
302-
<filename>share/pg_service.conf.sample</> in the installation
303-
directory for information on how to set up the file.
301+
can be centrally maintained. See <xref linkend="libpq-pgservice">.
304302
</para>
305303
</listitem>
306304
</varlistentry>
@@ -4031,6 +4029,35 @@ however.)
40314029
</sect1>
40324030

40334031

4032+
<sect1 id="libpq-pgservice">
4033+
<title>The Connection Service File</title>
4034+
4035+
<indexterm zone="libpq-pgservice">
4036+
<primary>connection service file</primary>
4037+
</indexterm>
4038+
<indexterm zone="libpq-pgservice">
4039+
<primary>pg_service.conf</primary>
4040+
</indexterm>
4041+
4042+
<para>
4043+
The connection service file allows libpq connection parameters to be
4044+
associated with a single service name. That service name can then be
4045+
specified by a libpq connection, and the associated settings will be
4046+
used. This allows connection parameters to be modified without requiring
4047+
a recompile of the libpq application. The service name can also be
4048+
specified using the <envar>PGSERVICE</envar> environment variable.
4049+
</para>
4050+
<para>
4051+
To use this feature, copy
4052+
<filename>share/pg_service.conf.sample</filename> to
4053+
<filename>etc/pg_service.conf</filename> and edit the file to add
4054+
service names and parameters. This file can be used for client-only
4055+
installs too. The file's location can also be specified by the
4056+
<envar>PGSYSCONFDIR</envar> environment variable.
4057+
</para>
4058+
</sect1>
4059+
4060+
40344061
<sect1 id="libpq-ssl">
40354062
<title>SSL Support</title>
40364063

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp