mirror of
https://github.com/postgres/postgres.git
synced 2025-12-13 14:22:43 +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:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.14 2000/11/13 15:18:14 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.15 2000/11/13 23:37:53 momjian Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
#include "prompt.h"
|
||||
@@ -190,11 +190,6 @@ get_prompt(promptStatus_t status)
|
||||
if (pset.db && PQport(pset.db))
|
||||
strncpy(buf, PQport(pset.db), MAX_PROMPT_SIZE);
|
||||
break;
|
||||
/* DB server Unix-domain socket */
|
||||
case '<':
|
||||
if (pset.db && PQunixsocket(pset.db))
|
||||
strncpy(buf, PQunixsocket(pset.db), MAX_PROMPT_SIZE);
|
||||
break;
|
||||
/* DB server user name */
|
||||
case 'n':
|
||||
if (pset.db)
|
||||
|
||||
Reference in New Issue
Block a user