Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 955842E473A for ; Tue, 8 Jan 2008 16:59:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 57140-03 for ; Tue, 8 Jan 2008 16:59:07 -0400 (AST) Received: from polaris.pinpointresearch.com (66-7-238-130.static-ip.telepacific.net [66.7.238.130]) by postgresql.org (Postfix) with ESMTP id D80FB2E4565 for ; Tue, 8 Jan 2008 16:59:15 -0400 (AST) Received: from [192.168.1.179] (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 3915DE00EC80; Tue, 8 Jan 2008 12:59:11 -0800 (PST) Message-ID: <4783E41F.6040608@pinpointresearch.com> Date: Tue, 08 Jan 2008 12:59:11 -0800 From: Steve Crawford User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Chris Hoover CC: "pgsql-admin@postgresql.org Admin" Subject: Re: All numeric database names? References: <1d219a6f0801081103m183c00a2k38c3e01b99b7b48b@mail.gmail.com> In-Reply-To: <1d219a6f0801081103m183c00a2k38c3e01b99b7b48b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/90 X-Sequence-Number: 27864 Chris Hoover wrote: > Just wanted to check, are there any problems/gotcha's to having a > cluster of all numeric database names? We are thinking of switching > our database naming system to use our customer number (a 6 digit > integer) for the database name. Is a negative/bad thing? Technically speaking, it will be of data type "name". You can use all digits for the database name as you can with tables and columns (create table "1" ("2" text);) but you may run into places where you have to quote the name. For instance, in psql you might need to switch databases with: \c "123456" instead of \c 123456 Alternately, you could prepend 1+ alpha characters to the customer numbers to create names like c123456 or cust123456 which don't need to be quote-enclosed. Personally, I try to avoid reserved words and anything else that requires special handling. Cheers, Steve