Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B53E7475E69 for ; Fri, 3 May 2002 11:21:58 -0400 (EDT) Received: from mailhost.mil.ameritech.net (mpdr0.milwaukee.wi.ameritech.net [65.43.19.132]) by postgresql.org (Postfix) with ESMTP id B3217475C5D for ; Fri, 3 May 2002 11:12:16 -0400 (EDT) Received: from wsmark ([64.108.128.29]) by mailhost.mil.ameritech.net (InterMail v4.01.01.07 201-229-111-110) with SMTP id <20020503154918.GKCH2830.mailhost.mil.ameritech.net@wsmark> for ; Fri, 3 May 2002 10:49:18 -0500 From: "Mark McEahern" To: Subject: configure datatype name > 31? Date: Fri, 3 May 2002 10:12:09 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200205/27 X-Sequence-Number: 4202 Hi, the name datatype, which is used at least here: pg_database.datname pg_shadow.usename is a 31 character field. That seems awfully low. For instance, what if I'm silly enough to want to make a database named: customer_GUID where GUID is something like: 0ff7d0cc-7394-4b15-a28e-7018b1056f9c You can imagine I have many customers, each with their own database; since I use a guid to distinguish the customers, it makes most sense to me to use a guid to distinguish their databases. Since GUIDs (in that form at least) are 36 characters, I'm already SOL. I can condense the data, but I'd really much rather just use it like it is. SQL Server 2000, for example, uses nvarchar(256) for the sysname field, which seems to perform a similar function. Is there a way to configure PostgreSQL to make the name field larger? Thanks, // mark