pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Bret Hughes <bhughes@elevating.com>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: postgresql sql list <pgsql-sql@postgresql.org>
Subject: Re: trigger/for key help
Date: Tue, 13 Apr 2004 14:35:24 -0400
Message-ID: <25084.1081881324@sss.pgh.pa.us> (raw)
In-Reply-To: <87wu4jdblq.fsf@stark.xeocode.com>
References: <1081662204.6609.72.camel@bretsony>
	<20040411080932.Q83278@megazone.bigpanda.com>
	<1081711155.6399.165.camel@bretsony>
	<17189.1081720813@sss.pgh.pa.us>
	<1081724318.2628.20.camel@bretsony>
	<28212.1081736841@sss.pgh.pa.us>
	<873c78e6wf.fsf@stark.xeocode.com>
	<21878.1081862704@sss.pgh.pa.us>
	<87wu4jdblq.fsf@stark.xeocode.com>

Greg Stark <gsstark@mit.edu> writes:
>>> Is there a reason postgres goes out of its way to pick names that
>>> will be harder to work with than necessary?

> I don't see an unseverable link between "user name space" and "identifiers
> that don't need to be quoted". Mixed case names for instance seem like
> perfectly good user name space identifiers.

Sure, but they still have to be quoted.  The issue here was specifically
about whether the identifiers have to be quoted or not.

> Postgres could just as easily say "the system reserves all identifiers
> starting with $" and still not require quoting $.

At this point identifiers starting with $ are a completely lost cause ;-).
We have the parameter notation $n conflicting if the next character is a
digit, and the dollar-quote mechanism conflicting with any other second
character, and both of these are significantly more useful than the
ability to have unquoted IDs starting with $ would be.  So that's a dead
end.  I think if we wanted to change the default assignment of
constraint names we'd just go with ordinary identifiers that we hope
won't conflict with names the user picks.

			regards, tom lane



view thread (11+ messages)

Message-ID: <25084.1081881324@sss.pgh.pa.us>
Permalink:  ../25084.1081881324@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25084.1081881324@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, bhughes@elevating.com, sszabo@megazone.bigpanda.com
  Subject: Re: trigger/for key help
  In-Reply-To: <25084.1081881324@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