99 * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1010 * Portions Copyright (c) 1994, Regents of the University of California
1111 *
12- * $Id: pqcomm.h,v 1.66 2002/08/18 03:03:26 momjian Exp $
12+ * $Id: pqcomm.h,v 1.67 2002/08/27 15:15:23 momjian Exp $
1313 *
1414 *-------------------------------------------------------------------------
1515 */
@@ -106,10 +106,18 @@ typedef uint32 PacketLen;
106106
107107/*
108108 * Startup message parameters sizes. These must not be changed without changing
109- * theprotcol version. These are all strings that are '\0' terminated only if
109+ * theprotocol version. These are all strings that are '\0' terminated only if
110110 * there is room.
111111 */
112112
113+ /*
114+ * FIXME: remove the fixed size limitations on database & user name, use
115+ * variable length fields instead. The actual values will still be
116+ * limited by NAMEDATALEN, but this will at least allow changing
117+ * NAMEDATALEN to increase database & user name limits without changing
118+ * the protocol. -neilc, 2002/08/27
119+ */
120+
113121/* These should all be of near-unlimited length, perhap 10k */
114122#define SM_DATABASE 64
115123/* SM_USER should be the same size as the others. bjm 2002-06-02 */
@@ -120,7 +128,7 @@ typedef uint32 PacketLen;
120128#define SM_UNUSED 64
121129#define SM_TTY 64
122130
123- typedef uint32 ProtocolVersion ;/* Fe/Be protocol versionnr. */
131+ typedef uint32 ProtocolVersion ;/* Fe/Be protocol versionnumber */
124132
125133typedef struct StartupPacket
126134{