From: Tom Lane <tgl@sss.pgh.pa.us>
To: foss@johnbradshaw.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7587: createdb allows invalid DB names
Date: Sun, 07 Oct 2012 12:15:44 -0400
Message-ID: <12715.1349626544@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TKVHn-0007tu-Nq@wrigleys.postgresql.org>
References: <E1TKVHn-0007tu-Nq@wrigleys.postgresql.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, foss@johnbradshaw.org
Subject: Re: BUG #7587: createdb allows invalid DB names
In-Reply-To: <12715.1349626544@sss.pgh.pa.us>
References: <E1TKVHn-0007tu-Nq@wrigleys.postgresql.org> <12715.1349626544@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox