mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Update description for PGHOST and unix domain sockets. Add warning for failed connections.
This commit is contained in:
parent
7d2fafe636
commit
8d30b40843
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.51 1997/12/04 20:26:09 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.52 1997/12/04 20:32:35 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -572,7 +572,7 @@ connectDB(PGconn *conn)
|
|||||||
if (connect(port->sock, (struct sockaddr *) & port->raddr, len) < 0)
|
if (connect(port->sock, (struct sockaddr *) & port->raddr, len) < 0)
|
||||||
{
|
{
|
||||||
(void) sprintf(conn->errorMessage,
|
(void) sprintf(conn->errorMessage,
|
||||||
"connectDB() failed: Is the postmaster accepting%s connections at '%s' on port '%s'?\n",
|
"connectDB() failed: Is the postmaster running and accepting%s connections at '%s' on port '%s'?\n",
|
||||||
conn->pghost ? " TCP/IP(with -i)" : "",
|
conn->pghost ? " TCP/IP(with -i)" : "",
|
||||||
conn->pghost ? conn->pghost : "UNIX Socket",
|
conn->pghost ? conn->pghost : "UNIX Socket",
|
||||||
conn->pgport);
|
conn->pgport);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user