Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Li EF Zhang <bjzhangl(at)cn(dot)ibm(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
Date: 2021-08-24 10:22:58
Message-ID: 4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2021-08-24 at 06:21 +0000, Li EF Zhang wrote:
> dict_int is trusted extension in pg13. After creating dict_int extension with
> unprivileged user, ALTER TEXT SEARCH DICTIONARY intdict ((MAXLEN = 7) failed.
>  
> admin=> ALTER TEXT SEARCH DICTIONARY intdict (MAXLEN = 7);
> ERROR:  must be owner of text search dictionary intdict
>  
> This is by design or a bug? Thanks!

You must be the owner of an object to ALTER it. That is working as designed.

It is a bad idea to ALTER an object that belongs to an extension.
The next ALTER EXTENSION ... UPDATE may undo the change or fail.

Create your own dictionary with the same template.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-08-24 14:26:41 Re: Make bloom extension trusted, but can not drop with normal user
Previous Message Ishan Joshi 2021-08-24 10:08:33 how to reduce Xidgenlock wait event