Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE - Mailing list pgsql-general

From Bryn Llewellyn
Subject Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE
Date
Msg-id 3D769C48-C001-43F3-B45A-68D3757A71EB@yugabyte.com
Whole thread Raw
In response to Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE  (Christophe Pettus <xof@thebuild.com>)
List pgsql-general
> xof@thebuild.com wrote:
>
> There is no first-class "identifier" type in PostgreSQL, so a function can't "return an identifier."  It returns a
stringwhich 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'sactual argument) and the text of an identifier (what it returns).  
»




pgsql-general by date:

Previous
From: Bryn Llewellyn
Date:
Subject: Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE
Next
From: Gavan Schneider
Date:
Subject: Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE