Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 756D2475F81 for ; Mon, 3 Jun 2002 18:57:22 -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 14D4047593B for ; Mon, 3 Jun 2002 18:57:21 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g53MvDX09153; Mon, 3 Jun 2002 18:57:13 -0400 (EDT) From: Bruce Momjian Message-Id: <200206032257.g53MvDX09153@candle.pha.pa.us> Subject: Re: configure datatype name > 31? In-Reply-To: <12436.1023143414@sss.pgh.pa.us> To: Tom Lane Date: Mon, 3 Jun 2002 18:57:13 -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/14 X-Sequence-Number: 4449 Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> 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. > > Actually, I had no such change in mind. IMHO the right fix is to > eliminate the fixed-width fields entirely. I see no good reason why > the startup packet shouldn't be several null-terminated strings with > no presupposed lengths. In most cases that would actually make the > packet shorter than it is now. > > We'd probably want an overall sanity-check limit on the packet size, > but it could be of the order of 10K without any problem that I could > see. I added another comment at the top of those defines: /* These should all be of near-unlimited length, perhap 10k */ I left the SM_USER comment in because we should document that the difference between it and SM_* values is arbitrary. -- 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