Fwd: Have a problem with citext

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Sadek Touati <bilal2dellys(at)hotmail(dot)com>
Subject: Fwd: Have a problem with citext
Date: 2017-09-29 22:16:39
Message-ID: DF5C4EEB-F8CB-436F-A3A1-1AADB087D613@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hackers,

Are permissions correct in the citext extension?

Best,

David

> Begin forwarded message:
>
> From: Sadek Touati <bilal2dellys(at)hotmail(dot)com>
> Subject: Have a problem with citext
> Date: September 29, 2017 at 17:02:50 EDT
> To: "david(at)kineticode(dot)com" <david(at)kineticode(dot)com>
>
> Dear sir,
> I'm using the citext datatype in my application. I have PostgresSql 9.6 installed by EnterpriseDB
>
>
> psql mydatabase postgres
> create extension citext with schema myschema
>
> \c mydatabase biguser
>
> set search_path to myschema;
>
> create table tst(v citext);
> insert into tst values('sadek');
> > select strpos(v, 'd') from tst;
> ERROR: permission denied for function strpos
>
> > select strpos(v, 'd'::citext) from tst; (If I read the documentation correctly this should work! alas, it doesn't)
> ERROR: permission denied for function strpos
>
> > select strpos(v::citext, 'd'::citext) from tst;
> ERROR: permission denied for function strpos
>
> > select strpos(v::citext, 'd') from tst;
> ERROR: permission denied for function strpos
>
> > select strpos(v::citext, 'd'::citext) from tst;
> ERROR: permission denied for function strpos
>
> > select strpos(v::text, 'd'::text) from tst;
> strpos
> --------
> 3
> (1 row)
>
> Am I missing something here?
>
> thanks in advance

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2017-09-29 22:21:49 Re: pgbench - minor fix for meta command only scripts
Previous Message Tom Lane 2017-09-29 21:56:10 Re: SendRowDescriptionMessage() is slow for queries with a lot of columns