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

From: "Li EF Zhang" <bjzhangl(at)cn(dot)ibm(dot)com>
To: laurenz(dot)albe(at)cybertec(dot)at
Cc: 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-25 03:51:38
Message-ID: OF01170058.85F55F8C-ON0025873C.00150470-0025873C.00153513@ibm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Thanks for your answer. My doubt is that since an ordinary user creates the extension, shouldn't be this user the owner of the objects created within the extension?</div>
<div dir="ltr" >&nbsp;</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Laurenz Albe" &lt;laurenz(dot)albe(at)cybertec(dot)at&gt;<br>To: "Li EF Zhang" &lt;bjzhangl(at)cn(dot)ibm(dot)com&gt;, pgsql-general(at)lists(dot)postgresql(dot)org<br>Cc:<br>Subject: [EXTERNAL] Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int<br>Date: Tue, Aug 24, 2021 6:23 PM<br>&nbsp;
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >On Tue, 2021-08-24 at 06:21 +0000, Li EF Zhang wrote:<br>&gt; dict_int is trusted extension in pg13. After creating dict_int extension with<br>&gt; unprivileged user, ALTER TEXT SEARCH DICTIONARY intdict ((MAXLEN = 7) failed.<br>&gt; &nbsp;<br>&gt; admin=&gt; ALTER TEXT SEARCH DICTIONARY intdict (MAXLEN = 7);<br>&gt; ERROR:&nbsp; must be owner of text search dictionary intdict<br>&gt; &nbsp;<br>&gt; This is by design or a bug? Thanks!<br><br>You must be the owner of an object to ALTER it. &nbsp;That is working as designed.<br><br>It is a bad idea to ALTER an object that belongs to an extension.<br>The next ALTER EXTENSION ... UPDATE may undo the change or fail.<br><br>Create your own dictionary with the same template.<br><br>Yours,<br>Laurenz Albe<br>--<br>Cybertec | <a href="https://www.cybertec-postgresql.com" target="_blank">https://www.cybertec-postgresql.com</a>&nbsp;</font><br>&nbsp;</div></blockquote>
<div dir="ltr" >&nbsp;</div></div><BR>
<BR>

Attachment Content-Type Size
unknown_filename text/html 1.8 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-08-25 04:01:07 Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
Previous Message David G. Johnston 2021-08-24 15:37:36 Re: Make bloom extension trusted, but can not drop with normal user