pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: sandhya <sandhyar@amiindia.co.in>
Cc: Michael Fuhr <mike@fuhr.org>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: reg:create database
Date: Mon, 27 Mar 2006 05:43:09 -0600
Message-ID: <20060327114309.GV80726@pervasive.com> (raw)
In-Reply-To: <019701c65191$6edfb420$cd00000a@sandhyar>
References: <00e501c65169$815dc560$cd00000a@sandhyar>
	<20060327064536.GA21988@winnie.fuhr.org>
	<015001c65181$876df840$cd00000a@sandhyar>
	<20060327103825.GR80726@pervasive.com>
	<019701c65191$6edfb420$cd00000a@sandhyar>

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



view thread (9+ messages)

Message-ID: <20060327114309.GV80726@pervasive.com>
Permalink:  ../20060327114309.GV80726@pervasive.com/
Also on:    postgresql.org/message-id/20060327114309.GV80726@pervasive.com

 · 

reply

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-admin@postgresql.org
  Cc: jnasby@pervasive.com, sandhyar@amiindia.co.in, mike@fuhr.org
  Subject: Re: reg:create database
  In-Reply-To: <20060327114309.GV80726@pervasive.com>
  References: <00e501c65169$815dc560$cd00000a@sandhyar> <20060327064536.GA21988@winnie.fuhr.org> <015001c65181$876df840$cd00000a@sandhyar> <20060327103825.GR80726@pervasive.com> <019701c65191$6edfb420$cd00000a@sandhyar> <20060327114309.GV80726@pervasive.com>

* 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