X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 16F7BD1DB35 for ; Tue, 13 Apr 2004 15:35:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27419-10 for ; Tue, 13 Apr 2004 15:35:28 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0D0FBD1DA83 for ; Tue, 13 Apr 2004 15:35:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3DIZOZi025085; Tue, 13 Apr 2004 14:35:24 -0400 (EDT) To: Greg Stark Cc: Bret Hughes , Stephan Szabo , postgresql sql list Subject: Re: trigger/for key help 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> Comments: In-reply-to Greg Stark message dated "13 Apr 2004 13:36:01 -0400" Date: Tue, 13 Apr 2004 14:35:24 -0400 Message-ID: <25084.1081881324@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/122 X-Sequence-Number: 17497 Greg Stark 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