Re: Extra Vietnamese unaccent rules
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dang Minh Huong <kakalot49@gmail.com>, Bruce Momjian <bruce@momjian.us>, Thomas Munro <thomas.munro@enterprisedb.com>, Kha Nguyen <nlhkha@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2017-08-17T01:52:31Z
Lists: pgsql-hackers
On Thu, Aug 17, 2017 at 6:01 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Pushed into v11. Thanks. > I'm not really qualified to review the Python coding > style, but I did fix a typo in a comment. No pythonist here, but a large confusing "if" condition without any comments is better if split up and explained with comments if that can help in clarifying what the code is doing in any language, so thanks for keeping the code intact. > BTW, while this isn't a reason to delay this patch, I wonder whether > the regression test for unaccent is really adequate. According to > https://coverage.postgresql.org/contrib/unaccent/unaccent.c.gcov.html > it isn't doing anything to check multicharacter source strings, and > what's considerably more disturbing, it isn't exercising the PG_CATCH > code that's meant to deal with characters outside the current database's > encoding. Yeah, that could be improved a bit. -- Michael
Commits
-
Extend the default rules file for contrib/unaccent with Vietnamese letters.
- ec0a69e49bf4 11.0 landed