public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Thom Brown <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: Reserved word: OWNER
Date: Fri, 13 May 2022 09:33:21 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAA-aLv4EJmU2OCPugoknebZDUMXr=cX+tDkKt6Lp47h-kw_1TA@mail.gmail.com>
References: <[email protected]>
<CAA-aLv4EJmU2OCPugoknebZDUMXr=cX+tDkKt6Lp47h-kw_1TA@mail.gmail.com>
Thom Brown <[email protected]> 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
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Reserved word: OWNER
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox