pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark McEahern <marklists@mceahern.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: configure datatype name > 31?
Date: Mon, 13 May 2002 14:16:29 -0400
Message-ID: <11810.1021313789@sss.pgh.pa.us> (raw)
In-Reply-To: <NCBBLFCOHHDIKCAFGCFBIEINKPAA.marklists@mceahern.com>
References: <NCBBLFCOHHDIKCAFGCFBIEINKPAA.marklists@mceahern.com>

"Mark McEahern" <marklists@mceahern.com> 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 ...

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <11810.1021313789@sss.pgh.pa.us>
Permalink:  ../11810.1021313789@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11810.1021313789@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, marklists@mceahern.com
  Subject: Re: configure datatype name > 31?
  In-Reply-To: <11810.1021313789@sss.pgh.pa.us>
  References: <NCBBLFCOHHDIKCAFGCFBIEINKPAA.marklists@mceahern.com> <11810.1021313789@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox