From: Bryn Llewellyn <bryn@yugabyte.com>
To: Christophe Pettus <xof@thebuild.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE
Date: Wed, 5 Oct 2022 22:58:04 -0700
Message-ID: <3D769C48-C001-43F3-B45A-68D3757A71EB@yugabyte.com> (raw)
In-Reply-To: <EA15C040-8E94-45B7-88AA-F46DFB9A13E2@thebuild.com>
References: <CA4667FA-A71E-4ECD-B9EE-4A2F8929CB22@yugabyte.com>
<EA15C040-8E94-45B7-88AA-F46DFB9A13E2@thebuild.com>
> xof@thebuild.com wrote:
>
> There is no first-class "identifier" type in PostgreSQL, so a function can't "return an identifier." It returns a string which might, when placed into a larger string and processed as SQL, be lexically correct as an identifier.
It takes huge discipline always to say "the text of an identifier" when the context of discourse is established. But, yes, I agree, when I wrote this:
«
...the value of "quote_ident()" rests on the distinction between a name (what you provide with the function's actual argument) and an identifier (what it returns).
»
that the context of discourse was indeed established. I should have made no such assumption and written this instead:
«
...the value of "quote_ident()" rests on the distinction between the text of a name (what you provide with the function's actual argument) and the text of an identifier (what it returns).
»
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: bryn@yugabyte.com, xof@thebuild.com
Subject: Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE
In-Reply-To: <3D769C48-C001-43F3-B45A-68D3757A71EB@yugabyte.com>
References: <CA4667FA-A71E-4ECD-B9EE-4A2F8929CB22@yugabyte.com> <EA15C040-8E94-45B7-88AA-F46DFB9A13E2@thebuild.com> <3D769C48-C001-43F3-B45A-68D3757A71EB@yugabyte.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox