pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Muise <JMuise@esri.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols
Date: Fri, 19 May 2017 17:08:35 +0000
Message-ID: <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com> (raw)
In-Reply-To: <3637.1495213367@sss.pgh.pa.us>
References: <20170519162316.29945.5021@wrigleys.postgresql.org>
	<3637.1495213367@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi Tom,

Thank you for your quick response! Please see the attached image.

Regards,

Justin

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Friday, May 19, 2017 10:03 AM
To: Justin Muise <JMuise@esri.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols

jmuise@esri.com writes:
> The 'has_table_privilege()' function will return the error, "invalid 
> name syntax", when the table used in the function contains certain 
> Japanese characters.

What character encoding are you using?  I'm suspicious that the underlying problem is use of a non-ASCII-safe encoding (eg SJIS) on the client side, combined with improper encoding conversion due to inaccurate client_encoding and/or server_encoding settings.

FWIW, I can't reproduce any problem with your script here; but the script arrived in what looks to be UTF8 encoding, and I suspect that must not be what you were using when you hit the problem.

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

PostgresEncoding.png (image/png, 101.7K) download view image

view thread (13+ messages)  latest in thread

Message-ID: <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com>
Permalink:  ../446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com/
Also on:    postgresql.org/message-id/446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com

 · 

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 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-bugs@postgresql.org
  Cc: JMuise@esri.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols
  In-Reply-To: <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com>
  References: <20170519162316.29945.5021@wrigleys.postgresql.org> <3637.1495213367@sss.pgh.pa.us> <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.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