Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEUkR-0003j8-Hv for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Jun 2016 04:54:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEUkQ-0004oM-WC for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Jun 2016 04:54:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bEUjn-00047N-LZ for pgsql-bugs@postgresql.org; Sun, 19 Jun 2016 04:53:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bEUjg-00072g-Rx for pgsql-bugs@postgresql.org; Sun, 19 Jun 2016 04:53:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5J4rRWX025302; Sun, 19 Jun 2016 00:53:27 -0400 From: Tom Lane To: "David G. Johnston" cc: "liveloveprosper@gmail.com" , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14200: Cannot create a table named 'user' In-reply-to: References: <20160619025854.5798.82044@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Sun, 19 Jun 2016 00:01:38 -0400" Date: Sun, 19 Jun 2016 00:53:27 -0400 Message-ID: <25300.1466312007@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "David G. Johnston" writes: > On Saturday, June 18, 2016, wrote: >> What if I want to create a user table for my application? Shouldn't I be >> able to call that table user? > If you quote it you can. Worth noting here is that USER is a reserved word according to the SQL standard, as well as our documentation: https://www.postgresql.org/docs/9.5/static/sql-keywords-appendix.html You should not be surprised that you can't use it as a generic identifier without adding quotes. (The only reason it's reserved in Postgres is to implement the spec-defined meaning of the keyword. I can't imagine that we'd have chosen to reserve it without that requirement.) regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs