Re: citext function overloads for text parameters - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: citext function overloads for text parameters
Date
Msg-id CAFj8pRA4cDW3hZOLJP_=XMEcH06CNHRWv8DeDONv_Bv0ZVojnw@mail.gmail.com
Whole thread Raw
In response to Re: citext function overloads for text parameters  (Shay Rojansky <roji@roji.org>)
List pgsql-hackers


2018-05-06 14:55 GMT+02:00 Shay Rojansky <roji@roji.org>:
Thanks for your answer Pavel.

This is expected - it is side effect of PostgreSQL implementation of function overloading and type conversions

after installation citext, you will have more instances of function strpos

strpos(citext, citext)
strpos(text, text)

Do you think it would be appropriate to simply add an strpos(citext, text) overload to the extension to make sure this behaves more as expected? If so I can try to submit a patch at some point.

It has sense in this case. But I have not a idea if there can be some more broken.

regards

Pavel

pgsql-hackers by date:

Previous
From: Shay Rojansky
Date:
Subject: Re: citext function overloads for text parameters
Next
From: Andrew Dunstan
Date:
Subject: perlcritic and perltidy