Re: reg:create database - Mailing list pgsql-admin

From Jim C. Nasby
Subject Re: reg:create database
Date
Msg-id 20060327114309.GV80726@pervasive.com
Whole thread Raw
In response to Re: reg:create database  ("sandhya" <sandhyar@amiindia.co.in>)
List pgsql-admin
On Mon, Mar 27, 2006 at 04:57:29PM +0530, sandhya wrote:
> > > In the document they mentioned that . is used as a seperator for a
> > > table/column name...So Is it any way to use dot while creating a
> > > table/database
> >
> > decibel=# create database "dot.test";
> > CREATE DATABASE
> > decibel=# \c "dot.test"
> > You are now connected to database "dot.test".
> > dot.test=#
> >
> > Now, just because you can do this doesn't mean it's a very good idea...
> oh.....ok
> Now, just because you can do this doesn't mean it's a very good idea...
> Why?

Because it's likely to lead to confusion, since SQL uses dots as
seperators between databases, schemas, and objects; ie:
databasename.schemaname.tablename.columname. Granted, PostgreSQL doesn't
(currently) allow you to do per-database specifications, but that could
change. In any case, it's asking for trouble.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

pgsql-admin by date:

Previous
From: "Andy Shellam"
Date:
Subject: Re: reg:create database
Next
From: Peter Eisentraut
Date:
Subject: Re: database locale and system locale