Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8de7241

Browse files
committed
Document the -h client flag can use a socket directory as well as a host
name.
1 parent b83f711 commit 8de7241

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

src/bin/pg_dump/pg_dump.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.331 2003/05/30 22:55:15 tgl Exp $
15+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.332 2003/06/11 05:13:08 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -694,7 +694,7 @@ help(const char *progname)
694694
" disable triggers during data-only restore\n"));
695695

696696
printf(_("\nConnection options:\n"));
697-
printf(_(" -h, --host=HOSTNAME database server host name\n"));
697+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
698698
printf(_(" -p, --port=PORT database server port number\n"));
699699
printf(_(" -U, --username=NAME connect as specified database user\n"));
700700
printf(_(" -W, --password force password prompt (should happen automatically)\n"));

src/bin/pg_dump/pg_dumpall.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.20 2003/05/30 23:55:10 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.21 2003/06/11 05:13:11 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -253,7 +253,7 @@ help(void)
253253
printf(_(" --version output version information, then exit\n"));
254254

255255
printf(_("\nConnection options:\n"));
256-
printf(_(" -h, --host=HOSTNAME database server host name\n"));
256+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
257257
printf(_(" -p, --port=PORT database server port number\n"));
258258
printf(_(" -U, --username=NAME connect as specified database user\n"));
259259
printf(_(" -W, --password force password prompt (should happen automatically)\n"));

src/bin/pg_dump/pg_restore.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
*
3636
* IDENTIFICATION
37-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.45 2003/04/04 20:42:13 momjian Exp $
37+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.46 2003/06/11 05:13:11 momjian Exp $
3838
*
3939
*-------------------------------------------------------------------------
4040
*/
@@ -409,7 +409,7 @@ usage(const char *progname)
409409
" disable triggers during data-only restore\n"));
410410

411411
printf(_("\nConnection options:\n"));
412-
printf(_(" -h, --host=HOSTNAME database server host name\n"));
412+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
413413
printf(_(" -p, --port=PORT database server port number\n"));
414414
printf(_(" -U, --username=NAME connect as specified database user\n"));
415415
printf(_(" -W, --password force password prompt (should happen automatically)\n"));

src/bin/psql/help.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.72 2003/04/14 16:23:36 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.73 2003/06/11 05:13:11 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -123,7 +123,7 @@ usage(void)
123123
puts(_("\nConnection options:"));
124124
/* Display default host */
125125
env = getenv("PGHOST");
126-
printf(_(" -h HOSTNAME specify database server host (default: %s)\n"),
126+
printf(_(" -h HOSTNAME specify database server host or socket directory (default: %s)\n"),
127127
env ? env : _("local socket"));
128128
/* Display default port */
129129
env = getenv("PGPORT");

src/bin/scripts/clusterdb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/clusterdb,v 1.11 2003/05/14 03:26:03 tgl Exp $
14+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/clusterdb,v 1.12 2003/06/11 05:13:12 momjian Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -123,7 +123,7 @@ if [ "$usage" ]; then
123123
echo " --help show this help, then exit"
124124
echo
125125
echo "Connection options:"
126-
echo " -h, --host=HOSTNAME database server host"
126+
echo " -h, --host=HOSTNAME database server host or socket directory"
127127
echo " -p, --port=PORT database server port"
128128
echo " -U, --username=USERNAME user name to connect as"
129129
echo " -W, --password prompt for password"

src/bin/scripts/createdb.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/createdb.c,v 1.2 2003/05/14 03:26:03 tgl Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/createdb.c,v 1.3 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -223,7 +223,7 @@ help(const char *progname)
223223
printf(_(" --help show this help, then exit\n"));
224224
printf(_(" --version output version information, then exit\n"));
225225
printf(_("\nConnection options:\n"));
226-
printf(_(" -h, --host=HOSTNAME database server host\n"));
226+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
227227
printf(_(" -p, --port=PORT database server port\n"));
228228
printf(_(" -U, --username=USERNAME user name to connect as\n"));
229229
printf(_(" -W, --password prompt for password\n"));

src/bin/scripts/createlang.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/createlang.c,v 1.2 2003/05/14 03:26:03 tgl Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/createlang.c,v 1.3 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -276,7 +276,7 @@ help(const char *progname)
276276
printf(_(" -e, --echo show the commands being sent to the server\n"));
277277
printf(_(" -l, --list show a list of currently installed languages\n"));
278278
printf(_(" -L, --pglib=DIRECTORY find language interpreter file in DIRECTORY\n"));
279-
printf(_(" -h, --host=HOSTNAME database server host\n"));
279+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
280280
printf(_(" -p, --port=PORT database server port\n"));
281281
printf(_(" -U, --username=USERNAME user name to connect as\n"));
282282
printf(_(" -W, --password prompt for password\n"));

src/bin/scripts/createuser.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/createuser.c,v 1.3 2003/05/27 19:36:54 petere Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/createuser.c,v 1.4 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -248,7 +248,7 @@ help(const char *progname)
248248
printf(_(" --help show this help, then exit\n"));
249249
printf(_(" --version output version information, then exit\n"));
250250
printf(_("\nConnection options:\n"));
251-
printf(_(" -h, --host=HOSTNAME database server host\n"));
251+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
252252
printf(_(" -p, --port=PORT database server port\n"));
253253
printf(_(" -U, --username=USERNAME user name to connect as (not the one to create)\n"));
254254
printf(_(" -W, --password prompt for password to connect\n"));

src/bin/scripts/dropdb.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/dropdb.c,v 1.3 2003/05/27 19:36:54 petere Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/dropdb.c,v 1.4 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -146,7 +146,7 @@ help(const char *progname)
146146
printf(_(" -e, --echo show the commands being sent to the server\n"));
147147
printf(_(" -i, --interactive prompt before deleting anything\n"));
148148
printf(_(" -q, --quiet don't write any messages\n"));
149-
printf(_(" -h, --host=HOSTNAME database server host\n"));
149+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
150150
printf(_(" -p, --port=PORT database server port\n"));
151151
printf(_(" -U, --username=USERNAME user name to connect as\n"));
152152
printf(_(" -W, --password prompt for password\n"));

src/bin/scripts/droplang.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/droplang.c,v 1.2 2003/05/14 03:26:03 tgl Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/droplang.c,v 1.3 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -244,7 +244,7 @@ help(const char *progname)
244244
printf(_(" -d, --dbname=DBNAME database to install language in\n"));
245245
printf(_(" -e, --echo show the commands being sent to the server\n"));
246246
printf(_(" -l, --list show a list of currently installed languages\n"));
247-
printf(_(" -h, --host=HOSTNAME database server host\n"));
247+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
248248
printf(_(" -p, --port=PORT database server port\n"));
249249
printf(_(" -U, --username=USERNAME user name to connect as\n"));
250250
printf(_(" -W, --password prompt for password\n"));

src/bin/scripts/dropuser.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Header: /cvsroot/pgsql/src/bin/scripts/dropuser.c,v 1.3 2003/05/27 19:36:55 petere Exp $
8+
* $Header: /cvsroot/pgsql/src/bin/scripts/dropuser.c,v 1.4 2003/06/11 05:13:12 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -143,10 +143,10 @@ help(const char *progname)
143143
printf(_("Usage:\n"));
144144
printf(_(" %s [OPTION]... [USERNAME]\n"), progname);
145145
printf(_("\nOptions:\n"));
146-
printf(_(" -e, --echo show the commands being sent to the server\n"));
146+
printf(_(" -e, --echo show the commands being sent to the server\n"));
147147
printf(_(" -i, --interactive prompt before deleting anything\n"));
148-
printf(_(" -q, --quiet don't write any messages\n"));
149-
printf(_(" -h, --host=HOSTNAME database server host\n"));
148+
printf(_(" -q, --quiet don't write any messages\n"));
149+
printf(_(" -h, --host=HOSTNAME database server host or socket directory\n"));
150150
printf(_(" -p, --port=PORT database server port\n"));
151151
printf(_(" -U, --username=USERNAME user name to connect as (not the one to drop)\n"));
152152
printf(_(" -W, --password prompt for password to connect\n"));

src/bin/scripts/vacuumdb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
#
1414
# IDENTIFICATION
15-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.27 2003/05/14 03:26:03 tgl Exp $
15+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/vacuumdb,v 1.28 2003/06/11 05:13:12 momjian Exp $
1616
#
1717
#-------------------------------------------------------------------------
1818

@@ -140,7 +140,7 @@ if [ "$usage" ]; then
140140
echo " --help show this help, then exit"
141141
echo
142142
echo "Connection options:"
143-
echo " -h, --host=HOSTNAME database server host"
143+
echo " -h, --host=HOSTNAME database server host or socket directory"
144144
echo " -p, --port=PORT database server port"
145145
echo " -U, --username=USERNAME user name to connect as"
146146
echo " -W, --password prompt for password"

0 commit comments

Comments
 (0)