Re: Unicode escapes in literals - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unicode escapes in literals
Date
Msg-id 13815.1224769971@sss.pgh.pa.us
Whole thread Raw
In response to Unicode escapes in literals  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Unicode escapes in literals
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> SQL has the following escape syntax for it:
>     U&'special character: \xxxx' [ UESCAPE '\' ]

Man that's ugly.  Why the ampersand?  How do you propose to distinguish
this from a perfectly legitimate use of the & operator?

> 2. Convert this syntax to a function call.  But that would then create a 
> lot of inconsistencies, such as needing functional indexes for matches 
> against what should really be a literal.

Uh, why do you think that?  The function could surely be stable, even
immutable if you grant that a database's encoding can't change.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: EXPLAIN CREATE TABLE AS
Next
From: Tom Lane
Date:
Subject: Re: EXPLAIN CREATE TABLE AS