Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKtW9-0006Ro-9h for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 16:15:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TKtW7-0005OL-HT for pgsql-bugs@postgresql.org; Sun, 07 Oct 2012 16:15:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q97GFjqc012717; Sun, 7 Oct 2012 12:15:45 -0400 (EDT) From: Tom Lane To: foss@johnbradshaw.org cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7587: createdb allows invalid DB names In-reply-to: References: Comments: In-reply-to foss@johnbradshaw.org message dated "Sat, 06 Oct 2012 14:23:23 -0000" Date: Sun, 07 Oct 2012 12:15:44 -0400 Message-ID: <12715.1349626544@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/45 X-Sequence-Number: 34345 foss@johnbradshaw.org writes: > createdb allows illegal period/dot (".") in DB names. Can't ALTER DATABASE > name in psql as it doesn't allow periods/dots in database names. Had to > dropdb (which also allows dot in names) and recreate from dump. This isn't a bug --- those utilities treat whatever's given on the command line as being double-quoted. Their documentation fails to say this though :-( regards, tom lane