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 1lOyh5-00006R-8E for pgsql-general@arkaria.postgresql.org; Wed, 24 Mar 2021 08:16:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOyh4-0006JB-4F for pgsql-general@arkaria.postgresql.org; Wed, 24 Mar 2021 08:16:46 +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 1lOyh3-0006J3-OV for pgsql-general@lists.postgresql.org; Wed, 24 Mar 2021 08:16:45 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lOyh0-0003N6-Vz for pgsql-general@lists.postgresql.org; Wed, 24 Mar 2021 08:16:44 +0000 Received: by mail-lf1-x132.google.com with SMTP id n138so30636338lfa.3 for ; Wed, 24 Mar 2021 01:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cifrasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:organization:message-id:to:cc:subject:in-reply-to :references:mime-version:content-transfer-encoding; bh=eHIMgVc7uaidN/R+llifnulTeL0DRCFLanecv9EUK9E=; b=fR752qjGxhFCb5KLk/zoVr6k5NDGflwWsy7F9XYRh9TaRbhF7gz1PtmIuRuOR0o4SA UnH5uJdNWeD3nkWWjfmWweA2tZCKzvElolz1Sm0fYWdHM13SgTX7VN5DDg/7uLNLqJfx 3fG7tFBy5boenNJQT+WydjRIF2CxEuR1bgEtqpvRtkWjRmTEJwkCtHYQYy5uMdZBPrA3 igZnfGYzbFfPOUmB65DncDsOd2qrIMEsvx93NEzGCISiNjw4+621mX4IDf4vqyzwrs78 Q8xQ5CjGenzRDXhIPwGpSStIZXcbgZ8RCfYC+o03VPYhRxcp6V5QWZvmAnl2Jg7y9Vzw WYNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:organization:message-id:to:cc:subject :in-reply-to:references:mime-version:content-transfer-encoding; bh=eHIMgVc7uaidN/R+llifnulTeL0DRCFLanecv9EUK9E=; b=f0/w5k+Wxgp87bNd749rgy02qEt1AgGUmv9sh0JaB6xkAO19JTxz9efRh0bMelpNfT g48OOdZD33XKQaj9hXe+c9Vi3aoXcYI0QS7wzzN0PUl4r2GAxK78ORuEjpCrzpGJkZvc nuZCEY32uRhgJS+gVvKi6qSrhQEbBPZALCr0y/d4IF2wtIkhYruYHd4kdPpfJpE0NtKq PCFA7HRTI20+nKTYaME5J1K5PX9VW1PF3H3s/e7PeX6/FB/aRj3ySzXZa/0hpzrks7u0 eAoGmndih7+kVa2cYPd1sOBT/1LrdFOdZ57CW4augk9vjkBUpuHZMLHyabZ/JHp53q9i R4Zg== X-Gm-Message-State: AOAM533vailercycEMH5AJmMJWlLED2gUukDIHVOwr1x9iB4qAycCsUY jF/PhaiV2uCHZBhOBhzwJKcAUvW+dBM3cA== X-Google-Smtp-Source: ABdhPJygZXJSp+8F1vwirawIej7oOdDAfJLqynEQ/91vhfHnyEiw77RvaH7H3f02pOJvWGCfjvcGAA== X-Received: by 2002:ac2:47e5:: with SMTP id b5mr1281137lfp.476.1616573800061; Wed, 24 Mar 2021 01:16:40 -0700 (PDT) Received: from [192.168.67.81] ([84.201.247.191]) by smtp.gmail.com with ESMTPSA id z7sm206651ljo.64.2021.03.24.01.16.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Mar 2021 01:16:39 -0700 (PDT) Date: Wed, 24 Mar 2021 12:16:38 +0400 From: =?utf-8?B?0JDQvdC00YDQtdC5INCh0YvRh9GR0LI=?= Organization: =?utf-8?B?0J7QntCeICLQptC40YTRgNCw0YHQvtGE0YIi?= X-Priority: 3 (Normal) Message-ID: <3510602133.20210324121638@cifrasoft.com> To: Adrian Klaver CC: pgsql-general@lists.postgresql.org Subject: Re: No enough privileges for autovacuum worker In-Reply-To: References: <1224144510.20210323142019@cifrasoft.com> <18310311052.20210323200728@cifrasoft.com> <1723387856.20210323201857@cifrasoft.com> <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com> <913296991.20210323204551@cifrasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I finally figured out how to tackle the problem: 1. When I manually execute ANALYZE on the table the error remains: [34938]-[192.168.67.81]-[DBeaver 7.3.2 - SQLEditor ]-[client backend]-[42501]-[postgres@fpdb] CONTEXT: SQL function "trigrams_vector" during inlining [34938]-[192.168.67.81]-[DBeaver 7.3.2 - SQLEditor ]-[client backend]-[42501]-[postgres@fpdb] STATEMENT: ANALYZE fpbackup.fp_vpn_data_2021w12 [31203]-[]-[]-[autovacuum worker]-[42501]-[@] ERROR: permission denied for schema dict at character 34 [31203]-[]-[]-[autovacuum worker]-[42501]-[@] QUERY: _to_string(dict.trigrams_array($1), ' ')::tsvector; This happens despite I run this query as superuser. But the hint from you allows me to manually reproduce error. 2. As I wrote before the owner of the table fpbackup.fp_vpn_data_2021w12 is "fpbkwriter" so I run the following query: GRANT USAGE ON SCHEMA dict TO fpbkwriter; and after that the problem has been solved. 3. The following queries do not affect the problem: GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA dict TO fpbkwriter; REVOKE EXECUTE ON ALL FUNCTIONS IN SCHEMA dict FROM fpbkwriter; -- Adrian, thank you very much for support. Your hints were very useful.