Re: citext function overloads for text parameters

From: Shay Rojansky <roji(at)roji(dot)org>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: citext function overloads for text parameters
Date: 2018-05-06 12:55:24
Message-ID: CADT4RqCmnnhBwbrrBynfpT7aw8aoKeh2URX5kcyg9uvPpOCDSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2018-05-06 13:07:35 Re: citext function overloads for text parameters
Previous Message Stas Kelvich 2018-05-06 10:22:57 Re: Global snapshots