Re: Aren't regex_*() functions built-in? - Mailing list pgsql-general

From Christophe Pettus
Subject Re: Aren't regex_*() functions built-in?
Date
Msg-id 4D634333-1E86-4425-B4BC-71EA136A0D94@thebuild.com
Whole thread Raw
In response to Re: Aren't regex_*() functions built-in?  (pf@pfortin.com)
List pgsql-general

> On Nov 11, 2023, at 17:20, pf@pfortin.com wrote:
> Actually, it's more eusbtle...  I can make it work as "postgres"; but not
> as a RO user (SELECT only):
> An error occurred when executing the SQL command:
> select * from a,b where regexp_replace(a.address,' ','','g') = regexp_replace(b.address,' ','','g')
>
> ERROR: permission denied for table a
> 1 statement failed.
>
> I had no idea functions need permissions... GRANT EXTENSION..?

The permission error isn't on the function, but on the table "a".  The RO user doesn't have the appropriate permissions
onit. 


pgsql-general by date:

Previous
From: pf@pfortin.com
Date:
Subject: Re: Aren't regex_*() functions built-in?
Next
From: "David G. Johnston"
Date:
Subject: Re: Aren't regex_*() functions built-in?