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

From Shay Rojansky
Subject Re: citext function overloads for text parameters
Date
Msg-id CADT4RqCmnnhBwbrrBynfpT7aw8aoKeh2URX5kcyg9uvPpOCDSg@mail.gmail.com
Whole thread Raw
In response to Re: citext function overloads for text parameters  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: citext function overloads for text parameters  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: citext function overloads for text parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.

pgsql-hackers by date:

Previous
From: Stas Kelvich
Date:
Subject: Re: Global snapshots
Next
From: Pavel Stehule
Date:
Subject: Re: citext function overloads for text parameters