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 2255624d406556e1b0dbf7074496cf321aff3faf..d4d3f3e3b1bafd3163ec30530e22a1be040e7db1 100644 (file)
@@ -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