Re: Unicode escapes in literals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Unicode escapes in literals
Date: 2008-10-23 13:52:51
Message-ID: 13815.1224769971@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-10-23 13:55:35 Re: EXPLAIN CREATE TABLE AS
Previous Message Peter Eisentraut 2008-10-23 13:40:54 Re: EXPLAIN CREATE TABLE AS