*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.320 2005/08/23 21:02:03 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.321 2005/09/26 17:49:09 petere Exp $
*
*-------------------------------------------------------------------------
*/
{
/* Received error - probably protocol mismatch */
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("Postmaster reports error, attempting fallback to pre-7.0.\n"));
+ fprintf(conn->Pfdebug, "received error from server, attempting fallback to pre-7.0\n");
if (conn->sslmode[0] == 'r') /* "require" */
{
/* Require SSL, but server is too old */
f = fopen(serviceFile, "r");
if (f == NULL)
{
- printfPQExpBuffer(errorMessage, libpq_gettext("ERROR: Service file '%s' not found\n"),
+ printfPQExpBuffer(errorMessage, libpq_gettext("ERROR: service file \"%s\" not found\n"),
serviceFile);
return 1;
}
{
fclose(f);
printfPQExpBuffer(errorMessage,
- libpq_gettext("ERROR: line %d too long in service file '%s'\n"),
+ libpq_gettext("ERROR: line %d too long in service file \"%s\"\n"),
linenr,
serviceFile);
return 2;
if (val == NULL)
{
printfPQExpBuffer(errorMessage,
- libpq_gettext("ERROR: syntax error in service file '%s', line %d\n"),
+ libpq_gettext("ERROR: syntax error in service file \"%s\", line %d\n"),
serviceFile,
linenr);
fclose(f);
if (!found_keyword)
{
printfPQExpBuffer(errorMessage,
- libpq_gettext("ERROR: syntax error in service file '%s', line %d\n"),
+ libpq_gettext("ERROR: syntax error in service file \"%s\", line %d\n"),
serviceFile,
linenr);
fclose(f);
if (!S_ISREG(stat_buf.st_mode))
{
fprintf(stderr,
- libpq_gettext("WARNING: Password file %s is not a plain file.\n"),
+ libpq_gettext("WARNING: password file \"%s\" is not a plain file\n"),
pgpassfile);
free(pgpassfile);
return NULL;
if (stat_buf.st_mode & (S_IRWXG | S_IRWXO))
{
fprintf(stderr,
- libpq_gettext("WARNING: Password file %s has world or group read access; permission should be u=rw (0600)\n"),
+ libpq_gettext("WARNING: password file \"%s\" has world or group read access; permission should be u=rw (0600)\n"),
pgpassfile);
return NULL;
}
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.120 2005/09/24 17:53:28 tgl Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.121 2005/09/26 17:49:09 petere Exp $
*
*-------------------------------------------------------------------------
*/
*result = conn->inBuffer[conn->inCursor++];
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("From backend> %c\n"), *result);
+ fprintf(conn->Pfdebug, "From backend> %c\n", *result);
return 0;
}
return EOF;
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend> %c\n"), c);
+ fprintf(conn->Pfdebug, "To backend> %c\n", c);
return 0;
}
conn->inCursor = ++inCursor;
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("From backend> \"%s\"\n"),
+ fprintf(conn->Pfdebug, "From backend> \"%s\"\n",
buf->data);
return 0;
return EOF;
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend> '%s'\n"), s);
+ fprintf(conn->Pfdebug, "To backend> \"%s\"\n", s);
return 0;
}
conn->inCursor += len;
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("From backend (%lu)> %.*s\n"),
+ fprintf(conn->Pfdebug, "From backend (%lu)> %.*s\n",
(unsigned long) len, (int) len, s);
return 0;
return EOF;
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend> %.*s\n"), (int) len, s);
+ fprintf(conn->Pfdebug, "To backend> %.*s\n", (int) len, s);
return 0;
}
}
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("From backend (#%lu)> %d\n"), (unsigned long) bytes, *result);
+ fprintf(conn->Pfdebug, "From backend (#%lu)> %d\n", (unsigned long) bytes, *result);
return 0;
}
}
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend (%lu#)> %d\n"), (unsigned long) bytes, value);
+ fprintf(conn->Pfdebug, "To backend (%lu#)> %d\n", (unsigned long) bytes, value);
return 0;
}
/* length word, if needed, will be filled in by pqPutMsgEnd */
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend> Msg %c\n"),
+ fprintf(conn->Pfdebug, "To backend> Msg %c\n",
msg_type ? msg_type : ' ');
return 0;
pqPutMsgEnd(PGconn *conn)
{
if (conn->Pfdebug)
- fprintf(conn->Pfdebug, libpq_gettext("To backend> Msg complete, length %u\n"),
+ fprintf(conn->Pfdebug, "To backend> Msg complete, length %u\n",
conn->outMsgEnd - conn->outCount);
/* Fill in length word if needed */