]> granicus.if.org Git - postgresql/commitdiff
Just noticed that libpq thinks the maximum command tag length is 40,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Jul 2007 18:59:50 +0000 (18:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Jul 2007 18:59:50 +0000 (18:59 +0000)
whereas in the backend it's been 64 for some time.  Hasn't mattered
because no actual tags exceed 40 bytes, but for consistency they should
be alike.

src/interfaces/libpq/libpq-int.h

index a0728599a9edd6ce3236ddd0671d5365497a98b1..08a6bd1bb53053efb648b1415393ffb8461f319d 100644 (file)
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.125 2007/07/23 17:52:06 mha Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.126 2007/07/23 18:59:50 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -76,7 +76,7 @@ typedef struct {
 /*
  * POSTGRES backend dependent Constants.
  */
-#define CMDSTATUS_LEN 40
+#define CMDSTATUS_LEN 64               /* should match COMPLETION_TAG_BUFSIZE */
 
 /*
  * PGresult and the subsidiary types PGresAttDesc, PGresAttValue