Re: Reserved word: OWNER

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: magnus(dot)johan(dot)hedberg(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Reserved word: OWNER
Date: 2022-05-13 13:33:21
Message-ID: 638431.1652448801@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Thom Brown <thom(at)linux(dot)com> 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2022-05-13 18:41:39 Re: Documentation Suggestion
Previous Message Thom Brown 2022-05-13 12:53:05 Re: Reserved word: OWNER