aboutsummaryrefslogtreecommitdiff
path: root/src/include/libpq/libpq.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/libpq/libpq.h')
-rw-r--r--src/include/libpq/libpq.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h
index 463c5564b41..07d6d3ef31b 100644
--- a/src/include/libpq/libpq.h
+++ b/src/include/libpq/libpq.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq.h,v 1.33 1999/08/31 04:26:33 tgl Exp $
+ * $Id: libpq.h,v 1.34 1999/10/23 03:13:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -135,15 +135,15 @@ extern Exception MemoryError,
ProtocolError;
/*
- * POSTGRES backend dependent Constants.
+ * PQerrormsg[] is used only for error messages generated within backend
+ * libpq, none of which are remarkably long. Note that this length should
+ * NOT be taken as any indication of the maximum error message length that
+ * the backend can create! elog() can in fact produce extremely long messages.
*/
-/* ERROR_MSG_LENGTH should really be the same as ELOG_MAXLEN in utils/elog.h*/
-#define ERROR_MSG_LENGTH 4096
-#define COMMAND_LENGTH 20
-#define REMARK_LENGTH 80
+#define PQERRORMSG_LENGTH 1024
-extern char PQerrormsg[ERROR_MSG_LENGTH]; /* in portal.c */
+extern char PQerrormsg[PQERRORMSG_LENGTH]; /* in libpq/util.c */
/*
* External functions.