Re: BUG #7587: createdb allows invalid DB names

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: foss(at)johnbradshaw(dot)org
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7587: createdb allows invalid DB names
Date: 2012-10-07 16:15:44
Message-ID: 12715.1349626544@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

foss(at)johnbradshaw(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-10-07 16:36:04 Re: BUG #7588: pgsql 9.1 incompatible with zlib 1.27
Previous Message draco 2012-10-07 12:08:12 BUG #7588: pgsql 9.1 incompatible with zlib 1.27