Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npVQF-0005pG-0w for pgsql-docs@arkaria.postgresql.org; Fri, 13 May 2022 13:33:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1npVQD-0000Tz-8n for pgsql-docs@arkaria.postgresql.org; Fri, 13 May 2022 13:33:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npVQD-0000Qu-1U for pgsql-docs@lists.postgresql.org; Fri, 13 May 2022 13:33:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npVQ7-0008Fl-74 for pgsql-docs@lists.postgresql.org; Fri, 13 May 2022 13:33:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24DDXLAj638432; Fri, 13 May 2022 09:33:21 -0400 From: Tom Lane To: Thom Brown cc: magnus.johan.hedberg@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Reserved word: OWNER In-reply-to: References: <165242765714.661.4834758786310673627@wrigleys.postgresql.org> Comments: In-reply-to Thom Brown message dated "Fri, 13 May 2022 13:53:05 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <638430.1652448801.1@sss.pgh.pa.us> Date: Fri, 13 May 2022 09:33:21 -0400 Message-ID: <638431.1652448801@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thom Brown writes: > On Fri, 13 May 2022 at 13:23, PG Doc comments form >> Page: https://www.postgresql.org/docs/14/sql-keywords-appendix.html >> if I try to use OWNER as a column name in pgAdmin, it is marked blue (ie >> a reserved word). So which is it? > That sounds like a PgAdmin issue, and probably because of the way that > their syntactic highlighting works. OWNER isn't a reserved word. Yeah. It is a keyword, but not a reserved one, meaning it's okay to use as an identifier. See the explanatory text at the top of that page. There are actually four levels of keyword reserved-ness in Postgres, and a simple highlighted-or-not scheme is not going to capture any of that nuance. regards, tom lane