pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Li EF Zhang <bjzhangl@cn.ibm.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
Date: Tue, 24 Aug 2021 12:22:58 +0200
Message-ID: <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at> (raw)
In-Reply-To: <OFD7035907.C8BCC584-ON0025873B.002264DA-0025873B.0022E529@ibm.com>
References: <OFD7035907.C8BCC584-ON0025873B.002264DA-0025873B.0022E529@ibm.com>

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






view thread (7+ messages)  latest in thread

Message-ID: <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at>
Permalink:  ../4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at/
Also on:    postgresql.org/message-id/4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, bjzhangl@cn.ibm.com
  Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
  In-Reply-To: <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at>
  References: <OFD7035907.C8BCC584-ON0025873B.002264DA-0025873B.0022E529@ibm.com> <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox