* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqformat.c,v 1.16 2001/01/24 19:42:56 momjian Exp $
+ * $Id: pqformat.c,v 1.17 2001/04/16 01:46:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
void
pq_endmessage(StringInfo buf)
{
- if (pq_putmessage('\0', buf->data, buf->len))
- {
- snprintf(PQerrormsg, PQERRORMSG_LENGTH,
- "FATAL: pq_endmessage failed: errno=%d\n", errno);
- fputs(PQerrormsg, stderr);
- pqdebug("%s", PQerrormsg);
- }
+ (void) pq_putmessage('\0', buf->data, buf->len);
+ /* no need to complain about any failure, since pqcomm.c already did */
pfree(buf->data);
buf->data = NULL;
}