Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mITaH-0006Qg-Bp for pgsql-general@arkaria.postgresql.org; Tue, 24 Aug 2021 10:23:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mITaF-0004as-V8 for pgsql-general@arkaria.postgresql.org; Tue, 24 Aug 2021 10:23:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mITaF-0004ak-ME for pgsql-general@lists.postgresql.org; Tue, 24 Aug 2021 10:23:07 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mITa8-0007EN-WF for pgsql-general@lists.postgresql.org; Tue, 24 Aug 2021 10:23:06 +0000 Received: by mail-wr1-x431.google.com with SMTP id e5so13934906wrp.8 for ; Tue, 24 Aug 2021 03:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=+qxdEA7nZnnxahh6c8JG99nDHNLRjpCXQMhYW3s6vKM=; b=sRe22N1ymdlCo7NMPja1g7UMgTc6NiOxY7EGpgzUMfnrqHPViWcw3vEGh+H3VBn3iu ba3wP7nSorJYpcNEqNhQJBXeaX5MbIYPCQnLMJx7/p6xuiZZRkpIKJ7BlGZK/OpJAONo 9KwB/mK/jSjl+lYO7X1SyIxEy3+yWBfx2Pc3TueUaWr3SFY6CyWN1/839f4960Zk18rb qP/ZKFuyB2z22yu4pQMs9WtMswzFVTVZd4+eTMi28GKFLMVsaOEM6GJL6lahJHaAv2KV S8EKeSWaTV2kGoKjTqvd4iy6GIZmOXdAj1km52CZKfTeaHa3fQL3khq6CRwWSteHF/I3 KBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=+qxdEA7nZnnxahh6c8JG99nDHNLRjpCXQMhYW3s6vKM=; b=ehVHZi5Q3CnZAu+gcoT/upBXHRE0sYFtnBZZpunGNEhgXPUHZ+0CrwYuzuBMoREM8d 4fRyXn/QYuFHBdKL//BYoDYKc1xCMoy86P1KVvw4QrdDNKVGmoOgzJ2gsZN/81DIWEw8 x8JQJ5tyZ46xs1d9zibY0UPdufeJsOtbZ8DXMVrpv6D0prP9vt2kL4vw8WwM1azPyBd0 Y2iYOjl3VJvf9vGnGu7kUhA3gzZ7enFSXrotNF/VK4Y4tGK2F4vJsIfuxPqvbBQtYyOT zrrvdi//taipn8JCf6U9Z0BywXbTQIePNXUvxwlSiAMfWNs7jIi3tcn8E95ASSS0BsUq MZ6A== X-Gm-Message-State: AOAM533AzcMIp1Wxy0qzaoF7YDdHROIDj1E4YPwfBfBt3bz73DCh13jB /+cRrHD/fSfiODnJeEJSvJ+9+w== X-Google-Smtp-Source: ABdhPJx0Km0wO+bWu/yHEqYF8eQVE96VHsJD1kWzrYTA9h1ryx45iU3vl6LDUALTcOCHungTju+n3A== X-Received: by 2002:adf:f991:: with SMTP id f17mr5731501wrr.56.1629800579420; Tue, 24 Aug 2021 03:22:59 -0700 (PDT) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id o5sm3738003wrw.17.2021.08.24.03.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 03:22:58 -0700 (PDT) Message-ID: <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at> Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int From: Laurenz Albe To: Li EF Zhang , pgsql-general@lists.postgresql.org Date: Tue, 24 Aug 2021 12:22:58 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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