Re: BUG #7587: createdb allows invalid DB names - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7587: createdb allows invalid DB names
Date
Msg-id 12715.1349626544@sss.pgh.pa.us
Whole thread Raw
In response to BUG #7587: createdb allows invalid DB names  (foss@johnbradshaw.org)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: foss@johnbradshaw.org
Date:
Subject: BUG #7587: createdb allows invalid DB names
Next
From: Tom Lane
Date:
Subject: Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27