Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 0A5B8475AA2 for ; Sun, 2 Jun 2002 21:09:12 -0400 (EDT) Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 7BBAC475CCE for ; Sun, 2 Jun 2002 21:08:51 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g5316Jp23632; Sun, 2 Jun 2002 21:06:19 -0400 (EDT) From: Bruce Momjian Message-Id: <200206030106.g5316Jp23632@candle.pha.pa.us> Subject: Re: configure datatype name > 31? In-Reply-To: <11810.1021313789@sss.pgh.pa.us> To: Tom Lane Date: Sun, 2 Jun 2002 21:06:18 -0400 (EDT) Cc: Mark McEahern , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200206/3 X-Sequence-Number: 4438 Tom Lane wrote: > "Mark McEahern" writes: > > Tom, thanks for your reply. I am now able to create databases and users > > with longer names, but I am unable to login with the long username. > > I think you're stuck on that, unless you want to be *really* > incompatible with the rest of the world. The startup packet format has > hard-wired field sizes --- see src/include/libpq/pqcomm.h: > > #define SM_DATABASE 64 > #define SM_USER 32 > #define SM_OPTIONS 64 > #define SM_UNUSED 64 > #define SM_TTY 64 > > Don't ask me why SM_USER is different from the rest :-( > > If you change these I'd strongly advise bumping the protocol minor > version number, so that you don't have weird behavior should you try > to interoperate with standard code. > > This is another thing that should be on the list of stuff to fix when > we next change the FE/BE protocol ... Comment added to source that SM_USER length should match the others. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026