Enlarge POOLCONFIG_MAXDESCLEN to 80.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 19 Feb 2015 01:33:57 +0000 (10:33 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 21 Feb 2015 04:36:49 +0000 (13:36 +0900)
This is used in show pool_status command and limits the length of
parameter description.  Unfortunately recovery_timeout description is
64 chars, which is 1 byte longer than former definition of the macro
because we need on more byte for null termination.

pcp/libpcp_ext.h

index 0475ec3f7bc415517b062641abd691e8f1d67c9b..b10a8e971f12955df887c390d4fbd6e103a9b132 100644 (file)
@@ -4,7 +4,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL 
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2011     PgPool Global Development Group
+ * Copyright (c) 2003-2015     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -163,7 +163,7 @@ typedef struct {
 #define POOLCONFIG_MAXIDLEN 4
 #define POOLCONFIG_MAXNAMELEN 64
 #define POOLCONFIG_MAXVALLEN 512
-#define POOLCONFIG_MAXDESCLEN 64
+#define POOLCONFIG_MAXDESCLEN 80
 #define POOLCONFIG_MAXIDENTLEN 63
 #define POOLCONFIG_MAXPORTLEN 6
 #define POOLCONFIG_MAXSTATLEN 2