mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove -k unix socketpath option from client side, allow hostname with
leading slash to behave as a unix socket path.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.178 2000/11/13 15:18:13 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.179 2000/11/13 23:37:52 momjian Exp $
|
||||
*
|
||||
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
||||
*
|
||||
@@ -200,7 +200,6 @@ help(const char *progname)
|
||||
" -F, --format {c|f|p} output file format (custom, files, plain text)\n"
|
||||
" -h, --host <hostname> server host name\n"
|
||||
" -i, --ignore-version proceed when database version != pg_dump version\n"
|
||||
" -k, --unixsocket <path> server Unix-domain socket name\n"
|
||||
" -n, --no-quotes suppress most quotes around identifiers\n"
|
||||
" -N, --quotes enable most quotes around identifiers\n"
|
||||
" -o, --oids dump object ids (oids)\n"
|
||||
@@ -227,7 +226,6 @@ help(const char *progname)
|
||||
" -F {c|f|p} output file format (custom, files, plain text)\n"
|
||||
" -h <hostname> server host name\n"
|
||||
" -i proceed when database version != pg_dump version\n"
|
||||
" -k <path> server Unix-domain socket name\n"
|
||||
" -n suppress most quotes around identifiers\n"
|
||||
" -N enable most quotes around identifiers\n"
|
||||
" -o dump object ids (oids)\n"
|
||||
@@ -631,7 +629,6 @@ main(int argc, char **argv)
|
||||
const char *dbname = NULL;
|
||||
const char *pghost = NULL;
|
||||
const char *pgport = NULL;
|
||||
const char *pgunixsocket = NULL;
|
||||
char *tablename = NULL;
|
||||
bool oids = false;
|
||||
TableInfo *tblinfo;
|
||||
@@ -661,7 +658,6 @@ main(int argc, char **argv)
|
||||
{"attribute-inserts", no_argument, NULL, 'D'},
|
||||
{"host", required_argument, NULL, 'h'},
|
||||
{"ignore-version", no_argument, NULL, 'i'},
|
||||
{"unixsocket", required_argument, NULL, 'k'},
|
||||
{"no-reconnect", no_argument, NULL, 'R'},
|
||||
{"no-quotes", no_argument, NULL, 'n'},
|
||||
{"quotes", no_argument, NULL, 'N'},
|
||||
@@ -756,10 +752,6 @@ main(int argc, char **argv)
|
||||
ignore_version = true;
|
||||
break;
|
||||
|
||||
case 'k': /* server Unix-domain socket */
|
||||
pgunixsocket = optarg;
|
||||
break;
|
||||
|
||||
case 'n': /* Do not force double-quotes on
|
||||
* identifiers */
|
||||
force_quotes = false;
|
||||
@@ -956,8 +948,7 @@ main(int argc, char **argv)
|
||||
dbname = argv[optind];
|
||||
|
||||
/* Open the database using the Archiver, so it knows about it. Errors mean death */
|
||||
g_conn = ConnectDatabase(g_fout, dbname, pghost, pgport, pgunixsocket,
|
||||
use_password, ignore_version);
|
||||
g_conn = ConnectDatabase(g_fout, dbname, pghost, pgport, use_password, ignore_version);
|
||||
|
||||
/*
|
||||
* Start serializable transaction to dump consistent data
|
||||
|
Reference in New Issue
Block a user