Re: Re: [COMMITTERS] pgsql: Fix mapping of PostgreSQL encodings to Python encodings.
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: Jan Urbański <wulczer@wulczer.org>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL-development <pgsql-hackers@postgreSQL.org>, Asif Naeem <asif.naeem@enterprisedb.com>
Date: 2012-07-06T20:47:54Z
Lists: pgsql-hackers
On fre, 2012-07-06 at 18:53 +0300, Heikki Linnakangas wrote: > > What shall we do about those? Ignore them? Document that if you're sing > > one of these encodings then PL/Python with Python 2 will be crippled and > > with Python 3 just won't work? > > We could convert to UTF-8, and use the PostgreSQL functions to convert > from UTF-8 to the server encoding. Double conversion might be slow, but > I think it would be better than failing. Actually, we already do the other direction that way (PLyUnicode_FromStringAndSize) , so maybe it would be more consistent to always use this. I would hesitate to use this as a kind of fallback, because then we would sometimes be using PostgreSQL's recoding tables and sometimes Python's recoding tables, which could became confusing.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix mapping of PostgreSQL encodings to Python encodings.
- b66de4c6d720 9.3.0 cited