Re: [HACKERS] Extra Vietnamese unaccent rules - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] Extra Vietnamese unaccent rules
Date
Msg-id CAB7nPqSyj8KanxuEZaXiv=PEZ6=KuJqWb2AkB1hzXnquuNQsDA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Extra Vietnamese unaccent rules  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] Extra Vietnamese unaccent rules
List 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



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] [BUGS] Replication to Postgres 10 on Windows isbroken
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Function to move the position of a replication slot