pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Does pgAgent support chinese, japanese characters? 3+ messages / 2 participants [nested] [flat]
* Does pgAgent support chinese, japanese characters? @ 2018-06-12 08:02 a <372660931@qq.com> 2018-06-12 13:59 ` Re: Does pgAgent support chinese, japanese characters? Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 3+ messages in thread From: a @ 2018-06-12 08:02 UTC (permalink / raw) To: pgsql-general Hi I'm using pgAgent to set up daily or monthly tasks. I have tables that with the name of Chinese or Japanese. It runs ok in normal sql script, but report non-recognizable in pgAgent SQL jobs. I'm using windows server 2008, pgsql 10, and pgAgent 3.4, may there be a way of supporting different languages?? Thanks ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Does pgAgent support chinese, japanese characters? 2018-06-12 08:02 Does pgAgent support chinese, japanese characters? a <372660931@qq.com> @ 2018-06-12 13:59 ` Tom Lane <tgl@sss.pgh.pa.us> 2018-06-13 01:20 ` Re: Does pgAgent support chinese, japanese characters? a <372660931@qq.com> 0 siblings, 1 reply; 3+ messages in thread From: Tom Lane @ 2018-06-12 13:59 UTC (permalink / raw) To: a <372660931@qq.com>; +Cc: pgsql-general "=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> writes: > Hi I'm using pgAgent to set up daily or monthly tasks. > I have tables that with the name of Chinese or Japanese. It runs ok in normal sql script, but report non-recognizable in pgAgent SQL jobs. First guess is that client_encoding is getting set differently in the pgAgent-initiated sessions than elsewhere, causing incorrect character set conversions to happen. > I'm using windows server 2008, pgsql 10, and pgAgent 3.4, may there be a way of supporting different languages?? ... unfortunately, I don't know anything about how to adjust that in Windows. A brute-force way would be to issue "set client_encoding" in your scripts, but there may be a better way. regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Does pgAgent support chinese, japanese characters? 2018-06-12 08:02 Does pgAgent support chinese, japanese characters? a <372660931@qq.com> 2018-06-12 13:59 ` Re: Does pgAgent support chinese, japanese characters? Tom Lane <tgl@sss.pgh.pa.us> @ 2018-06-13 01:20 ` a <372660931@qq.com> 0 siblings, 0 replies; 3+ messages in thread From: a @ 2018-06-13 01:20 UTC (permalink / raw) To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general Thanks a lot for your reply. I tried to set the host/client encoding, however, when I create new tables using Chinese, it reported an encoding error...... also with other queries..... May I ask encoding of pgAgent? May it reading from a text file? Or I can use notepad++ to convert and then copy?? ------------------ Original ------------------ From: "Tom Lane"; Date: Tuesday, Jun 12, 2018 9:59 PM To: "a"<372660931@qq.com>; Cc: "pgsql-general"; Subject: Re: Does pgAgent support chinese, japanese characters? "=?ISO-8859-1?B?YQ==?=" <372660931@qq.com> writes: > Hi I'm using pgAgent to set up daily or monthly tasks. > I have tables that with the name of Chinese or Japanese. It runs ok in normal sql script, but report non-recognizable in pgAgent SQL jobs. First guess is that client_encoding is getting set differently in the pgAgent-initiated sessions than elsewhere, causing incorrect character set conversions to happen. > I'm using windows server 2008, pgsql 10, and pgAgent 3.4, may there be a way of supporting different languages?? ... unfortunately, I don't know anything about how to adjust that in Windows. A brute-force way would be to issue "set client_encoding" in your scripts, but there may be a better way. regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-06-13 01:20 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-06-12 08:02 Does pgAgent support chinese, japanese characters? a <372660931@qq.com> 2018-06-12 13:59 ` Tom Lane <tgl@sss.pgh.pa.us> 2018-06-13 01:20 ` a <372660931@qq.com>
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