Skip to content

Commit ab7d2b6

Browse files
committed
Just noticed that libpq thinks the maximum command tag length is 40,
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.
1 parent 29ac718 commit ab7d2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/libpq-int.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.125 2007/07/23 17:52:06 mha Exp $
15+
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.126 2007/07/23 18:59:50 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -76,7 +76,7 @@ typedef struct {
7676
/*
7777
* POSTGRES backend dependent Constants.
7878
*/
79-
#define CMDSTATUS_LEN 40
79+
#define CMDSTATUS_LEN 64 /* should match COMPLETION_TAG_BUFSIZE */
8080

8181
/*
8282
* PGresult and the subsidiary types PGresAttDesc, PGresAttValue

0 commit comments

Comments
 (0)