Skip to content

Commit ebd61ac

Browse files
committed
Remove -k unix socketpath option from client side, allow hostname with
leading slash to behave as a unix socket path.
1 parent d63a762 commit ebd61ac

32 files changed

+82
-304
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.45 2000/11/13 15:18:07 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.46 2000/11/13 23:37:51 momjian Exp $
33
-->
44

55
<chapter id="libpq-chapter">
@@ -1844,9 +1844,9 @@ Without a host name, libpq will connect using a local Unix domain socket.
18441844
</listitem>
18451845
<listitem>
18461846
<para>
1847-
<envar>PGPORT</envar> sets the default port or local Unix domain socket
1848-
file extension for communicating with the <productname>Postgres</productname>
1849-
backend.
1847+
<envar>PGPORT</envar> and <envar>PGUNIXSOCKET</envar> set the default
1848+
port or local Unix domain socket file extension for communicating with
1849+
the <productname>Postgres</productname> backend.
18501850
</para>
18511851
</listitem>
18521852
<listitem>

doc/src/sgml/ref/createdb.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.12 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createdb.sgml,v 1.13 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -56,18 +56,6 @@ Postgres documentation
5656
</listitem>
5757
</varlistentry>
5858

59-
<varlistentry>
60-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
61-
<listitem>
62-
<para>
63-
Specifies the Unix-domain socket on which the
64-
<application>postmaster</application> is running.
65-
Without this option, the socket is created in <filename>/tmp</filename>
66-
based on the port number.
67-
</para>
68-
</listitem>
69-
</varlistentry>
70-
7159
<varlistentry>
7260
<term>-U, --username <replaceable class="parameter">username</replaceable></term>
7361
<listitem>

doc/src/sgml/ref/createlang.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.11 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.12 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -101,18 +101,6 @@ Postgres documentation
101101
</listitem>
102102
</varlistentry>
103103

104-
<varlistentry>
105-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
106-
<listitem>
107-
<para>
108-
Specifies the Unix-domain socket on which the
109-
<application>postmaster</application> is running.
110-
Without this option, the socket is created in <filename>/tmp</filename>
111-
based on the port number.
112-
</para>
113-
</listitem>
114-
</varlistentry>
115-
116104
<varlistentry>
117105
<term>-U, --username <replaceable class="parameter">username</replaceable></term>
118106
<listitem>

doc/src/sgml/ref/createuser.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.11 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/createuser.sgml,v 1.12 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -55,18 +55,6 @@ Postgres documentation
5555
</listitem>
5656
</varlistentry>
5757

58-
<varlistentry>
59-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
60-
<listitem>
61-
<para>
62-
Specifies the Unix-domain socket on which the
63-
<application>postmaster</application> is running.
64-
Without this option, the socket is created in <filename>/tmp</filename>
65-
based on the port number.
66-
</para>
67-
</listitem>
68-
</varlistentry>
69-
7058
<varlistentry>
7159
<term>-e, --echo</term>
7260
<listitem>

doc/src/sgml/ref/dropdb.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.5 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.6 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -55,18 +55,6 @@ Postgres documentation
5555
</listitem>
5656
</varlistentry>
5757

58-
<varlistentry>
59-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
60-
<listitem>
61-
<para>
62-
Specifies the Unix-domain socket on which the
63-
<application>postmaster</application> is running.
64-
Without this option, the socket is created in <filename>/tmp</filename>
65-
based on the port number.
66-
</para>
67-
</listitem>
68-
</varlistentry>
69-
7058
<varlistentry>
7159
<term>-U, --username <replaceable class="parameter">username</replaceable></term>
7260
<listitem>

doc/src/sgml/ref/droplang.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.5 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/droplang.sgml,v 1.6 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -101,18 +101,6 @@ Postgres documentation
101101
</listitem>
102102
</varlistentry>
103103

104-
<varlistentry>
105-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
106-
<listitem>
107-
<para>
108-
Specifies the Unix-domain socket on which the
109-
<application>postmaster</application> is running.
110-
Without this option, the socket is created in <filename>/tmp</filename>
111-
based on the port number.
112-
</para>
113-
</listitem>
114-
</varlistentry>
115-
116104
<varlistentry>
117105
<term>-U, --username <replaceable class="parameter">username</replaceable></term>
118106
<listitem>

doc/src/sgml/ref/dropuser.sgml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.6 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.7 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -55,18 +55,6 @@ Postgres documentation
5555
</listitem>
5656
</varlistentry>
5757

58-
<varlistentry>
59-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
60-
<listitem>
61-
<para>
62-
Specifies the Unix-domain socket on which the
63-
<application>postmaster</application> is running.
64-
Without this option, the socket is created in <filename>/tmp</filename>
65-
based on the port number.
66-
</para>
67-
</listitem>
68-
</varlistentry>
69-
7058
<varlistentry>
7159
<term>-e, --echo</term>
7260
<listitem>

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.21 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.22 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -25,7 +25,6 @@ Postgres documentation
2525
<synopsis>
2626
pg_dump [ <replaceable class="parameter">dbname</replaceable> ]
2727
pg_dump [ -h <replaceable class="parameter">host</replaceable> ]
28-
[ -k <replaceable class="parameter">path</replaceable> ]
2928
[ -p <replaceable class="parameter">port</replaceable> ]
3029
[ -t <replaceable class="parameter">table</replaceable> ]
3130
[ -a ] [ -c ] [ -d ] [ -D ] [ -i ] [ -n ] [ -N ]
@@ -206,21 +205,6 @@ pg_dump [ -h <replaceable class="parameter">host</replaceable> ]
206205
</listitem>
207206
</varlistentry>
208207

209-
<varlistentry>
210-
<term>-k <replaceable class="parameter">path</replaceable></term>
211-
<listitem>
212-
<para>
213-
Specifies the local Unix domain socket file path
214-
on which the <application>postmaster</application>
215-
is listening for connections.
216-
Without this option, the socket path name defaults to
217-
the value of the <envar>PGUNIXSOCKET</envar> environment
218-
variable (if set), otherwise it is constructed
219-
from the port number.
220-
</para>
221-
</listitem>
222-
</varlistentry>
223-
224208
<varlistentry>
225209
<term>-p <replaceable class="parameter">port</replaceable></term>
226210
<listitem>

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.12 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.13 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -23,7 +23,7 @@ Postgres documentation
2323
<date>1999-07-20</date>
2424
</refsynopsisdivinfo>
2525
<synopsis>
26-
pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -k <replaceable class="parameter">path</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ] [ --accounts-only ]
26+
pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ] [ -a ] [ -d ] [ -D ] [ -O ] [ -s ] [ -u ] [ -v ] [ -x ] [ --accounts-only ]
2727
</synopsis>
2828

2929
<refsect2 id="R2-APP-PG-DUMPALL-1">
@@ -149,21 +149,6 @@ pg_dumpall [ -h <replaceable class="parameter">host</replaceable> ] [ -k <replac
149149
</listitem>
150150
</varlistentry>
151151

152-
<varlistentry>
153-
<term>-k <replaceable class="parameter">path</replaceable></term>
154-
<listitem>
155-
<para>
156-
Specifies the local Unix domain socket file path
157-
on which the <application>postmaster</application>
158-
is listening for connections.
159-
Without this option, the socket path name defaults to
160-
the value of the <envar>PGUNIXSOCKET</envar> environment
161-
variable (if set), otherwise it is constructed
162-
from the port number.
163-
</para>
164-
</listitem>
165-
</varlistentry>
166-
167152
<varlistentry>
168153
<term>-p <replaceable class="parameter">port</replaceable></term>
169154
<listitem>

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.41 2000/11/13 15:18:08 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.42 2000/11/13 23:37:51 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -1329,19 +1329,6 @@ Access permissions for database "test"
13291329
</varlistentry>
13301330

13311331

1332-
<varlistentry>
1333-
<term>-k, --unixsocket <replaceable class="parameter">path</replaceable></term>
1334-
<listitem>
1335-
<para>
1336-
Specifies the Unix-domain socket on which the
1337-
<application>postmaster</application> is running.
1338-
Without this option, the socket is created in <filename>/tmp</filename>
1339-
based on the port number.
1340-
</para>
1341-
</listitem>
1342-
</varlistentry>
1343-
1344-
13451332
<varlistentry>
13461333
<term>-H, --html</term>
13471334
<listitem>

0 commit comments

Comments
 (0)